Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dependabot for node-server dependencies #304

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2

updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'npm'
directory: '/generators/node-server/resources'
schedule:
interval: 'daily'
open-pull-requests-limit: 10
groups:
jest:
patterns:
- 'jest'
- '@types/jest'
- 'ts-jest'
nestjs:
patterns:
- '@nestjs/common'
- '@nestjs/core'
- '@nestjs/microservices'
- '@nestjs/platform-express'
- '@nestjs/platform-fastify'
- '@nestjs/platform-socket.io'
- '@nestjs/platform-ws'
- '@nestjs/testing'
- '@nestjs/websockets'
typescript-eslint:
patterns:
- '@typescript-eslint/*'
13 changes: 13 additions & 0 deletions .github/workflows/test-integration-angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,16 @@ jobs:
- name: Dump docker logs
if: always()
uses: jwalton/gh-docker-logs@v2
check-angular-applications:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [applications]
if: always()
steps:
- run: |
echo '${{ toJSON(needs) }}'
if [ 'skipped' == '${{ needs.applications.result }}' ] || [ 'success' == '${{ needs.applications.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then
exit 0
fi
exit 1
13 changes: 13 additions & 0 deletions .github/workflows/test-integration-microservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ jobs:
run: npm test --workspaces
- name: 'RUN SERVER E2E TESTS of generated app'
run: npm run test:server:e2e
check-microservice-applications:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [applications]
if: always()
steps:
- run: |
echo '${{ toJSON(needs) }}'
if [ 'skipped' == '${{ needs.applications.result }}' ] || [ 'success' == '${{ needs.applications.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then
exit 0
fi
exit 1
13 changes: 13 additions & 0 deletions .github/workflows/test-integration-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,16 @@ jobs:
- name: Dump docker logs
if: always()
uses: jwalton/gh-docker-logs@v2
check-react-applications:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [applications]
if: always()
steps:
- run: |
echo '${{ toJSON(needs) }}'
if [ 'skipped' == '${{ needs.applications.result }}' ] || [ 'success' == '${{ needs.applications.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then
exit 0
fi
exit 1
13 changes: 13 additions & 0 deletions .github/workflows/test-integration-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,16 @@ jobs:
- name: Dump docker logs
if: always()
uses: jwalton/gh-docker-logs@v2
check-vue-applications:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [applications]
if: always()
steps:
- run: |
echo '${{ toJSON(needs) }}'
if [ 'skipped' == '${{ needs.applications.result }}' ] || [ 'success' == '${{ needs.applications.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then
exit 0
fi
exit 1
9 changes: 9 additions & 0 deletions generators/node-server/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ export default class extends BaseApplicationGenerator {
});
}

get [BaseApplicationGenerator.LOADING]() {
return this.asLoadingTaskGroup({
async loadingTemplateTask({ application }) {
application.nodeServerDependencies = {};
this.loadNodeDependenciesFromPackageJson(application.nodeServerDependencies, this.templatePath('../resources/package.json'));
},
});
}

get [BaseApplicationGenerator.CONFIGURING_EACH_ENTITY]() {
return this.asConfiguringEachEntityTaskGroup({
async configuringEachEntityTemplateTask({ entityConfig }) {
Expand Down
70 changes: 70 additions & 0 deletions generators/node-server/resources/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"dependencies": {
"browser-sync-client": "2.27.9",
"@nestjs/common": "7.5.1",
"@nestjs/core": "7.5.1",
"@nestjs/jwt": "7.2.0",
"@nestjs/passport": "7.1.0",
"@nestjs/platform-express": "7.5.1",
"@nestjs/serve-static": "2.1.4",
"@nestjs/swagger": "4.8.0",
"@nestjs/typeorm": "7.1.4",
"bcrypt": "5.1.1",
"class-transformer": "0.3.1",
"class-validator": "0.13.1",
"cloud-config-client": "1.4.2",
"dotenv": "8.2.0",
"eureka-js-client": "4.5.0",
"express-session": "1.17.1",
"js-yaml": "4.1.0",
"jwt-decode": "3.1.1",
"mongodb": "6.1.0",
"mysql2": "2.2.5",
"pg": "8.4.2",
"oracledb": "5.0.0",
"mssql": "6.2.3",
"passport": "0.4.1",
"passport-jwt": "4.0.0",
"passport-oauth2": "1.5.0",
"reflect-metadata": "0.1.13",
"rxjs": "6.6.3",
"shelljs": "0.8.4",
"mongodb-memory-server": "6.9.2",
"sqlite3": "5.1.6",
"swagger-ui-express": "4.0.7",
"typeorm": "0.2.45",
"typeorm-encrypted": "0.5.6"
},
"devDependencies": {
"@jest/globals": "26.6.2",
"@nestjs/testing": "7.5.1",
"@types/bcrypt": "5.0.0",
"@types/express": "4.17.1",
"@types/express-serve-static-core": "4.17.3",
"@types/jest": "25.2.3",
"@types/superagent": "4.1.10",
"@types/jwt-decode": "3.1.0",
"@types/node": "^14.18.10",
"@types/passport-jwt": "3.0.3",
"@types/supertest": "2.0.10",
"@typescript-eslint/eslint-plugin": "2.11.0",
"@typescript-eslint/eslint-plugin-tslint": "2.11.0",
"@typescript-eslint/parser": "2.11.0",
"browser-sync-client": "2.27.9",
"eslint": "6.7.2",
"eslint-config-prettier": "6.7.0",
"eslint-plugin-prettier": "3.3.1",
"jest": "26.6.3",
"nodemon": "1.19.1",
"prettier": "1.19.0",
"rimraf": "3.0.2",
"sonarqube-scanner": "2.5.0",
"supertest": "6.0.1",
"ts-jest": "26.5.6",
"ts-node": "8.1.0",
"tsc-watch": "2.2.1",
"tsconfig-paths": "3.8.0",
"tslint": "5.20.1",
"typescript": "4.1.6"
}
}
22 changes: 6 additions & 16 deletions generators/node-server/templates/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,12 @@
"node_modules"
],
"devDependencies": {
<%_ if (!skipJhipsterDependencies) { _%>
"generator-jhipster": "<%= jhipsterVersion %>",
<%_ blueprints.forEach(module => { _%>
"<%= module.name %>": "<%= module.version %>",
<%_ });
} _%>
<%_ if (!skipCommitHook) { _%>
"husky": "<%= nodeDependencies['husky'] %>",
"lint-staged": "<%= nodeDependencies['lint-staged'] %>",
<%_ } _%>
"browser-sync-client": "2.27.9",
"@typescript-eslint/eslint-plugin": "2.11.0",
"@typescript-eslint/eslint-plugin-tslint": "2.11.0",
"@typescript-eslint/parser": "2.11.0",
"eslint": "6.7.2",
"eslint-config-prettier": "6.7.0",
"browser-sync-client": "<%- nodeServerDependencies['browser-sync-client'] %>",
"@typescript-eslint/eslint-plugin": "<%- nodeServerDependencies['@typescript-eslint/eslint-plugin'] %>",
"@typescript-eslint/eslint-plugin-tslint": "<%- nodeServerDependencies['@typescript-eslint/eslint-plugin-tslint'] %>",
"@typescript-eslint/parser": "<%- nodeServerDependencies['@typescript-eslint/parser'] %>",
"eslint": "<%- nodeServerDependencies['eslint'] %>",
"eslint-config-prettier": "<%- nodeServerDependencies['eslint-config-prettier'] %>",
"prettier": "<%= nodeDependencies['prettier'] %>",
"prettier-plugin-packagejson": "<%= nodeDependencies['prettier-plugin-packagejson'] %>"
},
Expand Down
Loading