Skip to content

Commit

Permalink
chore!: Normalize repository, dropping node <10.13 support (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk authored Oct 31, 2021
1 parent 8f45caf commit 221118c
Show file tree
Hide file tree
Showing 15 changed files with 144 additions and 207 deletions.
38 changes: 0 additions & 38 deletions .ci/.azure-pipelines-steps.yml

This file was deleted.

90 changes: 0 additions & 90 deletions .ci/.azure-pipelines.yml

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
6 changes: 5 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "gulp"
"extends": "gulp",
"rules": {
"max-len": 0,
"max-statements": 0
}
}
75 changes: 75 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: dev
on:
pull_request:
push:
branches:
- master
- main
env:
CI: true

jobs:
prettier:
name: Format code
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prettier
uses: gulpjs/[email protected]
with:
commit_message: 'chore: Run prettier'
prettier_options: '--write .'

test:
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [10, 12, 14, 16]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm install

- name: Run lint
run: npm run lint

- name: Run tests
run: npm test

- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{ matrix.os }}-node-${{ matrix.node }}
parallel: true

coveralls:
needs: test
name: Finish up

runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release
on:
push:
branches:
- master
- main

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: release-please-action
bump-minor-pre-major: true
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
.nyc_output/
CHANGELOG.md
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016, 2017, 2018 Blaine Bublitz <[email protected]> and Eric Schoffstall <[email protected]>
Copyright (c) 2016, 2017, 2018, 2021 Blaine Bublitz <[email protected]> and Eric Schoffstall <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# fined

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Find a file given a declaration of locations.

Expand Down Expand Up @@ -64,21 +64,15 @@ This function returns a plain object which consists of following properties if a

MIT

[downloads-image]: https://img.shields.io/npm/dm/fined.svg
<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/fined.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/fined
[npm-image]: https://img.shields.io/npm/v/fined.svg
[npm-image]: https://img.shields.io/npm/v/fined.svg?style=flat-square

[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=7&branchName=master
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/fined?branchName=master

[travis-url]: https://travis-ci.org/gulpjs/fined
[travis-image]: https://img.shields.io/travis/gulpjs/fined.svg?label=travis-ci

[appveyor-url]: https://ci.appveyor.com/project/gulpjs/fined
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/fined.svg?label=appveyor
[ci-url]: https://github.com/gulpjs/fined/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/fined/dev?style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/fined
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/fined/master.svg
<!-- prettier-ignore-end -->

[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var fs = require('fs');
var path = require('path');

var isPlainObject = require('is-plain-object');
var isPlainObject = require('is-plain-object').isPlainObject;
var pick = require('object.pick');
var defaults = require('object.defaults/immutable');
var expandTilde = require('expand-tilde');
Expand Down Expand Up @@ -59,8 +59,7 @@ function expandPath(pathObj, defaultObj) {
filePath = filePath.slice(parsed.root.length);
findUp = false;
basedir = parsed.root;
/* istanbul ignore if */
} else if (parsed.root) { // Expanded path has a drive letter on Windows.
} else /* istanbul ignore next */ if (parsed.root) { // Expanded path has a drive letter on Windows.
filePath = filePath.slice(parsed.root.length);
basedir = path.resolve(parsed.root);
}
Expand Down
Loading

0 comments on commit 221118c

Please sign in to comment.