-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
314 additions
and
229 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ npm-debug.log | |
/dist | ||
# Cache used by TypeScript's incremental build | ||
*.tsbuildinfo | ||
mochawesome-report |
5 changes: 5 additions & 0 deletions
5
packages/cli/src/generators/microservice/templates/.eslintignore
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,5 @@ | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
.eslintrc.js | ||
mochawesome-report |
6 changes: 6 additions & 0 deletions
6
packages/cli/src/generators/microservice/templates/.mocharc.json
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 @@ | ||
{ | ||
"exit": true, | ||
"recursive": true, | ||
"require": "source-map-support/register", | ||
"reporter": "mochawesome" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/cli/src/generators/microservice/templates/.prettierignore
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,3 +1,5 @@ | ||
dist | ||
*.json | ||
coverage | ||
coverage | ||
mochawesome-report | ||
node_modules/ |
38 changes: 38 additions & 0 deletions
38
packages/cli/src/generators/microservice/templates/.vscode/launch.json
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,38 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/dist/index.js", | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Run Mocha tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"runtimeArgs": [ | ||
"-r", | ||
"${workspaceRoot}/node_modules/source-map-support/register" | ||
], | ||
"cwd": "${workspaceRoot}", | ||
"autoAttachChildProcesses": true, | ||
"args": [ | ||
"--config", | ||
"${workspaceRoot}/.mocharc.json", | ||
"${workspaceRoot}/dist/__tests__/**/*.js", | ||
"-t", | ||
"0" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Process", | ||
"port": 5858 | ||
} | ||
] | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/cli/src/generators/microservice/templates/.vscode/settings.json
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,29 @@ | ||
{ | ||
"editor.rulers": [80], | ||
"editor.tabCompletion": "on", | ||
"editor.tabSize": 2, | ||
"editor.trimAutoWhitespace": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit", | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
|
||
"files.exclude": { | ||
"**/.DS_Store": true, | ||
"**/.git": true, | ||
"**/.hg": true, | ||
"**/.svn": true, | ||
"**/CVS": true, | ||
"dist": true | ||
}, | ||
"files.insertFinalNewline": true, | ||
"files.trimTrailingWhitespace": true, | ||
|
||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false, | ||
"typescript.preferences.quoteStyle": "single", | ||
"eslint.run": "onSave", | ||
"eslint.nodePath": "./node_modules", | ||
"eslint.validate": ["javascript", "typescript"] | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/cli/src/generators/microservice/templates/.vscode/tasks.json
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,29 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Watch and Compile Project", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["--silent", "run", "build:watch"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": "$tsc-watch" | ||
}, | ||
{ | ||
"label": "Build, Test and Lint", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["--silent", "run", "test:dev"], | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": ["$tsc", "$eslint-compact", "$eslint-stylish"] | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -25,4 +25,13 @@ jobs: | |
run: npm run test --workspaces --if-present | ||
|
||
- name: Run Lint Checks | ||
run: npm run lint --workspaces --if-present | ||
run: npm run lint --workspaces --if-present | ||
|
||
- name: lerna-coverage | ||
run: "npx lerna run coverage --concurrency 2" | ||
|
||
- name: coverage report | ||
id: coverage | ||
uses: akshatdubeysf/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
7 changes: 7 additions & 0 deletions
7
packages/cli/src/generators/scaffold/templates/.prettierrc.tpl
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,7 @@ | ||
{ | ||
"bracketSpacing": false, | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
"trailingComma": "all", | ||
"arrowParens": "avoid" | ||
} |
Oops, something went wrong.