-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And format the files
- Loading branch information
Showing
8 changed files
with
147 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,110 @@ | ||
version: 2.1 | ||
|
||
references: | ||
x-workdir: &work-dir | ||
working_directory: ~/source | ||
x-workdir: &work-dir | ||
working_directory: ~/source | ||
|
||
x-save-workspace: &persist-step | ||
persist_to_workspace: | ||
root: ~/source | ||
paths: | ||
- . | ||
x-save-workspace: &persist-step | ||
persist_to_workspace: | ||
root: ~/source | ||
paths: | ||
- . | ||
|
||
x-attach: &attach-step | ||
attach_workspace: | ||
at: . | ||
x-attach: &attach-step | ||
attach_workspace: | ||
at: . | ||
|
||
jobs: | ||
install-dependencies: | ||
<<: *work-dir | ||
docker: | ||
- image: circleci/node:10 | ||
environment: | ||
HUSKY_SKIP_INSTALL: 1 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-npm-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
if [ ! -d node_modules ]; then | ||
npm ci | ||
fi | ||
- save_cache: | ||
key: v1-npm-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
- *persist-step | ||
install-dependencies: | ||
<<: *work-dir | ||
docker: | ||
- image: circleci/node:10 | ||
environment: | ||
HUSKY_SKIP_INSTALL: 1 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-npm-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
if [ ! -d node_modules ]; then | ||
npm ci | ||
fi | ||
- save_cache: | ||
key: v1-npm-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
- *persist-step | ||
|
||
lint: | ||
<<: *work-dir | ||
docker: | ||
- image: node | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: lint | ||
command: npm run lint | ||
lint: | ||
<<: *work-dir | ||
docker: | ||
- image: node | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: lint | ||
command: npm run lint | ||
|
||
node-10: | ||
docker: | ||
- image: circleci/node:10 | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: Test | ||
command: npm test | ||
prettier: | ||
<<: *work-dir | ||
docker: | ||
- image: node | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: prettier | ||
command: npm run prettier:check | ||
|
||
node-12: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: Test with coverage | ||
command: npm run test:coverage | ||
- run: | ||
name: Upload coverage report | ||
command: bash <(curl -s https://codecov.io/bash) -F unit -s coverage/lcov.info | ||
node-10: | ||
docker: | ||
- image: circleci/node:10 | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: Test | ||
command: npm test | ||
|
||
node-14: | ||
docker: | ||
- image: circleci/node:14 | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: Test | ||
command: npm test | ||
node-12: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: Test with coverage | ||
command: npm run test:coverage | ||
- run: | ||
name: Upload coverage report | ||
command: bash <(curl -s https://codecov.io/bash) -F unit -s coverage/lcov.info | ||
|
||
node-14: | ||
docker: | ||
- image: circleci/node:14 | ||
steps: | ||
- *attach-step | ||
- run: | ||
name: Test | ||
command: npm test | ||
|
||
workflows: | ||
version: 2 | ||
nise: | ||
jobs: | ||
- install-dependencies | ||
- lint: | ||
requires: | ||
- install-dependencies | ||
- node-10: | ||
requires: | ||
- install-dependencies | ||
- node-12: | ||
requires: | ||
- install-dependencies | ||
- node-14: | ||
requires: | ||
version: 2 | ||
nise: | ||
jobs: | ||
- install-dependencies | ||
- lint: | ||
requires: | ||
- install-dependencies | ||
- prettier: | ||
requires: | ||
- install-dependencies | ||
- node-10: | ||
requires: | ||
- install-dependencies | ||
- node-12: | ||
requires: | ||
- install-dependencies | ||
- node-14: | ||
requires: | ||
- install-dependencies |
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,31 +1,31 @@ | ||
extends: eslint-config-sinon | ||
|
||
globals: | ||
ArrayBuffer: false | ||
Uint8Array: false | ||
ArrayBuffer: false | ||
Uint8Array: false | ||
|
||
plugins: | ||
- ie11 | ||
- ie11 | ||
|
||
rules: | ||
ie11/no-collection-args: error | ||
ie11/no-for-in-const: error | ||
ie11/no-loop-func: warn | ||
ie11/no-weak-collections: error | ||
ie11/no-collection-args: error | ||
ie11/no-for-in-const: error | ||
ie11/no-loop-func: warn | ||
ie11/no-weak-collections: error | ||
prettier/prettier: off | ||
|
||
overrides: | ||
- | ||
files: '*.test.*' | ||
env: | ||
mocha: true | ||
- files: "*.test.*" | ||
env: | ||
mocha: true | ||
|
||
plugins: | ||
- mocha | ||
plugins: | ||
- mocha | ||
|
||
rules: | ||
mocha/no-exclusive-tests: error | ||
mocha/no-identical-title: error | ||
mocha/no-nested-tests: error | ||
mocha/no-sibling-hooks: error | ||
mocha/no-top-level-hooks: error | ||
max-nested-callbacks: off | ||
rules: | ||
mocha/no-exclusive-tests: error | ||
mocha/no-identical-title: error | ||
mocha/no-nested-tests: error | ||
mocha/no-sibling-hooks: error | ||
mocha/no-top-level-hooks: error | ||
max-nested-callbacks: off |
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 @@ | ||
nise.js | ||
coverage/ | ||
site/ | ||
.nyc_output/ | ||
History.md |
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,2 @@ | ||
# This project uses Prettier defaults, the config file is present in | ||
# order to trigger editor plugins to allow format on save behaviour |
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
Oops, something went wrong.