-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
40 lines (40 loc) · 1.3 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
{
"name": "javers-admin-frontend",
"version": "1.0.0",
"private": true,
"dependencies": {
"axios": "^0.17.0",
"material-ui": "^1.0.0-beta.17",
"material-ui-icons": "^1.0.0-beta.17",
"moment": "^2.19.1",
"prop-types": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-router-dom": "^4.2.2"
},
"devDependencies": {
"gh-pages": "^1.0.0",
"http-server": "^0.10.0",
"react-scripts": "1.0.14",
"renamer": "^0.6.1"
},
"proxy": {
"/api/": {
"target": "http://localhost:4666/",
"pathRewrite": {
"$|/$": "/index.json"
}
}
},
"scripts": {
"start": "http-server mock -p 4666 -e json -c-1 & react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"jar": "PUBLIC_URL=/javers-admin/ react-scripts build && npm run compress",
"compress": "cp -R build javers-admin-frontend && jar cf javers-admin-frontend-1.0.jar javers-admin-frontend && rm -Rf javers-admin-frontend",
"predeploy": "PUBLIC_URL=https://javers.org/javers-admin-frontend/ react-scripts build && npm run make-mocks",
"make-mocks": "cp -a ./mock/. ./build/ && renamer --find '.json' --replace '.html' 'build/api/**/*.json'",
"deploy": "gh-pages -d build"
}
}