Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add root commands #1550

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 5 additions & 35 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
- name: Test
run: pnpm test:ci

- name: Test projects
run: pnpm -r test:ci
env:
NODE_OPTIONS: --experimental-vm-modules

- name: Lint
run: pnpm lint

Expand All @@ -74,41 +79,6 @@ jobs:
name: Dry-run site packaging
run: pnpm skuba node scripts/package.ts

package:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
template:
- eslint-config-skuba
- skuba-dive
steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Set up pnpm
run: corepack enable pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup Skuba
run: pnpm build

- if: github.head_ref != 'changeset-release/main' && github.ref_name != 'changeset-release/main'
name: Lint package
run: pnpm --filter ${{ matrix.template }} lint

- if: github.head_ref != 'changeset-release/main' && github.ref_name != 'changeset-release/main'
name: Test package
run: pnpm --filter ${{ matrix.template }} test

template:
name: Integrate
runs-on: ubuntu-latest
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@
"build": "scripts/build.sh",
"changeset": "changeset",
"deploy": "scripts/deploy.sh",
"format": "pnpm --silent skuba format",
"lint": "pnpm --silent skuba lint && pnpm --silent lint:md",
"format": "pnpm /^format:/",
"format:projects": "pnpm -r format",
"format:skuba": "pnpm --silent skuba format",
"lint": "pnpm /^lint:/",
"lint:md": "remark --frail --quiet .",
"lint:projects": "pnpm -r lint",
"lint:skuba": "pnpm --silent skuba lint",
"release": "pnpm --silent build && changeset publish",
"skuba": "pnpm --silent build && pnpm --silent skuba:exec",
"skuba:exec": "node --experimental-vm-modules lib/skuba",
"stage": "changeset version && node ./.changeset/inject.js && pnpm format",
"test": "pnpm --silent skuba test --selectProjects unit --",
"test:ci": "pnpm --silent skuba test --runInBand",
"test:ci:projects": "pnpm -r test:ci",
"test:projects": "pnpm -r test",
"test:int": "pnpm --silent skuba test --selectProjects integration --runInBand",
"test:template": "scripts/test-template.sh",
"test:watch": "pnpm --silent skuba test --runInBand --watch"
Expand Down
8 changes: 8 additions & 0 deletions packages/eslint-config-skuba/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# managed by skuba
public-hoist-pattern[]="@types*"
public-hoist-pattern[]="*eslint*"
public-hoist-pattern[]="*prettier*"
public-hoist-pattern[]="esbuild"
public-hoist-pattern[]="jest"
public-hoist-pattern[]="tsconfig-seek"
# end managed by skuba
8 changes: 8 additions & 0 deletions packages/skuba-dive/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# managed by skuba
public-hoist-pattern[]="@types*"
public-hoist-pattern[]="*eslint*"
public-hoist-pattern[]="*prettier*"
public-hoist-pattern[]="esbuild"
public-hoist-pattern[]="jest"
public-hoist-pattern[]="tsconfig-seek"
# end managed by skuba
1 change: 1 addition & 0 deletions src/cli/__snapshots__/format.int.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ Refreshed .eslintignore. refresh-config-files
Refreshed .gitignore. refresh-config-files
Refreshed .prettierignore. refresh-config-files
Refreshed .npmrc. refresh-config-files
Refreshed .dockerignore. refresh-config-files
Processed skuba lints in <random>s.

ESLint
Expand Down
Loading