-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
46 lines (46 loc) · 1.92 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
{
"name": "react-sprout",
"version": "0.1.13",
"description": "A better router for React applications",
"main": "build/index.js",
"source": "source/index.js",
"type": "module",
"types": "build/index.d.ts",
"exports": {
".": "./build/index.js",
"./express": "./build/express.js"
},
"scripts": {
"lint": "eslint 'source/**/*.{js,jsx}' --max-warnings 0",
"test": "node --test --test-concurrency 1 ./test/tests/index.test.js",
"test:develop": "node --watch --test --test-concurrency 1 ./test/tests/index.test.js",
"build": "npm run build-main && npm run build-express",
"build-main": "esbuild --bundle source/index.js --format=esm --outfile=build/index.js --external:react --external:react-dom --jsx=automatic --minify --analyze",
"build-express": "esbuild source/servers/express/index.js --bundle --format=esm --platform=node --outfile=build/express.js --external:express --external:react --minify --analyze",
"develop": "trap \"kill -INT %1\" SIGINT; npm run develop-express & npm run develop-main",
"develop-main": "esbuild --bundle source/index.js --format=esm --outfile=build/index.js --external:react --external:react-dom --jsx=automatic --sourcemap --analyze --watch=forever",
"develop-express": "esbuild source/servers/express/index.js --bundle --format=esm --platform=node --outfile=build/express.js --external:express --external:react --sourcemap --analyze --watch=forever",
"prepare": "npm run build && cp source/index.d.ts build/index.d.ts"
},
"keywords": [
"react",
"router",
"sprout"
],
"author": "SubHero",
"license": "ISC",
"devDependencies": {
"esbuild": "^0.19.10",
"eslint": "^9.15.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"express": "^4.18.3",
"prettier": "^3.1.1",
"puppeteer": "^23.8.0",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-user-preferences": "^2.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite": "^5.0.10"
}
}