Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Created October 13, 2017 17:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StoneCypher/07e82aa89238d9ffb901a946abc6b2c9 to your computer and use it in GitHub Desktop.
Save StoneCypher/07e82aa89238d9ffb901a946abc6b2c9 to your computer and use it in GitHub Desktop.
fuller build setup
{
"plugins" : ["transform-flow-strip-types"],
"presets" : ["es2015", "react"],
"sourceMaps" : "inline"
}
engines:
csslint:
enabled: true
duplication:
enabled: true
config:
languages:
- javascript
eslint:
enabled: true
fixme:
enabled: true
ratings:
paths:
- "**.css"
- "**.js"
- "**.jsx"
exclude_paths:
- dist/
- docs/
- src/js/tests/
- build/
{
"parser" : "babel-eslint",
"plugins" : [ ],
"env" : { "es6": true, "commonjs": true, "browser": true },
"extends" : "eslint-config-stonecypher"
}
[ignore]
.*/node_modules/documentation/.*
[include]
[libs]
[options]
{
"exclude": [
"**/*.cjs.js"
]
}
language: node_js
node_js:
- "8"
script:
- npm run build
- npm run test
after_success:
- npm run travis
"scripts": {
"test": "nyc ava src/js/tests/*.js",
"removedir": "rimraf build -f && rimraf dist -f && rimraf docs -f",
"createdir": "mkdir build && mkdir dist && mkdir docs && cd docs && mkdir docs && cd ..",
"clean": "npm run removedir && rm -f src/js/jssm-dot.js && npm run createdir",
"babel": "babel src/js -d build/",
"setver": "node ./set_version.js",
"rename": "node -e \"require('fs').renameSync('./build/jssm.js', './build/jssm.es5.js');\"",
"pack": "browserify -r ./build/jssm.es5.js:jssm -o build/jssm.es5.cjs.js",
"make": "npm run clean && npm run peg && npm run babel && npm run rename && npm run setver && npm run pack",
"flow": "flow",
"peg": "rm -f src/js/jssm-dot.js && pegjs src/js/jssm-dot.peg && cp src/js/jssm-dot.js build/",
"eslint": "eslint src/js/jssm.js src/js/jssm-types.js src/js/tests/*.js",
"nyc-html": "nyc report --reporter=html",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"vet": "npm run flow && npm run eslint",
"audit": "text_audit -t major wasteful any mixed fixme checkme testme stochable todo comeback whargarbl",
"qbuild": "npm run eslint && npm run make && npm run minify && npm run docs && npm run site && npm run dist",
"build": "npm run make && npm run vet && npm run audit && npm run minify && npm run docs && npm run site && npm run dist",
"minify": "uglifyjs ./build/jssm.es5.cjs.js -o ./build/jssm.es5.cjs.min.js --compress",
"dist": "cp build/jssm.es5.cjs.* dist/",
"site": "cp src/site/* docs/",
"docs": "documentation build src/js/** -f html -o docs/lib && npm run changelog",
"changelog": "rm -f CHANGELOG.md && changelog-maker -a > CHANGELOG.md",
"travis": "npm run build && npm run nyc-html && npm run coverage"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment