Skip to content

Commit

Permalink
chore(nxext): move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikPieper committed Aug 30, 2023
1 parent 57bf8d5 commit e2adfc6
Show file tree
Hide file tree
Showing 12 changed files with 23,775 additions and 16,316 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,17 @@ jobs:
with:
main-branch-name: main
number-of-agents: 3
environment-variables: |
npm_config_registry=http://localhost:4872
node-version: 18.x
yarn-version: 1.x
init-commands: |
yarn nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
parallel-commands: |
yarn nx-cloud record -- yarn nx format:check
pnpm exec nx-cloud record -- pnpm exec nx format:check
parallel-commands-on-agents: |
yarn nx affected --target=lint --parallel=3
yarn nx affected --target=test --parallel=3 --ci --code-coverage
yarn nx affected --target=build --parallel=3
pnpm exec nx affected --target=lint --parallel=3
pnpm exec nx affected --target=test --parallel=3 --ci --code-coverage
pnpm exec nx affected --target=build --parallel=3
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3
environment-variables: |
npm_config_registry=http://localhost:4872
node-version: 18.x
yarn-version: 1.x
3 changes: 3 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
node ./scripts/notify-lockfile-changes.js $changedFiles
3 changes: 3 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
node ./scripts/notify-lockfile-changes.js $changedFiles
8 changes: 4 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn format:check || {
echo "Make sure to run \`yarn format\` before pushing." >&2;
pnpm format:check || {
echo "Make sure to run \`pnpm format\` before pushing." >&2;
exit 1;
}
yarn documentation
yarn pretty-quick --check
pnpm documentation
pnpm check-lock-files
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"format:write": "nx format:write",
"format:check": "nx format:check",
"update": "nx migrate latest",
"check-lock-files": "node ./tools/scripts/check-lock-files.js",
"create-playground": "ts-node -P tools/scripts/tsconfig.scripts.json tools/scripts/create-playground.ts",
"update-playground": "ts-node -P tools/scripts/tsconfig.scripts.json tools/scripts/update-playground.ts",
"setup-local-plugins": "ts-node tools/scripts/setup-local-plugins.ts",
Expand All @@ -49,8 +50,9 @@
},
"private": true,
"packageManager": "[email protected]",
"dependencies": {},
"devDependencies": {
"@angular-devkit/core": "16.0.0",
"@angular-devkit/schematics": "16.0.0",
"@nuxt/kit": "^3.7.0",
"@nx/angular": "16.7.4",
"@nx/cypress": "16.7.4",
Expand All @@ -65,6 +67,7 @@
"@nx/react": "16.7.4",
"@nx/storybook": "16.7.4",
"@nx/vite": "16.7.4",
"@nx/web": "16.7.4",
"@nx/workspace": "16.7.4",
"@phenomnomnominal/tsquery": "~5.0.1",
"@preact/preset-vite": "^2.5.0",
Expand All @@ -77,6 +80,7 @@
"@swc/jest": "0.2.26",
"@types/glob": "^8.1.0",
"@types/globrex": "^0.1.2",
"ajv": "6.12.6",
"@types/is-ci": "^3.0.0",
"@types/jest": "29.5.3",
"@types/node": "18.15.3",
Expand Down Expand Up @@ -105,6 +109,7 @@
"jsonc-parser": "^3.2.0",
"kill-port": "^2.0.1",
"lint-staged": "13.2.3",
"nuxi": "^3.7.2",
"nuxt": "^3.6.5",
"nx": "16.7.4",
"nx-cloud": "16.3.0",
Expand Down
Loading

0 comments on commit e2adfc6

Please sign in to comment.