-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate workspace to nx 19.x (#242)
The Nx workspace also needs to be migrated to v19.x to to use `@nxlv/python` or `@nxlv/data-migration` v19.x packages BREAKING CHANGE: migrate Nx workspace to 19.x
- Loading branch information
1 parent
48f8c4b
commit 8473ccd
Showing
47 changed files
with
13,652 additions
and
49,225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Set Up Monorepo | ||
description: Set up nx monorepo for CI workflows | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Use PNPM 8.x | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install Node.js Dependencies | ||
shell: bash | ||
run: pnpm install | ||
|
||
- uses: nrwl/nx-set-shas@v4 |
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 |
---|---|---|
|
@@ -41,4 +41,5 @@ Thumbs.db | |
# Reports | ||
reports/ | ||
|
||
.nx/cache | ||
.nx/cache | ||
.nx/workspace-data |
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,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "$1" | ||
pnpm commitlint --edit "$1" |
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,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
pnpm lint-staged |
This file was deleted.
Oops, something went wrong.
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,4 +3,6 @@ | |
/dist | ||
/coverage | ||
|
||
/.nx/cache | ||
/.nx/cache | ||
/.nx/workspace-data | ||
pnpm-lock.yaml |
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 |
---|---|---|
@@ -1,15 +1,6 @@ | ||
const { | ||
utils: { getProjects }, | ||
} = require('@commitlint/config-nx-scopes'); | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'], | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-enum': async (ctx) => [ | ||
2, | ||
'always', | ||
[...(await getProjects(ctx)), 'workspace'], | ||
], | ||
'body-max-line-length': [0, 'always'], | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
module.exports = { | ||
'{packages,tools}/**/*.{ts,js,json,md,html,css,scss}': [ | ||
'npx nx affected --target lint --uncommitted --fix true', | ||
'npx nx format:write --uncommitted', | ||
'git add', | ||
'pnpm nx affected --target lint --uncommitted --fix true', | ||
'pnpm nx format:write --uncommitted', | ||
], | ||
'*.{js,md,json}': ['npx nx format:write --uncommitted', 'git add'], | ||
'*.{js,md,json}': ['pnpm nx format:write --uncommitted'], | ||
}; |
Oops, something went wrong.