mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
refactor: no duplicate of package.json in solutions
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
FROM node:16.13.1
|
||||
RUN npm install --global ts-node typescript @types/node
|
||||
COPY ./ ./
|
||||
CMD ["ts-node", "solution.ts"]
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
CMD ["node", "build/solution.js"]
|
||||
|
10
templates/docker/typescript/package.json
Normal file
10
templates/docker/typescript/package.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "latest",
|
||||
"typescript": "latest"
|
||||
}
|
||||
}
|
13
templates/docker/typescript/tsconfig.json
Normal file
13
templates/docker/typescript/tsconfig.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"lib": ["ESNext"],
|
||||
"moduleResolution": "node",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./",
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user