Skip to content

Commit 2f469ec

Browse files
authored
Merge pull request #111 from klerick/update-dep
feat(json-api-nestjs,json-api-nestjs-microorm,json-api-nestjs-sdk,jso…
2 parents 2e4700e + 56278d8 commit 2f469ec

File tree

15 files changed

+586
-347
lines changed

15 files changed

+586
-347
lines changed

.github/workflows/new-release.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -82,64 +82,64 @@ on:
8282

8383

8484
jobs:
85-
# compute-projects:
86-
# uses: ./.github/workflows/compute-projects.yml
87-
# with:
88-
# tagChoice: ${{ github.event.inputs.tagChoice }}
89-
# project1: ${{ github.event.inputs.project1 }}
90-
# project2: ${{ github.event.inputs.project2 }}
91-
# project3: ${{ github.event.inputs.project3 }}
92-
# project4: ${{ github.event.inputs.project4 }}
93-
#
94-
# test:
95-
# needs: [compute-projects]
96-
# uses: ./.github/workflows/test.yml
97-
# with:
98-
# mainBranch: "last-tag"
99-
# secrets:
100-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
101-
#
102-
# e2e-test:
103-
# needs: [test]
104-
# uses: ./.github/workflows/e2e-test.yml
105-
# with:
106-
# mainBranch: "last-tag"
107-
# secrets:
108-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
109-
#
110-
# build:
111-
# needs: [test, e2e-test]
112-
# uses: ./.github/workflows/build.yml
113-
# with:
114-
# mainBranch: "last-tag"
115-
# secrets:
116-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
117-
#
118-
# upload-badge:
119-
# needs: [ test, e2e-test ]
120-
# uses: ./.github/workflows/upload-badge.yml
121-
# with:
122-
# mainBranch: "last-tag"
123-
# secrets:
124-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
125-
# GIST_SECRET: ${{ secrets.GIST_SECRET }}
126-
# GIST_ID: ${{ secrets.GIST_ID }}
85+
compute-projects:
86+
uses: ./.github/workflows/compute-projects.yml
87+
with:
88+
tagChoice: ${{ github.event.inputs.tagChoice }}
89+
project1: ${{ github.event.inputs.project1 }}
90+
project2: ${{ github.event.inputs.project2 }}
91+
project3: ${{ github.event.inputs.project3 }}
92+
project4: ${{ github.event.inputs.project4 }}
12793

128-
# bump-version:
129-
# needs: [build]
130-
# uses: ./.github/workflows/bump-version.yml
131-
# with:
132-
# projects: ${{ needs.compute-projects.outputs.finalProjects }}
133-
# beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
134-
# dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
135-
# secrets:
136-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
137-
# GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
138-
# PAT: ${{secrets.PAT}}
94+
test:
95+
needs: [compute-projects]
96+
uses: ./.github/workflows/test.yml
97+
with:
98+
mainBranch: "last-tag"
99+
secrets:
100+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
101+
102+
e2e-test:
103+
needs: [test]
104+
uses: ./.github/workflows/e2e-test.yml
105+
with:
106+
mainBranch: "last-tag"
107+
secrets:
108+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
109+
110+
build:
111+
needs: [test, e2e-test]
112+
uses: ./.github/workflows/build.yml
113+
with:
114+
mainBranch: "last-tag"
115+
secrets:
116+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
117+
118+
upload-badge:
119+
needs: [ test, e2e-test ]
120+
uses: ./.github/workflows/upload-badge.yml
121+
with:
122+
mainBranch: "last-tag"
123+
secrets:
124+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
125+
GIST_SECRET: ${{ secrets.GIST_SECRET }}
126+
GIST_ID: ${{ secrets.GIST_ID }}
127+
128+
bump-version:
129+
needs: [build]
130+
uses: ./.github/workflows/bump-version.yml
131+
with:
132+
projects: ${{ needs.compute-projects.outputs.finalProjects }}
133+
beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
134+
dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
135+
secrets:
136+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
137+
GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
138+
PAT: ${{secrets.PAT}}
139139

140140
publish:
141141
if: ${{ fromJSON(github.event.inputs.dry-run) == false }}
142-
# needs: [bump-version]
142+
needs: [bump-version]
143143
uses: ./.github/workflows/publish.yml
144144
secrets:
145145
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"name": "@klerick/json-api-nestjs-microorm",
33
"version": "0.1.0-beta.1",
4-
"license": "MIT",
5-
"private": false,
6-
"contributors": [
7-
{
8-
"email": "[email protected]",
9-
"name": "Aleksandr Kharkovey"
10-
}
11-
],
12-
"repository": {
13-
"type": "git",
14-
"url": "https://github.com/klerick/nestjs-json-api.git"
15-
},
16-
"engines": {
17-
"node": ">= 20.0.0"
18-
},
194
"type": "commonjs",
205
"main": "./src/index.js",
216
"types": "./src/index.d.ts",
@@ -33,8 +18,5 @@
3318
"tslib": ">2.3.0",
3419
"reflect-metadata": "^0.1.12 || ^0.2.0",
3520
"rxjs": "^7.1.0"
36-
},
37-
"publishConfig": {
38-
"access": "public"
3921
}
4022
}

libs/json-api/json-api-nestjs-microorm/project.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type:publish"
1111
],
1212
"targets": {
13-
"build": {
13+
"build-common": {
1414
"dependsOn": [
1515
{
1616
"projects": [
@@ -37,6 +37,30 @@
3737
"updateBuildableProjectDepsInPackageJson": true
3838
}
3939
},
40+
"build": {
41+
"executor": "nx:run-commands",
42+
"dependsOn": [
43+
"build-common"
44+
],
45+
"options": {
46+
"outputPath": "dist/{projectRoot}",
47+
"commands": [
48+
{
49+
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-microorm"
50+
},
51+
{
52+
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-microorm",
53+
"forwardAllArgs": false
54+
},
55+
{
56+
"command": "ln -s $(pwd)/dist/{projectRoot} node_modules/@klerick/json-api-nestjs-microorm",
57+
"forwardAllArgs": false
58+
}
59+
],
60+
"cwd": "./",
61+
"parallel": false
62+
}
63+
},
4064
"test": {
4165
"executor": "@nx/jest:jest",
4266
"outputs": [

libs/json-api/json-api-nestjs-sdk/package.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"name": "@klerick/json-api-nestjs-sdk",
33
"version": "10.0.0-beta.1",
4-
"license": "MIT",
5-
"private": false,
6-
"contributors": [
7-
{
8-
"email": "[email protected]",
9-
"name": "Aleksandr Kharkovey"
10-
}
11-
],
12-
"repository": {
13-
"type": "git",
14-
"url": "https://github.com/klerick/nestjs-json-api.git"
15-
},
16-
"engines": {
17-
"node": ">= 20.0.0"
18-
},
194
"description": "Helper for client JsonAPi Plugin for NestJs",
205
"keywords": [
216
"nestjs",
@@ -57,8 +42,5 @@
5742
"./mjs/src/ngModule.d.ts"
5843
]
5944
}
60-
},
61-
"publishConfig": {
62-
"access": "public"
6345
}
6446
}

libs/json-api/json-api-nestjs-sdk/project.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
"command": "cp dist/{projectRoot}/cjs/package.json dist/{projectRoot}/package.json",
7777
"forwardAllArgs": false
7878
},
79+
{
80+
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-sdk"
81+
},
7982
{
8083
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-sdk",
8184
"forwardAllArgs": false
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"name": "@klerick/json-api-nestjs-shared",
33
"version": "1.0.0-beta.1",
4-
"license": "MIT",
5-
"private": false,
6-
"contributors": [
7-
{
8-
"email": "[email protected]",
9-
"name": "Aleksandr Kharkovey"
10-
}
11-
],
12-
"repository": {
13-
"type": "git",
14-
"url": "https://github.com/klerick/nestjs-json-api.git"
15-
},
16-
"engines": {
17-
"node": ">= 20.0.0"
18-
},
194
"description": "Shared Helper for JsonApi Plugin for NestJs",
205
"keywords": [
216
"nestjs",
@@ -34,8 +19,5 @@
3419
"type": "commonjs",
3520
"main": "./cjs/src/index.js",
3621
"types": "./cjs/src/index.d.ts",
37-
"module": "./mjs/src/index.js",
38-
"publishConfig": {
39-
"access": "public"
40-
}
22+
"module": "./mjs/src/index.js"
4123
}

libs/json-api/json-api-nestjs-shared/project.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"command": "[ ! -f dist/{projectRoot}/cjs/package.json ] || cp dist/{projectRoot}/cjs/package.json dist/{projectRoot}/package.json",
5959
"forwardAllArgs": false
6060
},
61+
{
62+
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-shared"
63+
},
6164
{
6265
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-shared",
6366
"forwardAllArgs": false
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"name": "@klerick/json-api-nestjs-typeorm",
33
"version": "0.1.0-beta.1",
4-
"license": "MIT",
5-
"private": false,
6-
"contributors": [
7-
{
8-
"email": "[email protected]",
9-
"name": "Aleksandr Kharkovey"
10-
}
11-
],
12-
"repository": {
13-
"type": "git",
14-
"url": "https://github.com/klerick/nestjs-json-api.git"
15-
},
16-
"engines": {
17-
"node": ">= 20.0.0"
18-
},
194
"dependencies": {
205
"tslib": ">2.3.0",
216
"reflect-metadata": "^0.1.12 || ^0.2.0",
@@ -33,8 +18,5 @@
3318
"typeorm",
3419
"microorm",
3520
"CRUD"
36-
],
37-
"publishConfig": {
38-
"access": "public"
39-
}
21+
]
4022
}

libs/json-api/json-api-nestjs-typeorm/project.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"projectType": "library",
66
"tags": ["type:lib", "lib:json-api-nestjs", "lib:json-api-nestjs-typeorm", "type:publish"],
77
"targets": {
8-
"build": {
8+
"build-common": {
99
"executor": "@nx/js:tsc",
1010
"outputs": ["{options.outputPath}"],
1111
"options": {
@@ -19,6 +19,30 @@
1919
"updateBuildableProjectDepsInPackageJson": true
2020
}
2121
},
22+
"build": {
23+
"executor": "nx:run-commands",
24+
"dependsOn": [
25+
"build-common"
26+
],
27+
"options": {
28+
"outputPath": "dist/{projectRoot}",
29+
"commands": [
30+
{
31+
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-typeorm"
32+
},
33+
{
34+
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-typeorm",
35+
"forwardAllArgs": false
36+
},
37+
{
38+
"command": "ln -s $(pwd)/dist/{projectRoot} node_modules/@klerick/json-api-nestjs-typeorm",
39+
"forwardAllArgs": false
40+
}
41+
],
42+
"cwd": "./",
43+
"parallel": false
44+
}
45+
},
2246
"nx-release-publish": {
2347
"options": {
2448
"packageRoot": "dist/{projectRoot}"
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"name": "@klerick/json-api-nestjs",
33
"version": "10.0.0-beta.1",
4-
"license": "MIT",
5-
"private": false,
6-
"contributors": [
7-
{
8-
"email": "[email protected]",
9-
"name": "Aleksandr Kharkovey"
10-
}
11-
],
12-
"repository": {
13-
"type": "git",
14-
"url": "https://github.com/klerick/nestjs-json-api.git"
15-
},
16-
"engines": {
17-
"node": ">= 20.0.0"
18-
},
194
"type": "commonjs",
205
"description": "JsonApi Plugin for NestJs",
216
"keywords": [
@@ -31,8 +16,5 @@
3116
"tslib": ">2.3.0",
3217
"reflect-metadata": "^0.1.12 || ^0.2.0",
3318
"rxjs": "^7.1.0"
34-
},
35-
"publishConfig": {
36-
"access": "public"
3719
}
3820
}

0 commit comments

Comments
 (0)