-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
79 lines (79 loc) · 3.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
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
{
"name": "chat",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-stage-0": "^7.8.3",
"babel-loader": "^8.1.0",
"babel-polyfill": "^6.26.0",
"body-parser": "^1.19.0",
"cookie-session": "^1.4.0",
"express": "^4.17.1",
"kafka-node": "^5.0.0",
"lodash": "^4.17.15",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^6.0.0",
"react-router": "^5.1.2",
"react-router-dom": "^5.1.2",
"socket.io": "^2.3.0",
"socket.io-adapter": "^1.1.2",
"socket.io-client": "^2.3.0",
"styled-components": "^5.1.0"
},
"scripts": {
"lint": "eslint --config .eslintrc src/**/*",
"test": "jest",
"start:client": "webpack-dev-server --config webpack.devserv.js",
"start:server": "KAFKA_ENABLED=true nodemon build/server.js port=8081",
"start:webpack_server": "webpack --config webpack.server.js --watch",
"webpack:client": "webpack --config webpack.client.js --watch",
"build:client": "webpack --config webpack.client.js",
"build:server": "webpack --config webpack.server.js",
"build": "npm-run-all --parallel build:*",
"dev": "npm-run-all --parallel start:*",
"removeDockerImage": "docker rmi --force localhost:32000/node-web-app:latest",
"buildDocker": "docker build -t localhost:32000/node-web-app:latest . --no-cache",
"cleanBuildDocker": "yarn removeDockerImage && yarn buildDocker",
"pushDocker": "docker push localhost:32000/node-web-app",
"runDocker": "docker run -p 3030:8080 -d localhost:32000/node-web-app:latest",
"stopDocker": "docker rm -f $(docker ps -a -q)",
"dockerLoginLocal": "echo $(grep DOCKER_PASSWORD .env | cut -d '=' -f2) | docker login -u $(grep DOCKER_USERNAME .env | cut -d '=' -f2) --password-stdin",
"dockerTagLocal": "docker tag localhost:32000/node-web-app $(grep DOCKER_USERNAME .env | cut -d '=' -f2)/node-web-app:latest",
"dockerPushLocal": "docker push $(grep DOCKER_USERNAME .env | cut -d '=' -f2)/node-web-app:latest",
"dockerLogin": "echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin",
"dockerTag": "docker tag localhost:32000/node-web-app $DOCKER_USERNAME/node-web-app:latest",
"dockerPush": "docker push $DOCKER_USERNAME/node-web-app:latest",
"pushToDockerHub": "npm run dockerLogin && npm run dockerTag && npm run dockerPush",
"helm_kafka": "helm install --name my-kafka --namespace kafka -f 100-helm-k.yaml incubator/kafka",
"k8s_proxy_traefik": "sudo microk8s kubectl port-forward --address 0.0.0.0 service/traefik 8000:8000 8080:8080 443:4443 -n default"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "4.18.2",
"eslint-config-airbnb": "^11.1.0",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.2",
"eslint-plugin-react": "^6.3.0",
"html-webpack-plugin": "^4.2.0",
"jest": "^26.0.1",
"nodemon": "^2.0.3",
"npm-run-all": "^4.1.5",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"webpack-node-externals": "^1.7.2"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
}