* Drop `m.version` It's caused way too much grief over the years, and I've finally decided it's worth pitching. For those who need it, it's easy to get, especially if you use it through Node or a build system. And for those who are just loading it globally, you have to explicitly specify the version anyways, so you'd be just as golden if you followed it up with a simple inline script that does `m.version = "the version you loaded"`. Oh, and also, you shouldn't be coding specifically for version numbers, either - it's a known anti-pattern. Instead, you should prefer feature detection and just do the right thing. * Update changelog [skip ci]
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "mithril",
|
|
"version": "2.0.0-rc.7",
|
|
"description": "A framework for building brilliant applications",
|
|
"author": "Leo Horie",
|
|
"license": "MIT",
|
|
"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",
|
|
"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 index.js mithril.js mithril.min.js",
|
|
"postversion": "git push --follow-tags"
|
|
},
|
|
"devDependencies": {
|
|
"@alrra/travis-scripts": "^3.0.1",
|
|
"benchmark": "^2.1.4",
|
|
"chokidar": "^2.0.4",
|
|
"dedent": "^0.7.0",
|
|
"eslint": "^5.13.0",
|
|
"gh-pages": "^2.0.1",
|
|
"istanbul": "^0.4.5",
|
|
"lint-staged": "^8.1.3",
|
|
"locater": "^1.3.0",
|
|
"marked": "^0.6.2",
|
|
"pinpoint": "^1.1.0",
|
|
"terser": "^3.16.1"
|
|
},
|
|
"bin": {
|
|
"ospec": "./ospec/bin/ospec"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"eslint . --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"dependencies": {}
|
|
}
|