Skip to content

Commit

Permalink
ci(*): rename scripts (#715)
Browse files Browse the repository at this point in the history
# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
  • Loading branch information
manudeli authored Feb 11, 2024
1 parent 7609583 commit e3245a8
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 58 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
matrix:
command:
[
'lint',
'lint:attw',
'lint:monorepo',
'lint:pub',
'ci:attw',
'ci:eslint',
'ci:lighthouse',
'ci:publint',
'ci:sherif',
'ci:type',
'test',
'test:production',
'type:check',
'build',
'ci:lighthouse',
]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion configs/eslint-config-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"no-import.js"
],
"scripts": {
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
},
"dependencies": {
"@cspell/eslint-plugin": "^8.3.2",
Expand Down
2 changes: 1 addition & 1 deletion configs/eslint-config-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"./no-import.js"
],
"scripts": {
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
},
"dependencies": {
"@suspensive/eslint-config-js": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion configs/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"react-ts-no-import.js"
],
"scripts": {
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
},
"dependencies": {
"@suspensive/eslint-config-js": "workspace:*",
Expand Down
10 changes: 5 additions & 5 deletions configs/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"ci:attw": "attw --pack",
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:type": "tsc --noEmit",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:attw": "attw --pack",
"lint:pub": "publint --strict",
"prepack": "pnpm build",
"type:check": "tsc --noEmit"
"prepack": "pnpm build"
},
"devDependencies": {
"@suspensive/eslint-config": "workspace:*",
Expand Down
10 changes: 5 additions & 5 deletions configs/tsup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"ci:attw": "attw --pack",
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:type": "tsc --noEmit",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:attw": "attw --pack",
"lint:pub": "publint --strict",
"prepack": "pnpm build",
"type:check": "tsc --noEmit"
"prepack": "pnpm build"
},
"devDependencies": {
"@suspensive/eslint-config-ts": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion docs/suspensive.org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"type": "commonjs",
"scripts": {
"build": "next build",
"ci:eslint": "next lint",
"ci:type": "tsc --noEmit",
"dev": "next dev -p 4001",
"lint": "next lint",
"start": "next start -p 4001"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion examples/next-streaming-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"private": true,
"scripts": {
"build": "next build",
"ci:eslint": "next lint",
"ci:type": "tsc --noEmit",
"dev": "next dev -p 4100",
"lint": "next lint",
"start": "next start -p 4100"
},
"dependencies": {
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@
"changeset": "changeset",
"changeset:publish": "pnpm prepack && changeset publish",
"changeset:version": "changeset version && pnpm i --lockfile-only",
"ci:all": "pnpm lint && pnpm lint:attw && pnpm lint:monorepo && pnpm lint:pub && pnpm test && pnpm test:production && pnpm type:check && pnpm build",
"ci:all": "pnpm ci:attw && pnpm ci:eslint && pnpm ci:lighthouse && pnpm ci:publint && pnpm ci:sherif && pnpm ci:type && pnpm test && pnpm test:production && pnpm build",
"ci:attw": "turbo run ci:attw",
"ci:eslint": "turbo run ci:eslint",
"ci:lighthouse": "lhci autorun",
"ci:publint": "turbo run ci:publint",
"ci:sherif": "sherif --ignore-package \"./examples/*\" --ignore-package \"./websites/*\" --ignore-package \"./docs/*\"",
"ci:type": "turbo run ci:type",
"clean": "pnpm --filter \"./packages/**\" run clean",
"dev": "turbo run dev",
"dev:docs": "turbo run dev --filter=@suspensive/docs-v*",
"dev:visualization": "turbo run dev --filter=@suspensive/visualization",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"graph": "rimraf ./graph && mkdir graph && turbo run build --graph=graph/index.html",
"lint": "turbo run lint",
"lint:attw": "turbo run lint:attw",
"lint:monorepo": "sherif --ignore-package \"./examples/*\" --ignore-package \"./websites/*\" --ignore-package \"./docs/*\"",
"lint:pack": "packlint sort -R",
"lint:pub": "turbo run lint:pub",
"packlint": "packlint sort -R",
"preinstall": "corepack enable",
"prepack": "turbo run prepack",
"prepare": "husky install",
"start": "turbo run start",
"test": "turbo run test",
"test:production": "turbo run test:production",
"test:production:watch": "turbo run test:production:watch --parallel",
"test:watch": "turbo run test:watch --parallel",
"type:check": "turbo run type:check"
"test:watch": "turbo run test:watch --parallel"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.13.8",
Expand Down
10 changes: 5 additions & 5 deletions packages/react-await/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"ci:attw": "attw --pack",
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:type": "tsc --noEmit",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:attw": "attw --pack",
"lint:pub": "publint --strict",
"prepack": "pnpm build",
"test": "vitest run --coverage --typecheck",
"test:watch": "vitest --ui --coverage --typecheck",
"type:check": "tsc --noEmit"
"test:watch": "vitest --ui --coverage --typecheck"
},
"dependencies": {
"use-sync-external-store": "^1.2.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/react-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"ci:attw": "attw --pack",
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:type": "tsc --noEmit",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:attw": "attw --pack",
"lint:pub": "publint --strict",
"prepack": "pnpm build",
"test": "vitest run --coverage --typecheck",
"test:watch": "vitest --ui --coverage --typecheck",
"type:check": "tsc --noEmit"
"test:watch": "vitest --ui --coverage --typecheck"
},
"dependencies": {
"use-sync-external-store": "^1.2.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"ci:attw": "attw --pack",
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:type": "tsc --noEmit",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:attw": "attw --pack",
"lint:pub": "publint --strict",
"prepack": "pnpm build",
"test": "vitest run --coverage --typecheck",
"test:watch": "vitest --ui --coverage --typecheck",
"type:check": "tsc --noEmit"
"test:watch": "vitest --ui --coverage --typecheck"
},
"devDependencies": {
"@suspensive/eslint-config": "workspace:*",
Expand Down
10 changes: 5 additions & 5 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"ci:attw": "attw --pack",
"ci:eslint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:type": "tsc --noEmit",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:attw": "attw --pack",
"lint:pub": "publint --strict",
"prepack": "pnpm build",
"test": "vitest run --coverage --typecheck",
"test:production": "vitest run --config ./vitest-production.config.ts",
"test:production:watch": "vitest --config ./vitest-production.config.ts --ui",
"test:watch": "vitest --ui --coverage --typecheck",
"type:check": "tsc --noEmit"
"test:watch": "vitest --ui --coverage --typecheck"
},
"dependencies": {
"use-sync-external-store": "^1.2.0"
Expand Down
12 changes: 6 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
"cache": false,
"outputs": ["dist/**"]
},
"lint": {
"ci:attw": {
"dependsOn": ["prepack"]
},
"lint:attw": {
"ci:eslint": {
"dependsOn": ["prepack"]
},
"lint:pub": {
"ci:publint": {
"dependsOn": ["prepack"]
},
"ci:type": {
"dependsOn": ["prepack"]
},
"test": {
Expand Down Expand Up @@ -48,9 +51,6 @@
"dev": {
"dependsOn": ["prepack"],
"cache": false
},
"type:check": {
"dependsOn": ["prepack"]
}
},
"globalEnv": ["NODE_ENV"]
Expand Down
6 changes: 3 additions & 3 deletions websites/visualization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
},
"scripts": {
"build": "next build",
"ci:eslint": "next lint",
"ci:type": "tsc --noEmit",
"dev": "next dev -p 4000",
"lint": "next lint",
"start": "next start -p 4000",
"type:check": "tsc --noEmit"
"start": "next start -p 4000"
},
"dependencies": {
"@suspensive/react": "workspace:*",
Expand Down

0 comments on commit e3245a8

Please sign in to comment.