diff options
Diffstat (limited to 'thirdparty/preact/package.json')
-rw-r--r-- | thirdparty/preact/package.json | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/thirdparty/preact/package.json b/thirdparty/preact/package.json index 293597fae..eba36d0fe 100644 --- a/thirdparty/preact/package.json +++ b/thirdparty/preact/package.json @@ -1,7 +1,7 @@ { "name": "preact", "amdName": "preact", - "version": "6.2.1", + "version": "6.4.0", "description": "Tiny & fast Component-based virtual DOM framework.", "main": "dist/preact.js", "jsnext:main": "src/preact.js", @@ -9,25 +9,27 @@ "dev:main": "dist/preact.dev.js", "minified:main": "dist/preact.min.js", "scripts": { - "clean": "rimraf dist/ $npm_package_aliases_main ${npm_package_aliases_main}.map", - "copy-flow-definition": "cp src/preact.js.flow dist/preact.js.flow", - "copy-typescript-definition": "cp src/preact.d.ts dist/preact.d.ts", + "clean": "rimraf dist/ aliases.js aliases.js.map devtools.js devtools.js.map", + "copy-flow-definition": "copyfiles src/preact.js.flow dist/preact.js.flow", + "copy-typescript-definition": "copyfiles src/preact.d.ts dist/preact.d.ts", "build": "npm-run-all --silent clean transpile copy-flow-definition copy-typescript-definition strip optimize minify size", - "transpile:main": "rollup -c config/rollup.config.js -m ${npm_package_dev_main}.map -f umd -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_dev_main", - "transpile:aliases": "rollup -c config/rollup.config.aliases.js -m ${npm_package_aliases_main}.map -f umd -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_aliases_main", - "transpile": "npm-run-all transpile:main transpile:aliases", - "optimize": "uglifyjs $npm_package_dev_main -c conditionals=false,sequences=false,loops=false,join_vars=false,collapse_vars=false --pure-funcs=Object.defineProperty -b width=120,quote_style=3 -o $npm_package_main -p relative --in-source-map ${npm_package_dev_main}.map --source-map ${npm_package_main}.map", - "minify": "uglifyjs $npm_package_main -c collapse_vars,evaluate,screw_ie8,unsafe,loops=false,keep_fargs=false,pure_getters,unused,dead_code -m -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map", + "transpile:main": "rollup -c config/rollup.config.js -m dist/preact.dev.js.map -f umd -n preact src/preact.js -o dist/preact.dev.js", + "transpile:devtools": "rollup -c config/rollup.config.devtools.js -o devtools.js -m devtools.js.map", + "transpile:aliases": "rollup -c config/rollup.config.aliases.js -m aliases.js.map -f umd -n preact src/preact.js -o aliases.js", + "transpile": "npm-run-all transpile:main transpile:aliases transpile:devtools", + "optimize": "uglifyjs dist/preact.dev.js -c conditionals=false,sequences=false,loops=false,join_vars=false,collapse_vars=false --pure-funcs=Object.defineProperty -b width=120,quote_style=3 -o dist/preact.js -p relative --in-source-map dist/preact.dev.js.map --source-map dist/preact.js.map", + "minify": "uglifyjs dist/preact.js -c collapse_vars,evaluate,screw_ie8,unsafe,loops=false,keep_fargs=false,pure_getters,unused,dead_code -m -o dist/preact.min.js -p relative --in-source-map dist/preact.js.map --source-map dist/preact.min.js.map", "strip": "jscodeshift --run-in-band -s -t config/codemod-strip-tdz.js dist/preact.dev.js && jscodeshift --run-in-band -s -t config/codemod-const.js dist/preact.dev.js", - "size": "size=$(gzip-size $npm_package_minified_main) && echo \"gzip size: $size / $(pretty-bytes $size)\"", + "size": "node -e \"process.stdout.write('gzip size: ')\" && gzip-size dist/preact.min.js", "test": "npm-run-all lint --parallel test:mocha test:karma", "test:mocha": "mocha --recursive --compilers js:babel/register test/shared test/node", "test:karma": "karma start test/karma.conf.js --single-run", "test:mocha:watch": "npm run test:mocha -- --watch", "test:karma:watch": "npm run test:karma -- no-single-run", - "lint": "eslint src test", + "lint": "eslint devtools src test", "prepublish": "npm run build", - "release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish" + "smart-release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish", + "release": "cross-env npm run smart-release" }, "eslintConfig": { "extends": "./config/eslint-config.js" @@ -38,10 +40,13 @@ "url": "https://github.com/developit/preact.git" }, "files": [ + "devtools", "src", "dist", "aliases.js", "aliases.js.map", + "devtools.js", + "devtools.js.map", "typings.json" ], "author": "Jason Miller <jason@developit.ca>", @@ -57,6 +62,9 @@ "babel-loader": "^5.3.2", "babel-runtime": "^5.8.24", "chai": "^3.4.1", + "copyfiles": "^1.0.0", + "core-js": "^2.4.1", + "cross-env": "^3.1.3", "diff": "^3.0.0", "eslint": "^3.0.0", "eslint-plugin-react": "^6.0.0", @@ -67,18 +75,18 @@ "karma-babel-preprocessor": "^5.2.2", "karma-chai": "^0.1.0", "karma-chai-sinon": "^0.1.5", + "karma-chrome-launcher": "^2.0.0", "karma-coverage": "^1.0.0", "karma-mocha": "^1.1.1", "karma-mocha-reporter": "^2.0.4", "karma-phantomjs-launcher": "^1.0.1", - "karma-sauce-launcher": "^1.0.0", + "karma-sauce-launcher": "^1.1.0", "karma-source-map-support": "^1.1.0", "karma-sourcemap-loader": "^0.3.6", "karma-webpack": "^1.7.0", "mocha": "^3.0.1", "npm-run-all": "^3.0.0", "phantomjs-prebuilt": "^2.1.7", - "pretty-bytes-cli": "^2.0.0", "rimraf": "^2.5.3", "rollup": "^0.34.1", "rollup-plugin-babel": "^1.0.0", |