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/
|
||||
logs/
|
||||
.vscode
|
||||
.env*
|
|
@ -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"]
|
|
@ -24,6 +24,8 @@ services:
|
|||
volumes:
|
||||
- grafana:/var/lib/grafana
|
||||
bot:
|
||||
env_file:
|
||||
- .env.thaldrin.etc
|
||||
container_name: thaldrin
|
||||
restart: always
|
||||
hostname: thaldrin
|
||||
|
|
11
package.json
11
package.json
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue