-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from wework/repo-config
Git hook config
- Loading branch information
Showing
9 changed files
with
96 additions
and
236 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 |
---|---|---|
|
@@ -32,4 +32,7 @@ node_modules | |
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
.node_repl_history | ||
|
||
# ESLint Cache | ||
.eslintcache |
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 |
---|---|---|
|
@@ -28,19 +28,26 @@ | |
"test:node:tdd": "npm run test:node -- --cache --watch", | ||
"test:node:ci": "npm run test:node && nyc report --reporter=text-lcov | coveralls", | ||
"test:bundle:tdd": "npm-run-all -l --parallel 'bundle:* -- --watch'", | ||
"eslint": "eslint src test", | ||
"lint": "eslint --format ./node_modules/eslint-friendly-formatter --cache src test", | ||
"clean": "rimraf dist && mkdirp dist", | ||
"bundle": "npm-run-all -l --parallel bundle:node bundle:browser", | ||
"bundle:node": "rollup -c --environment RUNTIME_ENV:node", | ||
"bundle:browser": "rollup -c --environment RUNTIME_ENV:client", | ||
"start": "npm test && npm run dist", | ||
"dist": "npm run eslint && npm run clean && npm run bundle && npm run docs", | ||
"dist": "npm run lint && npm run clean && npm run bundle && npm run docs", | ||
"docs": "documentation build src/client.js src/node.js --github --format md --output API.md", | ||
"security-scan": "nsp check --output summary --warn-only", | ||
"pretest": "npm run bundle", | ||
"preversion": "npm run dist; git add API.md", | ||
"version": "auto-changelog --template compact --package; git add CHANGELOG.md", | ||
"release": "np" | ||
}, | ||
"config": { | ||
"ghooks": { | ||
"pre-commit": "npm run lint", | ||
"pre-push": "npm run security-scan" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:wework/we-js-logger.git" | ||
|
@@ -82,6 +89,10 @@ | |
"coveralls": "2.11.14", | ||
"documentation": "4.0.0-beta11", | ||
"eslint": "3.8.1", | ||
"eslint-friendly-formatter": "2.0.6", | ||
"eslint-plugin-import": "2.0.1", | ||
"eslint-plugin-mocha": "4.7.0", | ||
"ghooks": "1.3.2", | ||
"imports-loader": "0.6.5", | ||
"json-loader": "0.5.4", | ||
"karma": "1.3.0", | ||
|
@@ -96,6 +107,7 @@ | |
"mocha": "3.1.2", | ||
"np": "2.9.0", | ||
"npm-run-all": "3.1.1", | ||
"nsp": "2.6.2", | ||
"nyc": "8.3.1", | ||
"phantomjs-prebuilt": "2.1.13", | ||
"rimraf": "2.5.4", | ||
|
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
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
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,19 @@ | ||
{ | ||
"env": { | ||
"mocha": true | ||
}, | ||
"globals": { | ||
"sinon": false, | ||
"expect": false | ||
}, | ||
"rules": { | ||
"no-unused-expressions": 0, | ||
"max-len": 0, | ||
"mocha/no-exclusive-tests": 1, | ||
"mocha/handle-done-callback": 1, | ||
"mocha/no-nested-tests": 1 | ||
}, | ||
"plugins": [ | ||
"mocha" | ||
] | ||
} |
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