forked from dai-shi/react-tracked
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
137 lines (137 loc) · 5.79 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "react-tracked",
"description": "State usage tracking with Proxies. Optimize re-renders for useState/useReducer, React Redux, Zustand and others.",
"version": "1.7.10",
"author": "Daishi Kato",
"repository": {
"type": "git",
"url": "https://github.com/dai-shi/react-tracked.git"
},
"homepage": "https://react-tracked.js.org",
"source": "./src/index.ts",
"main": "./dist/index.umd.js",
"module": "./dist/index.modern.js",
"types": "./dist/src/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/src/index.d.ts",
"module": "./dist/index.modern.js",
"import": "./dist/index.modern.mjs",
"default": "./dist/index.umd.js"
}
},
"sideEffects": false,
"files": [
"src",
"dist"
],
"scripts": {
"compile": "microbundle build -f modern,umd --globals react=React --no-compress",
"postcompile": "cp dist/index.modern.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map",
"test": "run-s eslint tsc-test jest e2e-test:*",
"eslint": "eslint --ext .js,.ts,.tsx --ignore-path .gitignore --ignore-pattern dist .",
"jest": "jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx",
"tsc-test": "tsc --project . --noEmit",
"e2e-test:01_minimal": "server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'",
"e2e-test:02_typescript": "server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'",
"e2e-test:03_usestate": "server-test examples:03_usestate 8080 'jest --preset jest-puppeteer __tests__/e2e/03_usestate.ts'",
"e2e-test:04_selector": "server-test examples:04_selector 8080 'jest --preset jest-puppeteer __tests__/e2e/04_selector.ts'",
"e2e-test:05_container": "server-test examples:05_container 8080 'jest --preset jest-puppeteer __tests__/e2e/05_container.ts'",
"e2e-test:06_customhook": "server-test examples:06_customhook 8080 'jest --preset jest-puppeteer __tests__/e2e/06_customhook.ts'",
"e2e-test:07_todolist": "server-test examples:07_todolist 8080 'jest --preset jest-puppeteer __tests__/e2e/07_todolist.ts'",
"e2e-test:08_comparison": "server-test examples:08_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/08_comparison.ts'",
"e2e-test:09_reactmemo": "server-test examples:09_reactmemo 8080 'jest --preset jest-puppeteer __tests__/e2e/09_reactmemo.ts'",
"e2e-test:10_untracked": "server-test examples:10_untracked 8080 'jest --preset jest-puppeteer __tests__/e2e/10_untracked.ts'",
"e2e-test:11_form": "server-test examples:11_form 8080 'jest --preset jest-puppeteer __tests__/e2e/11_form.ts'",
"e2e-test:12_async": "server-test examples:12_async 8080 'jest --preset jest-puppeteer __tests__/e2e/12_async.ts'",
"e2e-test:13_saga": "server-test examples:13_saga 8080 'jest --preset jest-puppeteer __tests__/e2e/13_saga.ts'",
"e2e-test:14_dynamic": "server-test examples:14_dynamic 8080 'jest --preset jest-puppeteer __tests__/e2e/14_dynamic.ts'",
"e2e-test:15_reactmemoref": "server-test examples:15_reactmemoref 8080 'jest --preset jest-puppeteer __tests__/e2e/15_reactmemoref.ts'",
"examples:01_minimal": "DIR=01_minimal EXT=js webpack serve",
"examples:02_typescript": "DIR=02_typescript webpack serve",
"examples:03_usestate": "DIR=03_usestate webpack serve",
"examples:04_selector": "DIR=04_selector webpack serve",
"examples:05_container": "DIR=05_container webpack serve",
"examples:06_customhook": "DIR=06_customhook EXT=tsx webpack serve",
"examples:07_todolist": "DIR=07_todolist webpack serve",
"examples:08_comparison": "DIR=08_comparison webpack serve",
"examples:09_reactmemo": "DIR=09_reactmemo webpack serve",
"examples:10_untracked": "DIR=10_untracked webpack serve",
"examples:11_form": "DIR=11_form webpack serve",
"examples:12_async": "DIR=12_async webpack serve",
"examples:13_saga": "DIR=13_saga webpack serve",
"examples:14_dynamic": "DIR=14_dynamic webpack serve",
"examples:15_reactmemoref": "DIR=15_reactmemoref webpack serve"
},
"jest": {
"testEnvironment": "jsdom",
"transform": {
"^.+\\.ts$": "ts-jest"
}
},
"keywords": [
"react",
"redux",
"state",
"hooks"
],
"license": "MIT",
"dependencies": {
"proxy-compare": "2.3.0",
"use-context-selector": "1.4.1"
},
"devDependencies": {
"@testing-library/react": "^13.3.0",
"@types/jest": "^28.1.6",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/scheduler": "^0.16.2",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.21.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.5.0",
"immer": "^9.0.15",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest-puppeteer": "^6.1.1",
"microbundle": "^0.15.1",
"npm-run-all": "^4.1.5",
"puppeteer": "^16.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"redux-saga": "^1.1.3",
"start-server-and-test": "^1.14.0",
"ts-jest": "^28.0.7",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"use-reducer-async": "^2.1.1",
"use-saga-reducer": "^3.0.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.0"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": "*",
"react-native": "*",
"scheduler": ">=0.19.0"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
},
"resolutions": {
"@types/node": "^15"
}
}