Skip to content

Commit

Permalink
chore: add depcheck back to verify
Browse files Browse the repository at this point in the history
improve clean script
add nuke script: WIP
  • Loading branch information
unional committed Sep 29, 2022
1 parent f6cbd3d commit e090ac3
Show file tree
Hide file tree
Showing 19 changed files with 108 additions and 95 deletions.
6 changes: 4 additions & 2 deletions apps/just-func/play-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
"build:storybook": "build-storybook",
"build:watch": "echo no build:watch",
"chromatic": "npx chromatic --project-token=9693e88259d4",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage build lib *.tsbuildinfo",
"coverage": "react-app-rewired test --watchAll=false --coverage 2>&1",
"depcheck": "depcheck",
"eject": "react-scripts eject",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"sb": "start-storybook -p 6006",
"start": "react-app-rewired start",
"storybook": "start-storybook -p 6006",
Expand All @@ -21,7 +23,7 @@
"test": "react-app-rewired test --watchAll=false 2>&1",
"test:visual": "cross-env VISUAL_TEST=1 react-app-rewired test --watchAll=false",
"test:watch": "react-app-rewired test",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck",
"verify:test": "run-s test test:visual"
},
Expand Down
6 changes: 4 additions & 2 deletions apps/just-func/play-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@
"scripts": {
"build": "vite build",
"build:watch": "vite build",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"dev": "vite",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"sb": "start-storybook -p 6006",
"serve": "vite preview",
"start": "vite",
"storybook": "start-storybook -p 6006",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions components/react-commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@
"build:ts": "tsc",
"build:watch": "tsc -w",
"chromatic": "npx chromatic --project-token=9693e88259d4",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"copy:css": "copyfiles -u 1 src/**/*.css lib/",
"coverage": "react-app-rewired test --watchAll=false --coverage 2>&1",
"depcheck": "depcheck",
"eject": "react-scripts eject",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"sb": "start-storybook -p 6006",
"start": "react-scripts start",
"storybook": "start-storybook -p 6006",
"test": "react-app-rewired test --watchAll=false 2>&1",
"test:storybook": "test-storybook",
"test:visual": "cross-env VISUAL_TEST=1 react-app-rewired test --watchAll=false 2>&1",
"test:watch": "react-app-rewired test",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck",
"verify:test": "run-s test test:visual"
},
Expand Down
6 changes: 4 additions & 2 deletions frameworks/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/contributions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions frameworks/states/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck"
},
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions libraries/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@
"build:ts": "tsc",
"build:watch": "tsc -w",
"chromatic": "npx chromatic --project-token=9693e88259d4",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"copy:css": "copyfiles -u 1 ts/**/*.css lib/",
"coverage": "react-app-rewired test --watchAll=false --coverage 2>&1",
"depcheck": "depcheck",
"eject": "react-scripts eject",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"sb": "start-storybook -p 6006",
"start": "react-scripts start",
"storybook": "start-storybook -p 6006",
"test": "react-app-rewired test --watchAll=false 2>&1",
"test:storybook": "test-storybook",
"test:visual": "cross-env VISUAL_TEST=1 react-app-rewired test --watchAll=false 2>&1",
"test:watch": "react-app-rewired test",
"verify": "run-p build lint coverage",
"verify": "run-p build lint coverage depcheck",
"verify:build": "run-s clean build depcheck",
"verify:test": "run-s test test:visual"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"play-react": "pnpm --filter=@just-func/play-react",
"play-solid": "pnpm --filter=@just-func/play-solid",
"lint": "turbo run lint",
"nuke": "turbo run nuke",
"nuke": "turbo run nuke && pnpm nuke:local",
"nuke:local": "rimraf node_modules || true",
"react": "pnpm --filter=@just-web/react",
"repo-scripts": "pnpm --filter=@just-web/repo-scripts",
Expand Down
4 changes: 3 additions & 1 deletion plugins/routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"clean": "rimraf lib *.tsbuildinfo",
"clean": "rimraf coverage lib *.tsbuildinfo",
"coverage": "jest --coverage 2>&1",
"depcheck": "depcheck",
"lint": "eslint --ext=ts,tsx,js,yaml,yml .",
"nuke": "run-s clean nuke:local",
"nuke:local": "rimraf node_modules || true",
"test": "jest 2>&1",
"test:watch": "jest --watch",
"verify": "run-p build lint coverage depcheck",
Expand Down
Loading

0 comments on commit e090ac3

Please sign in to comment.