Skip to content

Commit 7b69c63

Browse files
authored
chore!: Normalize repository, dropping node <10.13 support (#80)
1 parent 18a0319 commit 7b69c63

File tree

12 files changed

+211
-125
lines changed

12 files changed

+211
-125
lines changed

Diff for: .github/workflows/dev.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: dev
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
env:
9+
CI: true
10+
11+
jobs:
12+
prettier:
13+
name: Format code
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event_name == 'push' }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Prettier
22+
uses: gulpjs/[email protected]
23+
with:
24+
commit_message: 'chore: Run prettier'
25+
prettier_options: '--write .'
26+
27+
test:
28+
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
29+
runs-on: ${{ matrix.os }}
30+
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
node: [10, 12, 14, 16]
35+
os: [ubuntu-latest, windows-latest, macos-latest]
36+
37+
steps:
38+
- name: Clone repository
39+
uses: actions/checkout@v2
40+
41+
- name: Set Node.js version
42+
uses: actions/setup-node@v2
43+
with:
44+
node-version: ${{ matrix.node }}
45+
46+
- run: node --version
47+
- run: npm --version
48+
49+
- name: Install npm dependencies
50+
run: npm install
51+
52+
- name: Run lint
53+
run: npm run lint
54+
55+
- name: Run tests
56+
run: npm test
57+
58+
- name: Coveralls
59+
uses: coverallsapp/[email protected]
60+
with:
61+
github-token: ${{ secrets.GITHUB_TOKEN }}
62+
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
63+
parallel: true
64+
65+
coveralls:
66+
needs: test
67+
name: Finish up
68+
69+
runs-on: ubuntu-latest
70+
steps:
71+
- name: Coveralls Finished
72+
uses: coverallsapp/[email protected]
73+
with:
74+
github-token: ${{ secrets.GITHUB_TOKEN }}
75+
parallel-finished: true

Diff for: .github/workflows/release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: GoogleCloudPlatform/release-please-action@v2
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
release-type: node
16+
package-name: release-please-action

Diff for: .gitignore

+42-8
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,72 @@
11
# Logs
22
logs
33
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
47

58
# Runtime data
69
pids
710
*.pid
811
*.seed
12+
*.pid.lock
913

1014
# Directory for instrumented libs generated by jscoverage/JSCover
1115
lib-cov
1216

1317
# Coverage directory used by tools like istanbul
1418
coverage
15-
.nyc_output
1619

20+
# nyc test coverage
21+
.nyc_output
1722

1823
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1924
.grunt
2025

21-
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2233
build/Release
2334

24-
# Dependency directory
25-
# Commenting this out is preferred by some people, see
26-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
27-
node_modules
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
2838

29-
# Users Environment Variables
30-
.lock-wscript
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
3162

3263
# Garbage files
3364
.DS_Store
3465
tmp
3566
egcache
3667

68+
# Test results
69+
test.xunit
70+
3771
# Created in fixtures directories by test
3872
package-lock.json

Diff for: .prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage/
2+
.nyc_output/
3+
CHANGELOG.md

Diff for: .travis.yml

-13
This file was deleted.

Diff for: LICENSE

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
Copyright (c) 2014-2018 Tyler Kellen <[email protected]>, Blaine Bublitz <[email protected]>, and Eric Schoffstall <[email protected]>
1+
The MIT License (MIT)
22

3-
Permission is hereby granted, free of charge, to any person
4-
obtaining a copy of this software and associated documentation
5-
files (the "Software"), to deal in the Software without
6-
restriction, including without limitation the rights to use,
7-
copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
copies of the Software, and to permit persons to whom the
9-
Software is furnished to do so, subject to the following
10-
conditions:
3+
Copyright (c) 2014-2018, 2022 Tyler Kellen <[email protected]>, Blaine Bublitz <[email protected]>, and Eric Schoffstall <[email protected]>
114

12-
The above copyright notice and this permission notice shall be
13-
included in all copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
1411

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22-
OTHER DEALINGS IN THE SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: README.md

+18-20
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@
66

77
# interpret
88

9-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-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]
9+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
1010

1111
A dictionary of file extensions and associated module loaders.
1212

1313
## What is it
14-
This is used by [Liftoff](http://github.com/tkellen/node-liftoff) to automatically require dependencies for configuration files, and by [rechoir](http://github.com/tkellen/node-rechoir) for registering module loaders.
15-
16-
## interpret for enterprise
17-
18-
Available as part of the Tidelift Subscription
19-
20-
The maintainers of interpret and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-interpret?utm_source=npm-interpret&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
14+
This is used by [Liftoff] to automatically require dependencies for configuration files, and by [rechoir] for registering module loaders.
2115

2216
## API
2317

@@ -129,20 +123,24 @@ Consumers should use the exported `extensions` or `jsVariants` object to determi
129123

130124
4. If the value is an array, iterate over it, attempting step #2 or #3 until one of the attempts does not throw.
131125

132-
[require.extensions]: http://nodejs.org/api/globals.html#globals_require_extensions
126+
## License
133127

134-
[downloads-image]: http://img.shields.io/npm/dm/interpret.svg
135-
[npm-url]: https://www.npmjs.com/package/interpret
136-
[npm-image]: http://img.shields.io/npm/v/interpret.svg
128+
MIT
137129

138-
[travis-url]: https://travis-ci.org/gulpjs/interpret
139-
[travis-image]: http://img.shields.io/travis/gulpjs/interpret.svg?label=travis-ci
130+
<!-- prettier-ignore-start -->
131+
[downloads-image]: https://img.shields.io/npm/dm/interpret.svg?style=flat-square
132+
[npm-url]: https://www.npmjs.com/package/interpret
133+
[npm-image]: https://img.shields.io/npm/v/interpret.svg?style=flat-square
140134

141-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/interpret
142-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/interpret.svg?label=appveyor
135+
[ci-url]: https://github.com/gulpjs/interpret/actions?query=workflow:dev
136+
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/interpret/dev?style=flat-square
143137

144138
[coveralls-url]: https://coveralls.io/r/gulpjs/interpret
145-
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/interpret/master.svg
146-
147-
[gitter-url]: https://gitter.im/gulpjs/gulp
148-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
139+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/interpret/master.svg?style=flat-square
140+
<!-- prettier-ignore-end -->
141+
142+
<!-- prettier-ignore-start -->
143+
[Liftoff]: http://github.com/gulpjs/liftoff
144+
[rechoir]: http://github.com/gulpjs/rechoir
145+
[require.extensions]: https://nodejs.org/api/modules.html#requireextensions
146+
<!-- prettier-ignore-end -->

Diff for: appveyor.yml

-28
This file was deleted.

Diff for: package.json

+25-17
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "interpret",
33
"version": "2.2.0",
44
"description": "A dictionary of file extensions and associated module loaders.",
5-
"author": "Gulp Team <[email protected]> (http://gulpjs.com/)",
5+
"author": "Gulp Team <[email protected]> (https://gulpjs.com/)",
66
"contributors": [
77
"Blaine Bublitz <[email protected]>",
88
"Tyler Kellen <[email protected]> (http://goingslowly.com/)"
99
],
1010
"repository": "gulpjs/interpret",
1111
"license": "MIT",
1212
"engines": {
13-
"node": ">= 0.10"
13+
"node": ">=10.13.0"
1414
},
1515
"main": "index.js",
1616
"files": [
@@ -20,23 +20,31 @@
2020
],
2121
"scripts": {
2222
"lint": "eslint .",
23-
"pretest": "rm -rf tmp/ && npm run lint",
24-
"test": "mocha --async-only",
25-
"cover": "nyc --reporter=lcov --reporter=text-summary npm test",
26-
"coveralls": "nyc --reporter=text-lcov npm test | coveralls"
23+
"pretest": "npm run lint",
24+
"test": "nyc mocha --async-only"
2725
},
28-
"dependencies": {},
2926
"devDependencies": {
30-
"coveralls": "github:phated/node-coveralls#2.x",
31-
"eslint": "^2.13.0",
32-
"eslint-config-gulp": "^3.0.1",
33-
"expect": "^1.20.2",
34-
"mocha": "^3.5.3",
35-
"nyc": "^10.3.2",
36-
"parse-node-version": "^1.0.0",
37-
"rechoir": "^0.7.0",
38-
"shelljs": "0.7.5",
39-
"trash-cli": "^3.0.0"
27+
"eslint": "^7.0.0",
28+
"eslint-config-gulp": "^5.0.0",
29+
"eslint-plugin-node": "^11.1.0",
30+
"expect": "^27.0.0",
31+
"mocha": "^8.0.0",
32+
"nyc": "^15.0.0",
33+
"parse-node-version": "^2.0.0",
34+
"rechoir": "^0.8.0",
35+
"shelljs": "0.8.5"
36+
},
37+
"nyc": {
38+
"extension": [
39+
".js"
40+
],
41+
"reporter": [
42+
"lcov",
43+
"text-summary"
44+
]
45+
},
46+
"prettier": {
47+
"singleQuote": true
4048
},
4149
"keywords": [
4250
"coffee",

Diff for: test/.eslintrc

-6
This file was deleted.

Diff for: test/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)