forked from smallbets/userbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·76 lines (76 loc) · 4.87 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
{
"name": "encrypted.dev",
"version": "0.0.1",
"description": "An end-to-end encrypted framework for web and mobile apps.",
"main": "./proof-of-concept/server/app.js",
"scripts": {
"postinstall": "npm-run-all -p install:sdk install:server install:admin-panel ci:poc",
"install:sdk": "cd ./src/userbase-js && npm install",
"install:server": "cd ./src/userbase-server && npm install",
"install:admin-panel": "cd ./src/userbase-server/admin-panel && npm install",
"install:poc": "cd ./src/proof-of-concept && npm install",
"postinstall:ci": "npm-run-all -p ci:sdk ci:server ci:admin-panel && npm run ci:poc",
"ci:sdk": "cd ./src/userbase-js && npm ci",
"ci:server": "cd ./src/userbase-server && npm ci",
"ci:admin-panel": "cd ./src/userbase-server/admin-panel && npm ci",
"ci:poc": "cd ./src/proof-of-concept && npm ci",
"clean": "rm -Rf ./src/proof-of-concept/build ./src/proof-of-concept/dist ./src/userbase-server/admin-panel/dist",
"build": "npm run clean && npm-run-all -p build:client build:server build:admin-panel && npm run copy:admin-panel:to-build",
"build:client": "cd ./src/proof-of-concept && npm run build:client",
"build:server": "cd ./src/proof-of-concept && npm run build:server",
"build:admin-panel": "cd ./src/userbase-server/admin-panel && npm run build",
"copy:admin-panel:to-build": "mkdir ./src/proof-of-concept/build/node_modules/userbase-server/admin-panel && cp -R ./src/userbase-server/admin-panel/dist ./src/proof-of-concept/build/node_modules/userbase-server/admin-panel/dist",
"start": "npm-run-all -r -p watch:client watch:server watch:admin-panel",
"start:prod": "npm stop && node ./node_modules/forever/bin/forever --minUptime 5000 --spinSleepTime 1000 -l ../logs/encd.log -p $(pwd) -a start ./src/proof-of-concept/build/app.js",
"stop": "node ./node_modules/forever/bin/forever stopall",
"watch:client": "cd ./src/proof-of-concept && npm run watch:client",
"watch:server": "NODE_ENV=development nodemon --exec 'babel-node ./src/proof-of-concept/server/app.js --presets @babel/preset-env' | pino-pretty",
"watch:admin-panel": "cd ./src/userbase-server/admin-panel && npm run start",
"deploy:infra": "./deploy/deploy-infra.sh",
"rm:sdk": "cd ./src/userbase-js && rm -rf node_modules",
"rm:server": "cd ./src/userbase-server && rm -rf node_modules",
"rm:poc": "cd ./src/proof-of-concept && rm -rf node_modules",
"rm:all": "npm-run-all -p rm:sdk rm:server rm:poc",
"transpile:sdk": "babel src/userbase-js/ --presets=@babel/preset-env --plugins=@babel/transform-runtime --out-dir ./npm_build/userbase-js --source-maps --ignore ./src/userbase-js/node_modules && npm run copy:sdkfiles",
"copy:sdkfiles": "rsync -am --exclude='*.js' --exclude='node_modules' ./src/userbase-js/ ./npm_build/userbase-js",
"patch:sdk": "cd ./src/userbase-js && printf 'Input patch commit message: ' && read message && npm version patch -m '$message' && cd ../.. && npm run copy:sdkfiles",
"publish:sdk": "cd ./npm_build/userbase-js && npm publish",
"build:server-npm-package": "npm-run-all -p transpile:server build:admin-panel && npm run copy:admin-panel:to-npm-build",
"transpile:server": "babel src/userbase-server/ --presets=@babel/preset-env --plugins=@babel/transform-runtime --out-dir ./npm_build/userbase-server --source-maps --ignore src/userbase-server/node_modules,src/userbase-server/admin-panel/ && npm run copy:serverfiles",
"copy:serverfiles": "rsync -am --exclude='*.js' --exclude='node_modules' --exclude='admin-panel' ./src/userbase-server/ ./npm_build/userbase-server",
"copy:admin-panel:to-npm-build": "mkdir -p ./npm_build/userbase-server/admin-panel/dist && cp -R ./src/userbase-server/admin-panel/dist/ ./npm_build/userbase-server/admin-panel/dist/",
"patch:server": "cd ./src/userbase-server && printf 'Input patch commit message: ' && read message && npm version patch -m '$message' && cd ../.. && npm run copy:serverfiles",
"publish:server": "cd ./npm_build/userbase-server && npm publish",
"build:sdk-script": "webpack --mode production --config ./src/userbase-js/webpack.config.js"
},
"repository": "https://github.com/dvassallo/encrypted.dev",
"keywords": [],
"author": "",
"license": "MIT",
"engines": {
"node": ">=4.3.2"
},
"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.4.5",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.6",
"eslint": "^6.5.1",
"eslint-loader": "^3.0.2",
"eslint-plugin-react": "^7.16.0",
"forever": "^1.0.0",
"nodemon": "^1.19.1",
"npm-run-all": "^4.1.5",
"pino-pretty": "^3.2.0",
"source-map-loader": "^0.2.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9"
},
"optionalDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": "^5.0.2"
}
}