-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
49 lines (49 loc) · 2.14 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
{
"name": "url-shortener-frontend",
"version": "1.0.0",
"description": "Url Shortener",
"scripts": {
"build": "concurrently \"npm run frontend:build\" \"npm run server:build\"",
"clean:storage": "rimraf storage",
"frontend:react:dev": "parcel frontend/src/index.html -d dist-dev/frontend",
"frontend:react:build": "parcel build frontend/src/index.html -d dist/public --public-url ./public/ --no-source-maps",
"frontend:widget:dev": "parcel frontend/index.dev.html -p 1337 -d dist-dev/frontend --open",
"frontend:widget:build": "parcel build frontend/url-shortener.widget.ts -d dist/public --no-source-maps",
"frontend:dev": "concurrently \"npm run frontend:widget:dev\" \"npm run frontend:react:dev\"",
"prefrontend:build": "rimraf dist/public",
"frontend:build": "npm run frontend:widget:build && npm run frontend:react:build",
"server:build": "parcel build server/server.ts -d dist --target node --no-source-maps",
"server:start": "NODE_ENV=production node dist/server.js",
"server:dev:build": "parcel build server/server.ts -d dist-dev/server --target node",
"postserver:dev:build": "node dist-dev/server/server.js",
"server:dev": "NODE_ENV=development nodemon -e ts,js --watch server --exec \"npm run server:dev:build\"",
"demo-server": "cd ./demo && http-server -p 9000 -o http://localhost:9000/index.html",
"prestart:demo": "npm run build",
"start:demo": "concurrently \"npm run server:start\" \"npm run demo-server\"",
"prestart:dev": "rimraf dist-dev",
"start:dev": "concurrently \"npm run frontend:dev\" \"npm run server:dev\""
},
"dependencies": {
"cors": "^2.8.5",
"express": "^4.17.1",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"devDependencies": {
"@types/cors": "^2.8.6",
"@types/express": "^4.17.6",
"@types/node": "^14.0.1",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"concurrently": "^5.1.0",
"http-server": "^0.11.1",
"nodemon": "^2.0.4",
"parcel-bundler": "^1.12.4",
"rimraf": "^3.0.2",
"sass": "^1.26.5",
"typescript": "^3.9.2"
},
"optionalDependencies": {
"win-node-env": "^0.4.0"
}
}