Skip to content

Commit f5f00bc

Browse files
authored
chore: add pkg new job (#1052)
This PR includes: - add `pkg-new` package - adjust `build` target - move settings to `nx.json`; output moved package folder (also more in line with Nx release target) - adjust `lint` target - move settings to `nx.json` - adjust all `packages.json` files with additional property `files` - needed for `pkg-new` to work
1 parent ae52e3b commit f5f00bc

File tree

43 files changed

+638
-389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+638
-389
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,7 @@ jobs:
139139
uses: nrwl/nx-set-shas@v4
140140
- name: Install dependencies
141141
run: npm ci
142-
- name: Build affected projects
143-
run: npx nx affected:build --parallel=3
142+
- name: Build all projects # affected is not used to be able to test-releae packages
143+
run: npx nx run-many --target=build --parallel=3
144+
- name: Test-release packages
145+
run: npx pkg-pr-new publish "packages/**/dist"

e2e/ci-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "e2e/ci-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/ci-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

e2e/cli-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "e2e/cli-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/cli-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

e2e/create-cli-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "examples/create-cli-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/create-cli-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

e2e/nx-plugin-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "e2e/nx-plugin-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/nx-plugin-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

e2e/plugin-coverage-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "e2e/plugin-coverage-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/plugin-coverage-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

e2e/plugin-eslint-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "e2e/plugin-eslint-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/plugin-eslint-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

e2e/plugin-js-packages-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
"sourceRoot": "e2e/plugin-js-packages-e2e/src",
66
"implicitDependencies": ["cli", "plugin-js-packages"],
77
"targets": {
8-
"lint": {
9-
"executor": "@nx/linter:eslint",
10-
"outputs": ["{options.outputFile}"],
11-
"options": {
12-
"lintFilePatterns": ["e2e/plugin-eslint-e2e/**/*.ts"]
13-
}
14-
},
8+
"lint": {},
159
"e2e": {
1610
"executor": "@nx/vite:test",
1711
"options": {

e2e/plugin-jsdocs-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
"tags": ["scope:plugin", "type:e2e"],
77
"implicitDependencies": ["cli", "plugin-jsdocs"],
88
"targets": {
9-
"lint": {
10-
"executor": "@nx/linter:eslint",
11-
"outputs": ["{options.outputFile}"],
12-
"options": {
13-
"lintFilePatterns": ["e2e/plugin-jsdocs-e2e/**/*.ts"]
14-
}
15-
},
9+
"lint": {},
1610
"e2e": {
1711
"executor": "@nx/vite:test",
1812
"options": {

e2e/plugin-lighthouse-e2e/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"sourceRoot": "e2e/plugin-lighthouse-e2e/src",
55
"projectType": "application",
66
"targets": {
7-
"lint": {
8-
"executor": "@nx/linter:eslint",
9-
"outputs": ["{options.outputFile}"],
10-
"options": {
11-
"lintFilePatterns": ["e2e/plugin-lighthouse-e2e/**/*.ts"]
12-
}
13-
},
7+
"lint": {},
148
"e2e": {
159
"executor": "@nx/vite:test",
1610
"options": {

0 commit comments

Comments
 (0)