UNPKG

4.59 kBJSONView Raw
1{
2 "name": "preact",
3 "amdName": "preact",
4 "version": "7.0.2",
5 "description": "Tiny & fast Component-based virtual DOM framework.",
6 "main": "dist/preact.js",
7 "jsnext:main": "src/preact.js",
8 "aliases:main": "aliases.js",
9 "dev:main": "dist/preact.dev.js",
10 "minified:main": "dist/preact.min.js",
11 "scripts": {
12 "clean": "rimraf dist/ aliases.js aliases.js.map devtools.js devtools.js.map",
13 "copy-flow-definition": "copyfiles src/preact.js.flow dist/preact.js.flow",
14 "copy-typescript-definition": "copyfiles src/preact.d.ts dist/preact.d.ts",
15 "build": "npm-run-all --silent clean transpile copy-flow-definition copy-typescript-definition strip optimize minify size",
16 "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",
17 "transpile:devtools": "rollup -c config/rollup.config.devtools.js -o devtools.js -m devtools.js.map",
18 "transpile:aliases": "rollup -c config/rollup.config.aliases.js -m aliases.js.map -f umd -n preact src/preact.js -o aliases.js",
19 "transpile": "npm-run-all transpile:main transpile:aliases transpile:devtools",
20 "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",
21 "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",
22 "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",
23 "size": "node -e \"process.stdout.write('gzip size: ')\" && gzip-size dist/preact.min.js",
24 "test": "npm-run-all lint --parallel test:mocha test:karma",
25 "test:mocha": "mocha --recursive --compilers js:babel/register test/shared test/node",
26 "test:karma": "karma start test/karma.conf.js --single-run",
27 "test:mocha:watch": "npm run test:mocha -- --watch",
28 "test:karma:watch": "npm run test:karma -- no-single-run",
29 "lint": "eslint devtools src test",
30 "prepublish": "npm run build",
31 "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",
32 "release": "cross-env npm run smart-release"
33 },
34 "eslintConfig": {
35 "extends": "./config/eslint-config.js"
36 },
37 "typings": "./src/preact.d.ts",
38 "repository": {
39 "type": "git",
40 "url": "https://github.com/developit/preact.git"
41 },
42 "files": [
43 "devtools",
44 "src",
45 "dist",
46 "aliases.js",
47 "aliases.js.map",
48 "devtools.js",
49 "devtools.js.map",
50 "typings.json"
51 ],
52 "author": "Jason Miller <jason@developit.ca>",
53 "license": "MIT",
54 "bugs": {
55 "url": "https://github.com/developit/preact/issues"
56 },
57 "homepage": "https://github.com/developit/preact",
58 "devDependencies": {
59 "babel": "^5.8.23",
60 "babel-core": "^5.8.24",
61 "babel-eslint": "^6.1.0",
62 "babel-loader": "^5.3.2",
63 "babel-runtime": "^5.8.24",
64 "chai": "^3.4.1",
65 "copyfiles": "^1.0.0",
66 "core-js": "^2.4.1",
67 "cross-env": "^3.1.3",
68 "diff": "^3.0.0",
69 "eslint": "^3.0.0",
70 "eslint-plugin-react": "^6.0.0",
71 "gzip-size-cli": "^1.0.0",
72 "isparta-loader": "^2.0.0",
73 "jscodeshift": "^0.3.25",
74 "karma": "^1.1.0",
75 "karma-babel-preprocessor": "^5.2.2",
76 "karma-chai": "^0.1.0",
77 "karma-chai-sinon": "^0.1.5",
78 "karma-coverage": "^1.0.0",
79 "karma-mocha": "^1.1.1",
80 "karma-mocha-reporter": "^2.0.4",
81 "karma-phantomjs-launcher": "^1.0.1",
82 "karma-sauce-launcher": "^1.1.0",
83 "karma-source-map-support": "^1.1.0",
84 "karma-sourcemap-loader": "^0.3.6",
85 "karma-webpack": "^1.7.0",
86 "mocha": "^3.0.1",
87 "npm-run-all": "^3.0.0",
88 "phantomjs-prebuilt": "^2.1.7",
89 "rimraf": "^2.5.3",
90 "rollup": "^0.34.1",
91 "rollup-plugin-babel": "^1.0.0",
92 "rollup-plugin-memory": "^2.0.0",
93 "rollup-plugin-node-resolve": "^2.0.0",
94 "sinon": "^1.17.4",
95 "sinon-chai": "^2.8.0",
96 "uglify-js": "^2.7.0",
97 "webpack": "^1.13.1"
98 },
99 "greenkeeper": {
100 "ignore": [
101 "rollup-plugin-babel",
102 "babel",
103 "babel-core",
104 "babel-eslint",
105 "babel-loader",
106 "babel-runtime",
107 "jscodeshift"
108 ]
109 }
110}