-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathpackage.json
124 lines (124 loc) · 5.09 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
{
"name": "react-hooks-global-state",
"description": "Simple global state for React with Hooks API without Context API",
"version": "2.1.0",
"author": "Daishi Kato",
"repository": {
"type": "git",
"url": "https://github.com/dai-shi/react-hooks-global-state.git"
},
"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",
"postcompile": "cp dist/index.modern.js dist/index.modern.mjs && cp dist/index.modern.js.map dist/index.modern.mjs.map",
"test": "run-s eslint tsc-test jest e2e-test:*",
"eslint": "eslint --ext .js,.ts,.tsx --ignore-pattern dist .",
"jest": "jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx",
"tsc-test": "tsc --project . --noEmit",
"apidoc": "documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts",
"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_actions": "server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'",
"e2e-test:04_fetch": "server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'",
"e2e-test:05_onmount": "server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'",
"e2e-test:06_reducer": "server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'",
"e2e-test:07_middleware": "server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'",
"e2e-test:08_thunk": "server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'",
"e2e-test:09_comparison": "server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'",
"e2e-test:10_immer": "server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'",
"e2e-test:11_deep": "server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'",
"e2e-test:13_persistence": "server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'",
"examples:01_minimal": "DIR=01_minimal EXT=js webpack serve",
"examples:02_typescript": "DIR=02_typescript webpack serve",
"examples:03_actions": "DIR=03_actions webpack serve",
"examples:04_fetch": "DIR=04_fetch webpack serve",
"examples:05_onmount": "DIR=05_onmount webpack serve",
"examples:06_reducer": "DIR=06_reducer webpack serve",
"examples:07_middleware": "DIR=07_middleware webpack serve",
"examples:08_thunk": "DIR=08_thunk webpack serve",
"examples:09_comparison": "DIR=09_comparison webpack serve",
"examples:10_immer": "DIR=10_immer webpack serve",
"examples:11_deep": "DIR=11_deep webpack serve",
"examples:13_persistence": "DIR=13_persistence webpack serve"
},
"jest": {
"testEnvironment": "jsdom",
"transform": {
"^.+\\.ts$": "ts-jest"
}
},
"keywords": [
"react",
"state",
"hooks",
"stateless",
"thisless",
"pure"
],
"license": "MIT",
"dependencies": {
"zustand": "4.0.0"
},
"devDependencies": {
"@testing-library/react": "^13.3.0",
"@types/expect-puppeteer": "^5.0.1",
"@types/jest": "^28.1.6",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/puppeteer": "^5.4.6",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/redux-logger": "^3.0.9",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"documentation": "^13.2.5",
"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.0",
"npm-run-all": "^4.1.5",
"puppeteer": "^16.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"redux": "^4.2.0",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.4.1",
"start-server-and-test": "^1.14.0",
"ts-jest": "^28.0.7",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"resolutions": {
"@types/node": "^15"
}
}