UNPKG

7.42 kBJSONView Raw
1{
2 "name": "preact",
3 "amdName": "preact",
4 "version": "10.4.8",
5 "private": false,
6 "description": "Fast 3kb React-compatible Virtual DOM library.",
7 "main": "dist/preact.js",
8 "module": "dist/preact.module.js",
9 "umd:main": "dist/preact.umd.js",
10 "unpkg": "dist/preact.min.js",
11 "source": "src/index.js",
12 "exports": {
13 ".": {
14 "browser": "./dist/preact.module.js",
15 "umd": "./dist/preact.umd.js",
16 "import": "./dist/preact.mjs",
17 "require": "./dist/preact.js"
18 },
19 "./compat": {
20 "browser": "./compat/dist/compat.module.js",
21 "umd": "./compat/dist/compat.umd.js",
22 "require": "./compat/dist/compat.js",
23 "import": "./compat/dist/compat.mjs"
24 },
25 "./debug": {
26 "browser": "./debug/dist/debug.module.js",
27 "umd": "./debug/dist/debug.umd.js",
28 "require": "./debug/dist/debug.js",
29 "import": "./debug/dist/debug.mjs"
30 },
31 "./devtools": {
32 "browser": "./devtools/dist/devtools.module.js",
33 "umd": "./devtools/dist/devtools.umd.js",
34 "require": "./devtools/dist/devtools.js",
35 "import": "./devtools/dist/devtools.mjs"
36 },
37 "./hooks": {
38 "browser": "./hooks/dist/hooks.module.js",
39 "umd": "./hooks/dist/hooks.umd.js",
40 "require": "./hooks/dist/hooks.js",
41 "import": "./hooks/dist/hooks.mjs"
42 },
43 "./test-utils": {
44 "browser": "./test-utils/dist/testUtils.module.js",
45 "umd": "./test-utils/dist/testUtils.umd.js",
46 "require": "./test-utils/dist/testUtils.js",
47 "import": "./test-utils/dist/testUtils.mjs"
48 },
49 "./compat/server": {
50 "require": "./compat/server.js"
51 },
52 "./package.json": "./package.json",
53 "./": "./"
54 },
55 "license": "MIT",
56 "funding": {
57 "type": "opencollective",
58 "url": "https://opencollective.com/preact"
59 },
60 "types": "src/index.d.ts",
61 "scripts": {
62 "prepare": "run-s build",
63 "build": "npm-run-all --parallel build:*",
64 "build:core": "microbundle build --raw",
65 "build:core-min": "microbundle build --raw -f iife src/cjs.js -o dist/preact.min.js",
66 "build:debug": "microbundle build --raw --cwd debug",
67 "build:devtools": "microbundle build --raw --cwd devtools",
68 "build:hooks": "microbundle build --raw --cwd hooks",
69 "build:test-utils": "microbundle build --raw --cwd test-utils",
70 "build:compat": "microbundle build --raw --cwd compat --globals 'preact/hooks=preactHooks'",
71 "postbuild": "node ./config/node-13-exports.js",
72 "dev": "microbundle watch --raw --format cjs",
73 "dev:hooks": "microbundle watch --raw --format cjs --cwd hooks",
74 "dev:compat": "microbundle watch --raw --format cjs --cwd compat --globals 'preact/hooks=preactHooks'",
75 "test": "npm-run-all build lint test:unit",
76 "test:unit": "run-p test:mocha test:karma:minify test:ts",
77 "test:ts": "run-p test:ts:*",
78 "test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js",
79 "test:ts:compat": "tsc -p compat/test/ts/",
80 "test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node",
81 "test:mocha:watch": "npm run test:mocha -- --watch",
82 "test:karma": "cross-env COVERAGE=true karma start karma.conf.js --single-run",
83 "test:karma:minify": "cross-env COVERAGE=true MINIFY=true karma start karma.conf.js --single-run",
84 "test:karma:watch": "karma start karma.conf.js --no-single-run",
85 "test:karma:hooks": "cross-env COVERAGE=false karma start karma.conf.js --grep=hooks/test/browser/**.js --no-single-run",
86 "test:karma:test-utils": "cross-env PERFORMANCE=false COVERAGE=false karma start karma.conf.js --grep=test-utils/test/shared/**.js --no-single-run",
87 "test:karma:bench": "cross-env PERFORMANCE=true COVERAGE=false karma start karma.conf.js --grep=test/benchmarks/**.js --single-run",
88 "benchmark": "npm run test:karma:bench -- no-single-run",
89 "lint": "eslint src test debug compat hooks test-utils"
90 },
91 "eslintConfig": {
92 "extends": [
93 "developit",
94 "prettier"
95 ],
96 "settings": {
97 "react": {
98 "pragma": "createElement"
99 }
100 },
101 "rules": {
102 "camelcase": [
103 1,
104 {
105 "allow": [
106 "__test__*",
107 "unstable_*",
108 "UNSAFE_*"
109 ]
110 }
111 ],
112 "no-unused-vars": [
113 2,
114 {
115 "args": "none",
116 "varsIgnorePattern": "^h|React$"
117 }
118 ],
119 "prefer-rest-params": 0,
120 "prefer-spread": 0,
121 "no-cond-assign": 0,
122 "react/jsx-no-bind": 0,
123 "react/no-danger": "off",
124 "react/prefer-stateless-function": 0,
125 "react/sort-comp": 0,
126 "jest/valid-expect": 0,
127 "jest/no-disabled-tests": 0,
128 "react/no-find-dom-node": 0
129 }
130 },
131 "eslintIgnore": [
132 "test/fixtures",
133 "test/ts/",
134 "*.ts",
135 "dist"
136 ],
137 "prettier": {
138 "singleQuote": true,
139 "trailingComma": "none",
140 "useTabs": true,
141 "tabWidth": 2
142 },
143 "lint-staged": {
144 "**/*.{js,jsx,ts,tsx,yml}": [
145 "prettier --write",
146 "git add"
147 ]
148 },
149 "husky": {
150 "hooks": {
151 "pre-commit": "lint-staged"
152 }
153 },
154 "files": [
155 "src",
156 "dist",
157 "compat/dist",
158 "compat/src",
159 "compat/server.js",
160 "compat/package.json",
161 "debug/dist",
162 "debug/src",
163 "debug/package.json",
164 "devtools/dist",
165 "devtools/src",
166 "devtools/package.json",
167 "hooks/dist",
168 "hooks/src",
169 "hooks/package.json",
170 "test-utils/src",
171 "test-utils/package.json",
172 "test-utils/dist"
173 ],
174 "keywords": [
175 "preact",
176 "react",
177 "ui",
178 "user interface",
179 "virtual dom",
180 "vdom",
181 "components",
182 "dom diff"
183 ],
184 "authors": [
185 "The Preact Authors (https://github.com/preactjs/preact/contributors)"
186 ],
187 "repository": "preactjs/preact",
188 "bugs": "https://github.com/preactjs/preact/issues",
189 "homepage": "https://preactjs.com",
190 "devDependencies": {
191 "@babel/core": "^7.7.0",
192 "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
193 "@babel/plugin-transform-react-jsx": "^7.7.0",
194 "@babel/plugin-transform-react-jsx-source": "^7.7.4",
195 "@babel/preset-env": "^7.7.1",
196 "@babel/register": "^7.7.0",
197 "@types/chai": "^4.1.2",
198 "@types/mocha": "^5.0.0",
199 "@types/node": "^10.5.2",
200 "babel-loader": "^8.0.6",
201 "babel-plugin-istanbul": "^6.0.0",
202 "babel-plugin-transform-async-to-promises": "^0.8.15",
203 "babel-plugin-transform-rename-properties": "0.0.3",
204 "benchmark": "^2.1.4",
205 "chai": "^4.1.2",
206 "coveralls": "^3.0.0",
207 "cross-env": "^5.2.0",
208 "diff": "^3.5.0",
209 "eslint": "5.15.1",
210 "eslint-config-developit": "^1.1.1",
211 "eslint-config-prettier": "^6.5.0",
212 "eslint-plugin-react": "7.12.4",
213 "husky": "^3.0.9",
214 "karma": "^3.0.0",
215 "karma-chai-sinon": "^0.1.5",
216 "karma-chrome-launcher": "^2.2.0",
217 "karma-coverage": "^2.0.1",
218 "karma-mocha": "^1.3.0",
219 "karma-mocha-reporter": "^2.2.5",
220 "karma-sauce-launcher": "^1.2.0",
221 "karma-sinon": "^1.0.5",
222 "karma-sourcemap-loader": "^0.3.7",
223 "karma-webpack": "^3.0.5",
224 "lint-staged": "^9.4.2",
225 "lodash": "^4.17.10",
226 "microbundle": "^0.11.0",
227 "mocha": "^5.2.0",
228 "npm-merge-driver-install": "^1.1.1",
229 "npm-run-all": "^4.0.0",
230 "prettier": "^1.18.2",
231 "prop-types": "^15.7.2",
232 "sinon": "^6.1.3",
233 "sinon-chai": "^3.0.0",
234 "typescript": "3.5.3",
235 "webpack": "^4.3.0"
236 }
237}