-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
24 lines (24 loc) · 1.28 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
{
"name": "snk-graph-api",
"version": "1.0.0_c7a8a6a",
"branch": "agentorderlist",
"lastDeployTime": "2019-11-15 15:15:39",
"lastDeployer": "Kevin Cheng",
"description": "",
"scripts": {
"start": "node ./dir/server.js",
"dev": "read -p '[Apollo Config] 請輸入開發品牌(tx, snk): ' appName && read -p '[Apollo Config] 請輸入開發服務(gql, pub, pubsub): ' serviceName && read -p '[Apollo Config] 請輸入使用的集群(預設為 default): ' clusterName && APP_NAME=$appName SERVICE_NAME=$serviceName CONFIG_CLUSTER=$clusterName nodemon server.ts",
"inspect": "nodemon --config nodemon_inspect.json server.ts",
"ngrok": "./ngrok http 3000",
"test": "jest --detectOpenHandles --testPathIgnorePatterns functional",
"functional_test": "jest './__tests__/functional'",
"tsc": "tsc; find ./gql -name '*.graphql' | cpio -pdm ./dir;",
"tslint": "tslint --fix -c tslint.json **/*.ts -e \"**/node_modules/**\"",
"build": "rm -rf dir/; yarn tsc; node ./lib/preProcess.js; cp package.json ./dir/; cp -R ./lang ./dir/;",
"pretty": "prettier -c .prettierrc.json --write \"**/*.{ts,md,json,graphql}\"",
"gen_local_type": "gql-gen; tslint --fix -c tslint.json \"./gql/schema.ts\"",
"gen_db_type": "node ./lib/dbSchema.js $acc $psd $db"
},
"author": "OAwan",
"license": "ISC"
}