Simplify compiling and running
This commit is contained in:
parent
1cb6d03765
commit
e54be5da02
|
@ -1,2 +1,3 @@
|
||||||
config.json
|
config.json
|
||||||
node_modules
|
node_modules
|
||||||
|
build
|
|
@ -4,5 +4,6 @@ WORKDIR /server
|
||||||
COPY . /server
|
COPY . /server
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
RUN mkdir build && npm build
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
"description": "Language bot for matrix",
|
"description": "Language bot for matrix",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon --exitcrash --ignore *.sqlite -x ts-node index.ts"
|
"build": "tsc",
|
||||||
|
"start": "node build/index.js"
|
||||||
},
|
},
|
||||||
"author": "Daniel",
|
"author": "Daniel",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "build"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"index.ts"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue