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/ build/
logs/ logs/
.vscode .vscode
.env*

View File

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

View File

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

View File

@ -4,10 +4,13 @@
"description": "", "description": "",
"main": "build/shard.js", "main": "build/shard.js",
"scripts": { "scripts": {
"build": "rm -rf build/ && tsc", "node:build": "rm -rf build/ && tsc",
"start": "node build/shard.js", "node:start": "node build/shard.js",
"dev": "nodemon --ignore \"build/\" -e js,ts --exec \"npm run build && npm run start\"", "node:dev": "nodemon --ignore \"build/\" -e js,ts --exec \"npm run build && npm run start\"",
"init": "npm run subs:init && npm run subs:update", "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:init": "git submodule init && git submodule update",
"subs:update": "git submodule update --remote" "subs:update": "git submodule update --remote"
}, },

View File

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