Skip to content

Commit

Permalink
Skel changes
Browse files Browse the repository at this point in the history
* Removed comma-dangle config since it's included in the config
* Updated .npmignore and .gitignore
* Removed licenses in favour of licence from package.json
* Cleaned up lint commands
* Removed deprecated test-cov and view-cov commands (TODO replace these)
  • Loading branch information
rwky committed Jun 18, 2019
1 parent 5d1a719 commit 31e89f1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 28 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ module.exports = {
// 'jest'
],
rules: {
'comma-dangle': 2,
'no-underscore-dangle': 0,
'no-param-reassign': 0,

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
reports/
doc/
var/



Expand Down
15 changes: 10 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
CONTRIBUTING.md
Makefile
docs/
.DS_Store
.eslintignore
.eslintrc.js
examples/
.github
.github/
.gitlab-ci.yml
Makefile
reports/
temmplates
test/
.github/
.travis.yml
.gitlab-ci.yml
.eslintrc.js
.eslintignore
var/
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
"authentication"
],
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"main": "./lib",
"repository": {
"type": "git",
Expand All @@ -63,10 +57,8 @@
"scripts": {
"templates": "node ./templates/gen.js",
"init-new-project": "node ./templates/gen --init",
"lint": "./node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0 --ext js,md .",
"lintfix": "./node_modules/.bin/eslint --ext js,md . --fix",
"test": "./node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js",
"test-cov": "make test-cov",
"view-cov": "make view-cov"
"lint": "eslint --max-warnings 0 --ext js,md .",
"lintfix": "eslint --ext js,md . --fix",
"test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js"
}
}
2 changes: 2 additions & 0 deletions templates/.gitignore.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
reports/
doc/
var/

{% if npmModule == "@passport-next/skel" %}
package-lock.json
Expand Down
14 changes: 3 additions & 11 deletions templates/package.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@
"authentication"
],
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"main": "./lib",
"repository": {
"type": "git",
Expand All @@ -60,10 +54,8 @@
"scripts": {
"templates": "node ./templates/gen.js",
"init-new-project": "node ./templates/gen --init",
"lint": "./node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0 --ext js,md .",
"lintfix": "./node_modules/.bin/eslint --ext js,md . --fix",
"test": "./node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js",
"test-cov": "make test-cov",
"view-cov": "make view-cov"
"lint": "eslint --max-warnings 0 --ext js,md .",
"lintfix": "eslint --ext js,md . --fix",
"test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js",
}
}

0 comments on commit 31e89f1

Please sign in to comment.