-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'visionmedia:master' into master
- Loading branch information
Showing
40 changed files
with
1,624 additions
and
1,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:node/recommended" | ||
], | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2021 | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "test/**/*.js", | ||
"env": { | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"no-prototype-builtins": "off", | ||
"node/no-deprecated-api": "warn", | ||
"node/no-extraneous-require": "warn", | ||
"no-unused-vars": "warn" | ||
} | ||
} | ||
], | ||
"rules": { | ||
"node/no-unsupported-features/node-builtins": "off", | ||
"node/no-unsupported-features/es-syntax": "off", | ||
"node/no-exports-assign": "off" | ||
}, | ||
"globals": { | ||
"ActiveXObject": "readonly" | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
env: | ||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | ||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- node-version: 10.x | ||
test-on-old-node: 1 | ||
- node-version: 12.x | ||
# test-on-brower: 1 | ||
- node-version: 14.x | ||
- node-version: 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Node - ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install Dependencies On Old Node ${{ matrix.node-version }} | ||
if: ${{ matrix.test-on-old-node == '1' }} | ||
run: yarn install --ignore-optional --ignore-scripts | ||
- name: Install Dependencies On Node ${{ matrix.node-version }} | ||
if: ${{ matrix.test-on-old-node != '1' }} | ||
run: yarn install | ||
- name: Build | ||
run: npm run build | ||
- name: Build On Old Node | ||
if: ${{ matrix.test-on-old-node == '1' }} | ||
run: npm run build:test | ||
- name: Test On Node ${{ matrix.node-version }} | ||
env: | ||
BROWSER: ${{ matrix.test-on-brower }} | ||
HTTP2_TEST_DISABLED: ${{ matrix.http2-test-disabled }} | ||
OLD_NODE_TEST: ${{ matrix.test-on-old-node }} | ||
run: | | ||
if [ "$OLD_NODE_TEST" = "1" ]; then | ||
make test | ||
else | ||
npm run lint | ||
make test | ||
fi | ||
- name: Coverage On Node ${{ matrix.node-version }} | ||
run: | ||
npm run coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
build | ||
lib-cov | ||
coverage.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# enable next line when tests are fixed | ||
# npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"node": "6.4.0", | ||
"browsers": [ "> 1%", "last 2 versions", "ie 9" ] | ||
} | ||
}] | ||
], | ||
"sourceMaps": "inline" | ||
} | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"node": "6.4.0", | ||
"browsers": [ "> 1%", "last 2 versions", "ie 9" ] | ||
} | ||
}] | ||
], | ||
"sourceMaps": "inline" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"node": "6.4.0", | ||
"browsers": [ "> 1%", "last 2 versions", "ie 9" ] | ||
} | ||
}] | ||
], | ||
"plugins": [ | ||
["@babel/transform-runtime"] | ||
], | ||
"parserOpts": { | ||
"allowReturnOutsideFunction": true | ||
}, | ||
"sourceMaps": "inline" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.