-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
125 lines (125 loc) · 6.06 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
{
"name": "nestore",
"version": "0.0.46",
"description": "Event based state management",
"url": "https://github.com/pratiqdev/nestore/issues",
"homepage": "https://github.com/pratiqdev/nestore#readme",
"keywords": [
"state-management",
"event-emitter"
],
"person": {
"name": "Michael Jannetta",
"url": "https://github.com/pratiqdev"
},
"license": "MIT",
"main": "index.js",
"type": "module",
"types": "dist/nestore.d.ts",
"files": [
"./index.js",
"./README.md",
"dist/"
],
"scripts": {
"//& PRE-BUILD ": "",
"prebuild:clear": "clear && echo \"[pre-build] Lint and purge all artifacts \"",
"prebuild:clean-1": "eslint .",
"prebuild:clean-2": "rm -rf ./dist && rm -rf ./_temp/nestore",
"prebuild:clean-3": "mkdir -p _temp/nestore",
"//>build:lint": "Lint with ESLint and auto-fix if possible",
"// _CONFIGURE_LINTING_RULES:lint": "eslint --fix -c .eslintrc.json .",
"//& BUILD ": "",
"build:clear": "clear && echo \"[build] compile all packages with babel\"",
"//>build:esm": "Build ESM",
"//_build:esm": "tsc -p tsconfig.umd.json",
"build:nst": "npx babel --extensions .ts ./src -d ./dist",
"build:nst-types": "tsc -p ./tsconfig.json && cp ./_types/nestore.d.ts ./dist && rm -rf ./_types",
"//>build:mongo": "Build the nestore mongodb adapter",
"build:mongo": "cd ./adapters/mongoAdapter && yarn build",
"//>build:pers": "Build the nestore persistence adapter",
"build:pers": "cd ./adapters/persistAdapter && yarn build",
"//>build:hook": "Build the nestore react hook",
"build:hook": "cd ./adapters/useNestore && yarn build",
"//& POST-BUILD ": "",
"postbuild:clear": "clear && echo \"[post-build] copy nestore dist files to _temp/\"",
"postbuild:link-mongo": "npm link ./adapters/mongoAdapter",
"postbuild:link-pers": "npm link ./adapters/persistAdapter",
"postbuild:link-hook": "npm link ./adapters/useNestore",
"//& TEST ": "",
"test:clear": "clear && echo \"[test] Run all unit tests with root mocha config\"",
"//>test:nst": "Test nst with mocha and custom config",
"test:nst": "mocha test/unit/tests --config .mocharc.cjs -c -j 100 --exit",
"//>test:mongo": "Test mongoAdapter",
"test:mongo": "cd ./adapters/mongoAdapter && yarn test",
"//>test:pers": "Test persistAdapter",
"test:pers": "cd ./adapters/persistAdapter&& yarn test",
"//>test:hook": "Test userNestore hook",
"test:hook": "cd ./adapters/useNestore && yarn test",
"//& COVERAGE ": "",
"coverage:clear": "clear && echo \"[coverage] run coverage tests for all packages\"",
"//>coverage:nst": "Test nst with mocha and custom config",
"coverage:nst": "mocha test/unit/tests --config .mocharc.cjs -c -j 100",
"//& DEBUG ": "",
"debug:clear": "clear && echo \"[debug] Run all unit tests with debug active\"",
"//>debug:nst": "Test nst with mocha and custom config",
"debug:nst": "DEBUG=nestore:** mocha test/unit/tests --config .mocharc.cjs",
"//>debug:mongo": "Test mongoAdapter",
"debug:mongo": "cd ./adapters/mongoAdapter && DEBUG=nestore:** yarn test",
"//>debug:pers": "Test persistAdapter",
"debug:pers": "cd ./adapters/persistAdapter&& DEBUG=nestore:** yarn test",
"//>debug:hook": "Test userNestore hook",
"debug:hook": "cd ./adapters/useNestore && DEBUG=nestore:** yarn test",
"//& PUBLISH ": "",
"pub:clear": "clear && echo \"[publish] Rebuild, bump the patch version and publish\"",
"//>pub:build": "Rebuild all packages",
"pub:build": "npm run build-all && npm run test:nst && npm run test:pers && npm run test:mongo",
"//>pub:bump": "Increment the npm patch version by 1",
"pub:bump": "npm version patch --force",
"//>pub:pub": "Publish the public npm package",
"pub:pub": "npm publish --access public",
"//& DEV ": "",
"dev-nst": "clear && yarn build:nst && clear && yarn test:nst",
"dev-hook": "clear && yarn build:hook && clear && cd ./adapters/useNestore && yarn dev",
"//& RUN ": "",
"debug-all": "npm-run-all debug:*",
"build-all": "run-s prebuild:* && run-s build:* && run-s postbuild:*",
"test-all": "npm-run-all test:*",
"debug": "clear && npm-run-all build:* && yarn test:nst && yarn debug:mongo && yarn debug:pers",
"watch-nst": "clear && nodemon --watch '.' --ext 'ts,js' --ignore 'dist' --exec yarn dev-nst",
"lint": "clear && nodemon --watch '.' --ext 'ts,js' --ignore 'dist' --exec yarn run eslint .",
"pub": "npm-run-all pub:*"
},
"dependencies": {
"axios": "^1.2.2",
"debug": "^4.3.4",
"eventemitter2": "^6.4.7",
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.7",
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/chai": "^4.3.4",
"@types/debug": "^4.1.7",
"@types/lodash-es": "^4.17.6",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.15",
"@types/spellchecker": "^3.5.0",
"@types/underscore": "^1.11.4",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.47.1",
"babel-jest": "^29.3.1",
"chai": "^4.3.7",
"conf": "^10.2.0",
"deepmerge": "^4.2.2",
"dotenv": "^16.0.3",
"eslint": "^8.31.0",
"mocha": "^10.2.0",
"nodemon": "^2.0.18",
"npm-run-all": "^4.1.5",
"typescript": "^4.8.3"
}
}