1 | {
|
2 | "name": "preact",
|
3 | "amdName": "preact",
|
4 | "version": "6.4.0",
|
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/ $npm_package_aliases_main ${npm_package_aliases_main}.map devtools.js devtools.js.map",
|
13 | "copy-flow-definition": "cp src/preact.js.flow dist/preact.js.flow",
|
14 | "copy-typescript-definition": "cp 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 ${npm_package_dev_main}.map -f umd -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_dev_main",
|
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 ${npm_package_aliases_main}.map -f umd -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_aliases_main",
|
19 | "transpile": "npm-run-all transpile:main transpile:aliases transpile:devtools",
|
20 | "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",
|
21 | "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",
|
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": "size=$(gzip-size $npm_package_minified_main) && echo \"gzip size: $size / $(pretty-bytes $size)\"",
|
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 | "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 | },
|
33 | "eslintConfig": {
|
34 | "extends": "./config/eslint-config.js"
|
35 | },
|
36 | "typings": "./src/preact.d.ts",
|
37 | "repository": {
|
38 | "type": "git",
|
39 | "url": "https://github.com/developit/preact.git"
|
40 | },
|
41 | "files": [
|
42 | "devtools",
|
43 | "src",
|
44 | "dist",
|
45 | "aliases.js",
|
46 | "aliases.js.map",
|
47 | "devtools.js",
|
48 | "devtools.js.map",
|
49 | "typings.json"
|
50 | ],
|
51 | "author": "Jason Miller <jason@developit.ca>",
|
52 | "license": "MIT",
|
53 | "bugs": {
|
54 | "url": "https://github.com/developit/preact/issues"
|
55 | },
|
56 | "homepage": "https://github.com/developit/preact",
|
57 | "devDependencies": {
|
58 | "babel": "^5.8.23",
|
59 | "babel-core": "^5.8.24",
|
60 | "babel-eslint": "^6.1.0",
|
61 | "babel-loader": "^5.3.2",
|
62 | "babel-runtime": "^5.8.24",
|
63 | "chai": "^3.4.1",
|
64 | "core-js": "^2.4.1",
|
65 | "diff": "^3.0.0",
|
66 | "eslint": "^3.0.0",
|
67 | "eslint-plugin-react": "^6.0.0",
|
68 | "gzip-size-cli": "^1.0.0",
|
69 | "isparta-loader": "^2.0.0",
|
70 | "jscodeshift": "^0.3.25",
|
71 | "karma": "^1.1.0",
|
72 | "karma-babel-preprocessor": "^5.2.2",
|
73 | "karma-chai": "^0.1.0",
|
74 | "karma-chai-sinon": "^0.1.5",
|
75 | "karma-coverage": "^1.0.0",
|
76 | "karma-mocha": "^1.1.1",
|
77 | "karma-mocha-reporter": "^2.0.4",
|
78 | "karma-phantomjs-launcher": "^1.0.1",
|
79 | "karma-sauce-launcher": "^1.0.0",
|
80 | "karma-source-map-support": "^1.1.0",
|
81 | "karma-sourcemap-loader": "^0.3.6",
|
82 | "karma-webpack": "^1.7.0",
|
83 | "mocha": "^3.0.1",
|
84 | "npm-run-all": "^3.0.0",
|
85 | "phantomjs-prebuilt": "^2.1.7",
|
86 | "pretty-bytes-cli": "^2.0.0",
|
87 | "rimraf": "^2.5.3",
|
88 | "rollup": "^0.34.1",
|
89 | "rollup-plugin-babel": "^1.0.0",
|
90 | "rollup-plugin-memory": "^2.0.0",
|
91 | "rollup-plugin-node-resolve": "^2.0.0",
|
92 | "sinon": "^1.17.4",
|
93 | "sinon-chai": "^2.8.0",
|
94 | "uglify-js": "^2.7.0",
|
95 | "webpack": "^1.13.1"
|
96 | },
|
97 | "greenkeeper": {
|
98 | "ignore": [
|
99 | "rollup-plugin-babel",
|
100 | "babel",
|
101 | "babel-core",
|
102 | "babel-eslint",
|
103 | "babel-loader",
|
104 | "babel-runtime",
|
105 | "jscodeshift"
|
106 | ]
|
107 | }
|
108 | }
|