Skip to content

Commit

Permalink
chore(washboard): move script implementation details to packages
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Heywood <lachieh@users.noreply.github.com>
  • Loading branch information
lachieh committed May 2, 2024
1 parent 98f5bf8 commit c39020e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 23 deletions.
19 changes: 9 additions & 10 deletions washboard-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
"scripts": {
"turbo:build": "turbo run build --cache-dir .turbo/cache",
"turbo:dev": "turbo run dev",
"turbo:lint:eslint": "turbo run lint:eslint",
"turbo:lint:eslint:fix": "turbo run lint:eslint:fix",
"turbo:format:prettier:fix": "turbo run format:prettier:fix",
"turbo:format:prettier:check": "turbo run format:prettier:check",
"turbo:test:playwright:headless": "turbo run test:playwright:headless",
"turbo:test:vitest": "turbo run test:vitest",
"turbo:storybook:build": "turbo run storybook:build",
"format:prettier": "prettier --ignore-unknown --no-error-on-unmatched-pattern '**/*'",
"format:prettier:fix": "yarn format:prettier --write",
"format:prettier:check": "yarn format:prettier --check"
"turbo:lint": "turbo run lint",
"turbo:lint:fix": "turbo run lint:fix",
"turbo:format": "turbo run format",
"turbo:format:fix": "turbo run format:fix",
"turbo:test": "turbo run test",
"turbo:test:e2e": "turbo run test:e2e",
"turbo:test:unit": "turbo run test:unit",
"format": "prettier --ignore-unknown --no-error-on-unmatched-pattern '**/*' --check",
"format:fix": "yarn format:prettier --write"
},
"devDependencies": {
"@types/node": "^20.12.7",
Expand Down
2 changes: 2 additions & 0 deletions washboard-ui/packages/lattice-client-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"src"
],
"scripts": {
"lint": "yarn lint:eslint",
"lint:fix": "yarn lint:eslint:fix",
"lint:eslint": "eslint --ext .ts,.tsx ./src",
"lint:eslint:fix": "yarn lint:eslint --fix",
"test:types": "tsc",
Expand Down
2 changes: 2 additions & 0 deletions washboard-ui/packages/lattice-client-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"src"
],
"scripts": {
"lint": "yarn lint:eslint",
"lint:fix": "yarn lint:eslint:fix",
"lint:eslint": "eslint --ext .ts,.tsx ./src",
"lint:eslint:fix": "yarn lint:eslint --fix",
"test:types": "tsc",
Expand Down
10 changes: 7 additions & 3 deletions washboard-ui/packages/washboard-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "yarn lint:eslint",
"lint:fix": "yarn lint:eslint:fix",
"lint:eslint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:eslint:fix": "yarn lint:eslint --fix",
"test:e2e": "yarn test:playwright:headless",
"test:playwright:headless": "playwright test",
"test:playwright:ui": "playwright test --ui",
"format:prettier": "prettier --ignore-unknown --no-error-on-unmatched-pattern '**/*'",
"format:prettier:fix": "yarn format:prettier --write",
"format:prettier:check": "yarn format:prettier --check"
"format": "yarn format:prettier",
"format:fix": "yarn format:prettier:fix",
"format:prettier": "prettier --ignore-unknown --no-error-on-unmatched-pattern '**/*' --check",
"format:prettier:fix": "yarn format:prettier --write"
},
"dependencies": {
"@hookform/resolvers": "^3.3.4",
Expand Down
20 changes: 10 additions & 10 deletions washboard-ui/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"lint:eslint": {
"dependsOn": ["^lint:eslint", "^build"]
"lint": {
"dependsOn": ["^lint", "^build"]
},
"lint:eslint:fix": {
"dependsOn": ["^lint:eslint:fix"]
"lint:fix": {
"dependsOn": ["^lint:fix"]
},
"format:prettier:check": {
"dependsOn": ["^format:prettier:check"]
"format": {
"dependsOn": ["^format"]
},
"format:prettier:fix": {
"dependsOn": ["^format:prettier:fix"]
"format:fix": {
"dependsOn": ["^format:fix"]
},
"test:playwright:headless": {
"test:e2e": {
"outputs": ["playwright-report", "test-results"]
},
"test:vitest": {},
"test:unit": {},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", "build/**"],
Expand Down

0 comments on commit c39020e

Please sign in to comment.