mirror of https://github.com/thaldrin/thaldrin.git
update scripts
This commit is contained in:
parent
0f800075f6
commit
539f80f5fa
|
@ -3,3 +3,4 @@ node_modules/
|
||||||
build/
|
build/
|
||||||
logs/
|
logs/
|
||||||
.vscode
|
.vscode
|
||||||
|
.env*
|
|
@ -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"]
|
|
@ -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
|
||||||
|
|
11
package.json
11
package.json
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue