-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Обновлены все модули, начат переезд на TS (#85)
* feature: added typescript compiler, airbnb linter, updated to latest node lts * style: linted src directory * refactor: moved to typescript * fix: finished convertion to ts of all infrastructure components * Update .eslintrc * fix: properly working with node env * refactor: reduced the quantity of code entities
- Loading branch information
Showing
91 changed files
with
4,445 additions
and
10,453 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
{ | ||
"extends": "@atomix/eslint-config", | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint/eslint-plugin", | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"extends": [ | ||
"airbnb-typescript/base", | ||
"eslint:recommended", | ||
"prettier", | ||
"prettier/@typescript-eslint", | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"rules": { | ||
"object-curly-newline": "off", | ||
"object-curly-spacing": "off" | ||
"import/prefer-default-export": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,4 +129,6 @@ $RECYCLE.BIN/ | |
.chatlist.json | ||
.idea | ||
data | ||
/src/.chatlist.json | ||
/.chatlist.json | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
language: node_js | ||
sudo: off | ||
node_js: | ||
- 8.9.1 | ||
- 9.2.0 | ||
- lts/erbium | ||
|
||
after_success: npm run coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
# ---- Base Node ---- | ||
FROM node:carbon-alpine as base | ||
FROM node:fermium-alpine as base | ||
# set working directory | ||
WORKDIR /root/app | ||
# Set entrypoint | ||
ENTRYPOINT [ "npm", "run" ] | ||
# copy project file | ||
COPY package.json package-lock.json .sequelizerc ./ | ||
COPY . . | ||
|
||
# | ||
# ---- Dependencies ---- | ||
FROM base AS dependencies | ||
# install node packages | ||
RUN npm set progress=false && npm config set depth 0 | ||
RUN npm install --only=production | ||
RUN npm install && npm run build | ||
|
||
# | ||
# ---- Release ---- | ||
FROM base AS release | ||
# copy production node_modules | ||
COPY --from=dependencies /root/app/node_modules ./node_modules | ||
# copy app sources | ||
COPY src src | ||
COPY --from=base /root/app/dist ./dist | ||
RUN npm install | ||
# expose port and define CMD | ||
EXPOSE 3000 | ||
CMD ["start"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"watch": [], | ||
"ext": ".ts,.js", | ||
"ignore": [], | ||
"exec": "ts-node ./src" | ||
} |
Oops, something went wrong.