|
|
|
@ -16,12 +16,12 @@
|
|
|
|
|
"fix": "run-s fix:*", |
|
|
|
|
"fix:prettier": "prettier \"src/**/*.ts\" --write", |
|
|
|
|
"lint": "eslint src --ext .ts", |
|
|
|
|
"test": "TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/**/*.test.ts --recursive", |
|
|
|
|
"local:test:graphql": "DATABASE_URL=mysql://root:password@localhost:3306/sakila TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/graphql.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test:graphql": "TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/graphql.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test:grpc": "TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/grpc.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"local:test:rest": "DATABASE_URL=mysql://root:password@localhost:3306/sakila TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/rest.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test:rest": "TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/rest.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/**/*.test.ts --recursive", |
|
|
|
|
"local:test:graphql": "cross-env DATABASE_URL=mysql://root:password@localhost:3306/sakila TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/graphql.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test:graphql": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/graphql.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test:grpc": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/grpc.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"local:test:rest": "cross-env DATABASE_URL=mysql://root:password@localhost:3306/sakila TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/rest.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test:rest": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/rest.test.ts --recursive --timeout 10000 --exit", |
|
|
|
|
"test1": "run-s build test:*", |
|
|
|
|
"test:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different", |
|
|
|
|
"test:unit": "nyc --silent ava", |
|
|
|
@ -44,8 +44,8 @@
|
|
|
|
|
"start-api": "ts-node src/example/index.ts", |
|
|
|
|
"start-xc-tool-api": "ts-node src/example/xc-tool-apis.ts", |
|
|
|
|
"docker-test": "node docker/index.js", |
|
|
|
|
"test:dev:travis": "NODE_ENV=dev npm run test:rest && NODE_ENV=dev npm run test:graphql && NODE_ENV=dev npm run test:grpc", |
|
|
|
|
"test:travis": "NODE_ENV=test npm run test:rest && NODE_ENV=test npm run test:graphql && NODE_ENV=test npm run test:grpc", |
|
|
|
|
"test:dev:travis": "cross-env NODE_ENV=dev npm run test:rest && NODE_ENV=dev npm run test:graphql && NODE_ENV=dev npm run test:grpc", |
|
|
|
|
"test:travis": "cross-env NODE_ENV=test npm run test:rest && NODE_ENV=test npm run test:graphql && NODE_ENV=test npm run test:grpc", |
|
|
|
|
"local": "node --expose-gc --max-old-space-size=1024 docker/index.js", |
|
|
|
|
"local-reset": "rm noco.db && npm run local", |
|
|
|
|
"debug-local-build": "NODE_ENV=dev node docker/main.js", |
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
"help:c": "ts-node ./help/a", |
|
|
|
|
"watch:build": "nodemon -e ts,js -w ./src -x npm run build", |
|
|
|
|
"watch:serve": "nodemon -e ts -w ./build -x npm run debug-local ", |
|
|
|
|
"watch:run": "nodemon -e ts,js -w ./src -x \"ts-node src/example/docker --log-error --project tsconfig.json\"", |
|
|
|
|
"watch:run": "cross-env EE=true nodemon -e ts,js -w ./src -x \"ts-node src/example/docker --log-error --project tsconfig.json\"", |
|
|
|
|
"run": "ts-node src/example/docker", |
|
|
|
|
"watch:try": "nodemon -e ts,js -w ./src -x \"ts-node src/example/try --log-error --project tsconfig.json\"", |
|
|
|
|
"example:docker": "ts-node ./src/example/docker.ts" |
|
|
|
@ -194,13 +194,14 @@
|
|
|
|
|
"chai": "^4.2.0", |
|
|
|
|
"codecov": "^3.5.0", |
|
|
|
|
"copyfiles": "^2.3.0", |
|
|
|
|
"cross-env": "^7.0.3", |
|
|
|
|
"cz-conventional-changelog": "^2.1.0", |
|
|
|
|
"eslint": "^7.8.0", |
|
|
|
|
"eslint-config-prettier": "^6.15.0", |
|
|
|
|
"eslint-plugin-prettier": "^4.0.0", |
|
|
|
|
"eslint-plugin-eslint-comments": "^3.2.0", |
|
|
|
|
"eslint-plugin-functional": "^3.0.2", |
|
|
|
|
"eslint-plugin-import": "^2.22.0", |
|
|
|
|
"eslint-plugin-prettier": "^4.0.0", |
|
|
|
|
"gh-pages": "^2.0.1", |
|
|
|
|
"mocha": "^8.1.1", |
|
|
|
|
"nodemon": "^2.0.7", |
|
|
|
|