update scripts

This commit is contained in:
Lio Young 2021-07-08 13:45:56 +02:00
parent 0f800075f6
commit 539f80f5fa
5 changed files with 12 additions and 11 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules/
build/
logs/
.vscode
.env*

View File

@ -15,4 +15,4 @@ RUN tsc --sourceMap false
RUN rm -rf src
RUN npm cache clean --force
ENTRYPOINT [ "npm", "run", "start"]
ENTRYPOINT [ "npm", "run", "node:start"]

View File

@ -24,6 +24,8 @@ services:
volumes:
- grafana:/var/lib/grafana
bot:
env_file:
- .env.thaldrin.etc
container_name: thaldrin
restart: always
hostname: thaldrin

View File

@ -4,10 +4,13 @@
"description": "",
"main": "build/shard.js",
"scripts": {
"build": "rm -rf build/ && tsc",
"start": "node build/shard.js",
"dev": "nodemon --ignore \"build/\" -e js,ts --exec \"npm run build && npm run start\"",
"init": "npm run subs:init && npm run subs:update",
"node:build": "rm -rf build/ && tsc",
"node:start": "node build/shard.js",
"node:dev": "nodemon --ignore \"build/\" -e js,ts --exec \"npm run build && npm run start\"",
"docker:build": "docker-compose build",
"docker:start": "docker-compose up -d",
"docker:down": "docker-compose down",
"git:init": "npm run subs:init && npm run subs:update",
"subs:init": "git submodule init && git submodule update",
"subs:update": "git submodule update --remote"
},

View File

@ -210,10 +210,5 @@ interface Repository {
}
interface Scripts {
build: string;
start: string;
dev: string;
init: string;
"subs:init": string;
"subs:update": string;
[script: string]: string
}