Refactor scripts (#2465)
* Refactor all kinds of scripts * Update docs to ensure linter passes
This commit is contained in:
parent
62172cbe08
commit
48e7fd1711
23 changed files with 1695 additions and 340 deletions
38
package.json
38
package.json
|
|
@ -7,36 +7,48 @@
|
|||
"unpkg": "mithril.min.js",
|
||||
"repository": "MithrilJS/mithril.js",
|
||||
"scripts": {
|
||||
"dev": "node bundler/cli browser.js -output mithril.js -watch",
|
||||
"build": "npm run build-browser & npm run build-min",
|
||||
"build-browser": "node bundler/cli browser.js -output mithril.js",
|
||||
"build-min": "node bundler/cli browser.js -output mithril.min.js -minify -save",
|
||||
"precommit": "lint-staged",
|
||||
"lintdocs": "node docs/lint",
|
||||
"gendocs": "node docs/generate",
|
||||
"lint": "eslint . || true",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"watch": "run-p watch:**",
|
||||
"watch:js": "node bundler/cli browser.js -output mithril.js -watch",
|
||||
"watch:docs": "node scripts/watch-docs.js",
|
||||
"build": "run-p build:**",
|
||||
"build:browser": "node bundler/cli browser.js -output mithril.js",
|
||||
"build:docs": "node scripts/generate-docs",
|
||||
"build:min": "node bundler/cli browser.js -output mithril.min.js -minify -save",
|
||||
"lint": "run-s -cn lint:**",
|
||||
"lint:js": "eslint . --cache",
|
||||
"lint:docs": "node scripts/lint-docs",
|
||||
"perf": "node performance/test-perf.js",
|
||||
"pretest": "npm run lint",
|
||||
"test": "node ospec/bin/ospec",
|
||||
"posttest": "npm run lint",
|
||||
"cover": "istanbul cover --print both ospec/bin/ospec",
|
||||
"release": "npm version -m 'v%s'",
|
||||
"preversion": "npm run test",
|
||||
"version": "npm run build && git add index.js mithril.js mithril.min.js README.md",
|
||||
"postversion": "git push --follow-tags"
|
||||
"release": "node scripts/release",
|
||||
"release:docs": "node scripts/update-docs",
|
||||
"version": "npm run build && git add index.js mithril.js mithril.min.js README.md"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alrra/travis-scripts": "^3.0.1",
|
||||
"@babel/parser": "^7.5.5",
|
||||
"benchmark": "^2.1.4",
|
||||
"chokidar": "^2.0.4",
|
||||
"dedent": "^0.7.0",
|
||||
"escape-string-regexp": "^2.0.0",
|
||||
"eslint": "^5.13.0",
|
||||
"gh-pages": "^2.0.1",
|
||||
"glob": "^7.1.4",
|
||||
"html-minifier": "^4.0.0",
|
||||
"istanbul": "^0.4.5",
|
||||
"lint-staged": "^8.1.3",
|
||||
"locater": "^1.3.0",
|
||||
"marked": "^0.6.2",
|
||||
"marked": "^0.7.0",
|
||||
"minimist": "^1.2.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"pinpoint": "^1.1.0",
|
||||
"recursive-copy": "^2.0.10",
|
||||
"request": "^2.88.0",
|
||||
"request-promise-native": "^1.0.7",
|
||||
"rimraf": "^2.6.3",
|
||||
"terser": "^3.16.1"
|
||||
},
|
||||
"bin": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue