UNPKG

5.94 kBJSONView Raw
1{
2 "name": "preact",
3 "version": "8.2.9",
4 "description": "Fast 3kb React alternative with the same modern API. Components & Virtual DOM.",
5 "main": "dist/preact.js",
6 "jsnext:main": "dist/preact.esm.js",
7 "module": "dist/preact.esm.js",
8 "dev:main": "dist/preact.dev.js",
9 "minified:main": "dist/preact.min.js",
10 "types": "dist/preact.d.ts",
11 "scripts": {
12 "clean": "rimraf dist/ devtools.js devtools.js.map debug.js debug.js.map test/ts/**/*.js",
13 "copy-flow-definition": "copyfiles -f src/preact.js.flow dist",
14 "copy-typescript-definition": "copyfiles -f src/preact.d.ts dist",
15 "build": "npm-run-all --silent clean transpile copy-flow-definition copy-typescript-definition strip optimize minify size",
16 "flow": "flow",
17 "transpile:main": "rollup -c config/rollup.config.js",
18 "transpile:devtools": "rollup -c config/rollup.config.devtools.js",
19 "transpile:esm": "rollup -c config/rollup.config.esm.js",
20 "transpile:debug": "babel debug/ -o debug.js -s",
21 "transpile": "npm-run-all transpile:main transpile:esm transpile:devtools transpile:debug",
22 "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",
23 "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",
24 "strip:main": "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 && jscodeshift --run-in-band -s -t config/codemod-let-name.js dist/preact.dev.js",
25 "strip:esm": "jscodeshift --run-in-band -s -t config/codemod-strip-tdz.js dist/preact.esm.js && jscodeshift --run-in-band -s -t config/codemod-const.js dist/preact.esm.js && jscodeshift --run-in-band -s -t config/codemod-let-name.js dist/preact.esm.js",
26 "strip": "npm-run-all strip:main strip:esm",
27 "size": "node -e \"process.stdout.write('gzip size: ')\" && gzip-size --raw dist/preact.min.js",
28 "test": "npm-run-all lint --parallel test:mocha test:karma test:ts test:flow test:size",
29 "test:flow": "flow check",
30 "test:ts": "tsc -p test/ts/ && mocha --require babel-register test/ts/**/*-test.js",
31 "test:mocha": "mocha --recursive --require babel-register test/shared test/node",
32 "test:karma": "karma start test/karma.conf.js --single-run",
33 "test:mocha:watch": "npm run test:mocha -- --watch",
34 "test:karma:watch": "npm run test:karma -- no-single-run",
35 "test:size": "bundlesize",
36 "lint": "eslint debug devtools src test",
37 "prepublishOnly": "npm run build",
38 "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",
39 "release": "cross-env npm run smart-release",
40 "postinstall": "node -e \"console.log('\\u001b[35m\\u001b[1mLove Preact? You can now donate to our open collective:\\u001b[22m\\u001b[39m\\n > \\u001b[34mhttps://opencollective.com/preact/donate\\u001b[0m')\""
41 },
42 "eslintConfig": {
43 "extends": "./config/eslint-config.js"
44 },
45 "typings": "./dist/preact.d.ts",
46 "repository": {
47 "type": "git",
48 "url": "https://github.com/developit/preact.git"
49 },
50 "files": [
51 "devtools",
52 "debug",
53 "src",
54 "dist",
55 "devtools.js",
56 "devtools.js.map",
57 "debug.js",
58 "debug.js.map",
59 "typings.json"
60 ],
61 "keywords": [
62 "preact",
63 "react",
64 "virtual dom",
65 "vdom",
66 "components",
67 "virtual",
68 "dom"
69 ],
70 "author": "Jason Miller <jason@developit.ca>",
71 "license": "MIT",
72 "bugs": {
73 "url": "https://github.com/developit/preact/issues"
74 },
75 "homepage": "https://github.com/developit/preact",
76 "devDependencies": {
77 "@types/chai": "^4.1.2",
78 "@types/mocha": "^5.0.0",
79 "@types/node": "^9.4.7",
80 "babel-cli": "^6.24.1",
81 "babel-core": "^6.24.1",
82 "babel-eslint": "^8.2.2",
83 "babel-loader": "^7.0.0",
84 "babel-plugin-transform-object-rest-spread": "^6.23.0",
85 "babel-plugin-transform-react-jsx": "^6.24.1",
86 "babel-preset-env": "^1.6.1",
87 "bundlesize": "^0.17.0",
88 "chai": "^4.1.2",
89 "copyfiles": "^2.0.0",
90 "core-js": "^2.4.1",
91 "coveralls": "^3.0.0",
92 "cross-env": "^5.1.4",
93 "diff": "^3.0.0",
94 "eslint": "^4.18.2",
95 "eslint-plugin-react": "^7.7.0",
96 "flow-bin": "^0.67.1",
97 "gzip-size-cli": "^2.0.0",
98 "istanbul-instrumenter-loader": "^3.0.0",
99 "jscodeshift": "^0.5.0",
100 "karma": "^2.0.0",
101 "karma-babel-preprocessor": "^7.0.0",
102 "karma-chai-sinon": "^0.1.5",
103 "karma-chrome-launcher": "^2.0.0",
104 "karma-coverage": "^1.0.0",
105 "karma-mocha": "^1.1.1",
106 "karma-mocha-reporter": "^2.0.4",
107 "karma-sauce-launcher": "^1.1.0",
108 "karma-sinon": "^1.0.5",
109 "karma-source-map-support": "^1.2.0",
110 "karma-sourcemap-loader": "^0.3.6",
111 "karma-webpack": "^3.0.0",
112 "mocha": "^5.0.4",
113 "npm-run-all": "^4.0.0",
114 "rimraf": "^2.5.3",
115 "rollup": "^0.57.1",
116 "rollup-plugin-babel": "^3.0.2",
117 "rollup-plugin-memory": "^3.0.0",
118 "rollup-plugin-node-resolve": "^3.0.0",
119 "sinon": "^4.4.2",
120 "sinon-chai": "^3.0.0",
121 "typescript": "^2.8.1",
122 "uglify-js": "^2.7.5",
123 "webpack": "^4.3.0"
124 },
125 "greenkeeper": {
126 "ignore": [
127 "babel-cli",
128 "babel-core",
129 "babel-eslint",
130 "babel-loader",
131 "jscodeshift",
132 "rollup-plugin-babel"
133 ]
134 },
135 "bundlesize": [
136 {
137 "path": "./dist/preact.min.js",
138 "threshold": "4Kb"
139 }
140 ]
141}