-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update build process for ES6 #320
Changes from 1 commit
9b5cb3a
0dfd60a
ff72398
0a11404
31af4bb
7f8375d
591b56d
543b9cf
e057956
4ab261b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
} | ||
}, | ||
rules: { | ||
"max-len": ["warn", { | ||
code: 90, | ||
ignoreComments: true, | ||
}], | ||
curly: ["error", "multi-line"], | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,12 @@ | |
"test": "istanbul cover --report cobertura --config .istanbul.yml -i \"lib/**/*.js\" jasmine-node -- spec --verbose --junitreport --captureExceptions", | ||
"check": "jasmine-node spec --verbose --junitreport --captureExceptions", | ||
"gendoc": "jsdoc -r lib -P package.json -R README.md -d .jsdoc", | ||
"compile": "babel -s -d lib src", | ||
"compile": "npm run lint && babel -s -d lib src", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a reason to maintain a separate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wfm |
||
"start": "babel -s -w -d lib src", | ||
"build": "jshint -c .jshint lib/ && rimraf dist && mkdir dist && browserify --exclude olm browser-index.js -o dist/browser-matrix.js --ignore-missing && uglifyjs -c -m -o dist/browser-matrix.min.js dist/browser-matrix.js", | ||
"build": "npm run compile && rimraf dist && mkdir dist && browserify --exclude olm browser-index.js -o dist/browser-matrix.js --ignore-missing && uglifyjs -c -m -o dist/browser-matrix.min.js dist/browser-matrix.js", | ||
"dist": "npm run build", | ||
"watch": "watchify --exclude olm browser-index.js -o dist/browser-matrix-dev.js -v", | ||
"lint": "jshint -c .jshint src spec && gjslint --unix_mode --disable 0131,0211,0200,0222,0212 --max_line_length 90 -r spec/ -r src/", | ||
"lint": "eslint src", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't we check the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we set --max-warnings on this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed (and max-warnings now redundant since everything is an error) |
||
"prepublish": "npm run compile && git rev-parse HEAD > git-revision.txt" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/compile/build/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
}, | ||
"repository": { | ||
|
@@ -53,10 +53,10 @@ | |
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"eslint": "^3.13.1", | ||
"istanbul": "^0.3.13", | ||
"jasmine-node": "^1.14.5", | ||
"jsdoc": "^3.4.0", | ||
"jshint": "^2.8.0", | ||
"rimraf": "^2.5.4", | ||
"uglifyjs": "^2.4.10", | ||
"watchify": "^3.2.1" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we enable http://eslint.org/docs/rules/require-jsdoc and http://eslint.org/docs/rules/valid-jsdoc? It would be a shame if we started slipping into bad habits with the jsdoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, turning these on produces 537 warnings, so presumably it's somewhat stricter than jshint :/
Should we turn them on and aspire to fix the warnings?