* output mithril, stream and ospec esm versions on build
* Add esm bundles
* [request] Clearer error message for JSON deserialization failure (#2195)
* Bundled output for commit fd7cf8041e [skip ci]
* Fix #1714 conditionally halting stream (#2200)
* Fix #1714 conditionally halting stream
* Add note in changelog
* Do not include stream as named export in mithril.esm.js
* Rename mithril.min.esm.js to mithril.esm.min.js
* Add esm files to eslintignore
* Add named exports
* Add hyperscript `m` as named export
* Add builds with export changes
* checkout regular bundled files
* Change .esm.js to .mjs
* Update pkg module to point to .mjs
* Fix for export names to avoid collision
* Updated bundled files
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"name": "mithril",
|
|
"version": "2.0.0-rc.1",
|
|
"description": "A framework for building brilliant applications",
|
|
"author": "Leo Horie",
|
|
"license": "MIT",
|
|
"main": "mithril.js",
|
|
"module": "mithril.mjs",
|
|
"repository": "MithrilJS/mithril.js",
|
|
"scripts": {
|
|
"dev": "node bundler/cli browser.js -output mithril.js -watch",
|
|
"build": "npm run build-browser & npm run build-min && npm run build-esm",
|
|
"build-browser": "node bundler/cli browser.js -output mithril.js",
|
|
"build-min": "node bundler/cli browser.js -output mithril.min.js -minify",
|
|
"build-esm": "node esm.js",
|
|
"precommit": "lint-staged",
|
|
"lintdocs": "node docs/lint",
|
|
"gendocs": "node docs/generate",
|
|
"lint": "eslint . || true",
|
|
"lint:fix": "eslint . --fix",
|
|
"perf": "node performance/test-perf.js",
|
|
"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 mithril.js mithril.min.js",
|
|
"postversion": "git push --follow-tags"
|
|
},
|
|
"devDependencies": {
|
|
"@alrra/travis-scripts": "^3.0.1",
|
|
"benchmark": "^2.1.4",
|
|
"dedent": "^0.7.0",
|
|
"eslint": "^3.19.0",
|
|
"gh-pages": "^0.12.0",
|
|
"glob": "^7.1.2",
|
|
"istanbul": "^0.4.5",
|
|
"lint-staged": "^4.0.4",
|
|
"locater": "^1.3.0",
|
|
"marked": "^0.3.19",
|
|
"pinpoint": "^1.1.0",
|
|
"terser": "^3.10.11"
|
|
},
|
|
"bin": {
|
|
"ospec": "./ospec/bin/ospec"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"eslint . --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"dependencies": {}
|
|
}
|