@aleleba/create-node-ts-graphql-server 1.5.9 → 1.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# This file contains the main workflow for the GitHub Actions CI/CD pipeline for a Node.js TypeScript GraphQL server project.
|
|
2
|
+
# Name of the workflow
|
|
3
|
+
name: Main Workflow
|
|
4
|
+
|
|
5
|
+
# Define the event that triggers the workflow
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ master ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: ['*']
|
|
11
|
+
|
|
12
|
+
# Define the jobs that will run in the workflow
|
|
13
|
+
jobs:
|
|
14
|
+
# Job to run back-end tests
|
|
15
|
+
integration-back-end-testing:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
node-version: [16.x]
|
|
20
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
- name: Use Node.js 16
|
|
24
|
+
uses: actions/setup-node@v3
|
|
25
|
+
with:
|
|
26
|
+
node-version: 16
|
|
27
|
+
cache: 'npm'
|
|
28
|
+
registry-url: https://registry.npmjs.org/
|
|
29
|
+
- run: npm ci --legacy-peer-deps
|
|
30
|
+
- run: npm test
|
|
31
|
+
|
|
32
|
+
# Job to build the package
|
|
33
|
+
test-build-package:
|
|
34
|
+
if: github.ref != 'refs/heads/master'
|
|
35
|
+
needs: integration-back-end-testing
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@v3
|
|
39
|
+
- uses: actions/setup-node@v3
|
|
40
|
+
with:
|
|
41
|
+
node-version: 16
|
|
42
|
+
registry-url: https://registry.npmjs.org/
|
|
43
|
+
- run: npm ci --legacy-peer-deps
|
|
44
|
+
- run: npm run build
|
|
45
|
+
|
|
46
|
+
# Job to publish the package to npm
|
|
47
|
+
publish-npm:
|
|
48
|
+
if: github.ref == 'refs/heads/master'
|
|
49
|
+
needs: integration-back-end-testing
|
|
50
|
+
runs-on: ubuntu-latest
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v3
|
|
53
|
+
- uses: actions/setup-node@v3
|
|
54
|
+
with:
|
|
55
|
+
node-version: 16
|
|
56
|
+
registry-url: https://registry.npmjs.org/
|
|
57
|
+
- run: npm ci --legacy-peer-deps
|
|
58
|
+
- run: npm publish --access=public
|
|
59
|
+
env:
|
|
60
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleleba/create-node-ts-graphql-server",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.11",
|
|
4
4
|
"description": "Node with Typescript and GraphQL Server",
|
|
5
5
|
"bin": "./bin/cli.js",
|
|
6
6
|
"main": "index.js",
|
|
@@ -53,33 +53,33 @@
|
|
|
53
53
|
"ws": "^8.14.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/core": "^7.23.
|
|
57
|
-
"@babel/preset-env": "^7.23.
|
|
58
|
-
"@babel/preset-typescript": "^7.23.
|
|
56
|
+
"@babel/core": "^7.23.3",
|
|
57
|
+
"@babel/preset-env": "^7.23.3",
|
|
58
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
59
59
|
"@babel/register": "^7.22.15",
|
|
60
60
|
"@types/body-parser": "^1.19.5",
|
|
61
61
|
"@types/cookie-parser": "^1.4.6",
|
|
62
62
|
"@types/cors": "^2.8.16",
|
|
63
63
|
"@types/express": "^4.17.21",
|
|
64
64
|
"@types/jest": "^29.5.8",
|
|
65
|
-
"@types/node": "^20.9.
|
|
65
|
+
"@types/node": "^20.9.2",
|
|
66
66
|
"@types/supertest": "^2.0.16",
|
|
67
67
|
"@types/webpack": "^5.28.5",
|
|
68
68
|
"@types/webpack-node-externals": "^3.0.4",
|
|
69
69
|
"@types/ws": "^8.5.9",
|
|
70
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
71
|
-
"@typescript-eslint/parser": "^6.
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
71
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
72
72
|
"babel-loader": "^9.1.3",
|
|
73
73
|
"clean-webpack-plugin": "^4.0.0",
|
|
74
74
|
"compression-webpack-plugin": "^10.0.0",
|
|
75
|
-
"eslint": "^8.
|
|
75
|
+
"eslint": "^8.54.0",
|
|
76
76
|
"eslint-webpack-plugin": "^4.0.1",
|
|
77
77
|
"jest": "^29.7.0",
|
|
78
78
|
"nodemon": "^3.0.1",
|
|
79
79
|
"resolve-ts-aliases": "^1.0.1",
|
|
80
80
|
"supertest": "^6.3.3",
|
|
81
81
|
"ts-jest": "^29.1.1",
|
|
82
|
-
"ts-loader": "^9.5.
|
|
82
|
+
"ts-loader": "^9.5.1",
|
|
83
83
|
"typescript": "^5.2.2",
|
|
84
84
|
"webpack": "^5.89.0",
|
|
85
85
|
"webpack-cli": "^5.1.4",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: NPM testing and publish package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
jobs:
|
|
7
|
-
build:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v3
|
|
11
|
-
- uses: actions/setup-node@v3
|
|
12
|
-
with:
|
|
13
|
-
node-version: 16
|
|
14
|
-
registry-url: https://registry.npmjs.org/
|
|
15
|
-
- run: npm ci --legacy-peer-deps
|
|
16
|
-
- run: npm test
|
|
17
|
-
|
|
18
|
-
publish-npm:
|
|
19
|
-
needs: build
|
|
20
|
-
runs-on: ubuntu-latest
|
|
21
|
-
steps:
|
|
22
|
-
- uses: actions/checkout@v3
|
|
23
|
-
- uses: actions/setup-node@v3
|
|
24
|
-
with:
|
|
25
|
-
node-version: 16
|
|
26
|
-
registry-url: https://registry.npmjs.org/
|
|
27
|
-
- run: npm ci --legacy-peer-deps
|
|
28
|
-
- run: npm publish --access=public
|
|
29
|
-
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
name: Testing package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: ['*']
|
|
6
|
-
jobs:
|
|
7
|
-
test:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
node-version: [16.x]
|
|
12
|
-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v3
|
|
15
|
-
- name: Use Node.js 16
|
|
16
|
-
uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: 16
|
|
19
|
-
cache: 'npm'
|
|
20
|
-
registry-url: https://registry.npmjs.org/
|
|
21
|
-
- run: npm ci --legacy-peer-deps
|
|
22
|
-
- run: npm test
|
|
23
|
-
test-build-package:
|
|
24
|
-
needs: test
|
|
25
|
-
runs-on: ubuntu-latest
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@v3
|
|
28
|
-
- uses: actions/setup-node@v3
|
|
29
|
-
with:
|
|
30
|
-
node-version: 16
|
|
31
|
-
registry-url: https://registry.npmjs.org/
|
|
32
|
-
- run: npm ci --legacy-peer-deps
|
|
33
|
-
- run: npm run build
|