Skip to content

Commit

Permalink
⚙️ Chore(enviroment,docs): change and add clean scripts + change lint…
Browse files Browse the repository at this point in the history
…-staged processes at configs
  • Loading branch information
INeedJobToStartWork committed Mar 31, 2024
1 parent 455a404 commit dd6df2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
10 changes: 8 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
"dev": "next",
"build": "next build",
"start": "next start",
"test": "echo 'Add test script here'",
"prettier": "pnpm prettier . --write && pnpm prettier . --check",
"format": "pnpm prettier . --write && pnpm prettier . --check",
"lint": "pnpm eslint .",
"lint:fix": "pnpm eslint . --fix"
},
"lint-staged": {
"*": [
"pnpm format --",
"pnpm lint:fix --",
"pnpm lint --"
]
},
"devDependencies": {
"eslint": "^8.57.0",
"eslintrc": "workspace:*",
Expand Down
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "turbo dev",
"build": "turbo build",
"build:npm": "turbo build:npm",
"lint": "turbo lint",
"lint:fix": "turbo lint",
"format": "turbo format",
"clean": "pnpm clean:node-modules && pnpm clean:lock && pnpm clean:cache && pnpm install --hoist",
"clean:cache": "rimraf ./node_modules/.cache --glob && rimraf ./apps/**/node_modules/.cache --glob && rimraf ./packages/**/node_modules/.cache --glob && rimraf ./configs/**/node_modules/.cache --glob",
"clean:lock": "rimraf ./pnpm-lock.yaml --glob ",
"clean:node-modules": "rimraf ./apps/**/node_modules --glob && rimraf ./configs/**/node_modules --glob && rimraf ./packages/**/node_modules --glob && rimraf ./node_modules --glob",
"prepare": "husky"
},
"author": "ineedjobtostartwork",
Expand All @@ -31,13 +36,5 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"turbo": "^1.13.0"
},
"lint-staged": {
"*": [
"git add .",
"pnpm format --",
"pnpm lint:fix --",
"pnpm lint --"
]
}
}
4 changes: 0 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
"start": {},
"npm:publish": {
"dependsOn": ["^build:npm"]
},
"clear": {
"cache": false,
"outputs": []
}
}
}

0 comments on commit dd6df2f

Please sign in to comment.