UNPKG

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