Skip to content

Commit

Permalink
chore(repo): use root-level scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Nov 18, 2022
1 parent bf4f6c0 commit ffd40af
Show file tree
Hide file tree
Showing 9 changed files with 544 additions and 757 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,20 @@ jobs:
- run: npx nx-cloud start-ci-run --stop-agents-after="e2e"
- run:
name: Check Documentation
command: npx nx-cloud record yarn documentation
command: npx nx documentation --no-dte
no_output_timeout: 20m
- run:
name: Run Checks/Lint/Test/Build
no_output_timeout: 60m
command: |
pids=()
(npx nx-cloud record yarn check-imports &&
npx nx-cloud record yarn nx format:check --base=$NX_BASE --head=$NX_HEAD &&
npx nx-cloud record yarn check-commit &&
npx nx-cloud record yarn check-lock-files &&
npx nx-cloud record yarn nx workspace-lint &&
npx nx-cloud record yarn depcheck) &
(npx nx check-imports --no-dte &&
npx nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD &&
npx nx check-commit --no-dte &&
npx nx check-lock-files --no-dte &&
npx nx lint --no-dte &&
npx nx depcheck --no-dte ) &
pids+=($!)
yarn nx affected --target=lint --base=$NX_BASE --head=$NX_HEAD --parallel=3 &
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ packages/react/src/schematics/**/files/**/*.json
packages/jest/src/schematics/**/files/**/*.json
packages/**/schematics/**/files/**/*.html
packages/**/generators/**/files/**/*.html
nx-dev/nx-dev/.next/
docs/generated/
/.vscode
/.idea
/.github
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Please follow the following guidelines:
- Debug with `node --inspect-brk ./node_modules/jest/bin/jest.js build/packages/angular/src/utils/ast-utils.spec.js`
- Make sure e2e tests pass (this can take a while, so you can always let CI check those) (`nx affected --target=e2e`)
- Target a specific e2e test with `nx e2e e2e-cypress`
- Make sure you run `yarn format`
- Make sure you run `nx format`
- Update documentation with `yarn documentation`. For documentation, check for spelling and grammatical errors.
- Update your commit message to follow the guidelines below (use `yarn commit` to automate compliance)
- `yarn check-commit` will check to make sure your commit messages are formatted correctly
Expand Down

0 comments on commit ffd40af

Please sign in to comment.