You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
4.6 KiB
118 lines
4.6 KiB
{ |
|
"name": "preact", |
|
"version": "8.1.0", |
|
"description": "Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.", |
|
"main": "dist/preact.js", |
|
"jsnext:main": "src/preact.js", |
|
"dev:main": "dist/preact.dev.js", |
|
"minified:main": "dist/preact.min.js", |
|
"scripts": { |
|
"clean": "rimraf dist/ devtools.js devtools.js.map", |
|
"copy-flow-definition": "copyfiles -f src/preact.js.flow dist", |
|
"copy-typescript-definition": "copyfiles -f src/preact.d.ts dist", |
|
"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 dist/preact.dev.js.map -n preact -o dist/preact.dev.js", |
|
"transpile:devtools": "rollup -c config/rollup.config.devtools.js -o devtools.js -m devtools.js.map", |
|
"transpile": "npm-run-all transpile:main 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 --mangle-props --mangle-regex=\"/^(_|normalizedNodeName|nextBase|prev[CPS]|_parentC)/\" --name-cache config/properties.json -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": "node -e \"process.stdout.write('gzip size: ')\" && gzip-size dist/preact.min.js", |
|
"test": "npm-run-all lint --parallel test:mocha test:karma test:ts", |
|
"test:ts": "tsc -p test/ts/", |
|
"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 devtools src test", |
|
"prepublish": "npm run build", |
|
"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" |
|
}, |
|
"typings": "./dist/preact.d.ts", |
|
"repository": { |
|
"type": "git", |
|
"url": "https://github.com/developit/preact.git" |
|
}, |
|
"files": [ |
|
"devtools", |
|
"src", |
|
"dist", |
|
"devtools.js", |
|
"devtools.js.map", |
|
"typings.json" |
|
], |
|
"keywords": [ |
|
"preact", |
|
"react", |
|
"virtual dom", |
|
"vdom", |
|
"components", |
|
"virtual", |
|
"dom" |
|
], |
|
"author": "Jason Miller <jason@developit.ca>", |
|
"license": "MIT", |
|
"bugs": { |
|
"url": "https://github.com/developit/preact/issues" |
|
}, |
|
"homepage": "https://github.com/developit/preact", |
|
"devDependencies": { |
|
"babel": "^5.8.23", |
|
"babel-core": "^5.8.24", |
|
"babel-eslint": "^6.1.0", |
|
"babel-loader": "^5.3.2", |
|
"babel-runtime": "^5.8.24", |
|
"chai": "^3.4.1", |
|
"copyfiles": "^1.0.0", |
|
"core-js": "^2.4.1", |
|
"coveralls": "^2.11.15", |
|
"cross-env": "^3.1.3", |
|
"diff": "^3.0.0", |
|
"eslint": "^3.0.0", |
|
"eslint-plugin-react": "^6.0.0", |
|
"gzip-size-cli": "^1.0.0", |
|
"isparta-loader": "^2.0.0", |
|
"jscodeshift": "^0.3.25", |
|
"karma": "^1.1.0", |
|
"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.1.0", |
|
"karma-source-map-support": "^1.1.0", |
|
"karma-sourcemap-loader": "^0.3.6", |
|
"karma-webpack": "^2.0.1", |
|
"mocha": "^3.0.1", |
|
"npm-run-all": "^4.0.0", |
|
"phantomjs-prebuilt": "^2.1.7", |
|
"rimraf": "^2.5.3", |
|
"rollup": "^0.40.0", |
|
"rollup-plugin-babel": "^1.0.0", |
|
"rollup-plugin-memory": "^2.0.0", |
|
"rollup-plugin-node-resolve": "^2.0.0", |
|
"sinon": "^1.17.4", |
|
"sinon-chai": "^2.8.0", |
|
"typescript": "^2.2.2", |
|
"uglify-js": "^2.7.5", |
|
"webpack": "^1.13.1" |
|
}, |
|
"greenkeeper": { |
|
"ignore": [ |
|
"rollup-plugin-babel", |
|
"babel", |
|
"babel-core", |
|
"babel-eslint", |
|
"babel-loader", |
|
"babel-runtime", |
|
"jscodeshift" |
|
] |
|
} |
|
}
|
|
|