Skip to content

Commit f15a1b8

Browse files
committed
Added initial docker and lando configuration
- added eslint - added prettier
1 parent a3222e8 commit f15a1b8

11 files changed

+3084
-194
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
dist
3+
node_modules

.eslintrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"]
5+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
dist
12
node_modules

.lando.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: comcrm
2+
proxy:
3+
backend:
4+
- comcrm.lndo.site:4000
5+
6+
services:
7+
backend:
8+
type: node:18
9+
run:
10+
- cd /app && npm i
11+
command: npm run dev
12+
scanner: false
13+
ssl: true
14+
15+
tooling:
16+
npm:
17+
service: backend
18+
cmd: npm

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.swcrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"env": {
3+
"target": {
4+
"node": 18
5+
}
6+
},
7+
"jsc": {
8+
"parser": {
9+
"syntax": "typescript",
10+
"dynamicImport": true,
11+
"jsx": true
12+
}
13+
},
14+
"module": {
15+
"type": "commonjs"
16+
},
17+
"sourceMaps": "inline"
18+
}

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:18-alpine
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY package.json package-lock.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
EXPOSE 4000
12+
13+
CMD ["npm", "start:build"]

docker-compose.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
backend:
3+
build: .
4+
ports:
5+
- 4000:4000
6+
- 9229:9229 # for debugging
7+
volumes:
8+
- .:/usr/src/app
9+
- /usr/src/app/node_modules
10+
environment:
11+
NODE_ENV: development
12+
PORT: 4000
13+
command: npm run start:build

0 commit comments

Comments
 (0)