Skip to content

Commit d25302e

Browse files
committed
build: move to turbo
Signed-off-by: Jytesh <[email protected]>
1 parent 73af50a commit d25302e

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

.github/workflows/test.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ jobs:
6161
sudo -u postgres psql --command="ALTER ROLE postgres WITH PASSWORD 'postgres';" --command="\du"
6262
sudo systemctl restart postgresql.service
6363
pg_isready
64-
- run: npm install --no-package-lock
65-
- run: npm test
64+
- name: Setup PNPM
65+
uses: pnpm/[email protected]
66+
with:
67+
version: 6.24.4
68+
run_install: true
69+
- run: pnpm test
6670
- name: Coverage
67-
run: npm run coverage
71+
run: pnpm coverage
6872
- name: Upload
6973
uses: coverallsapp/github-action@master
7074
with:

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ package-lock.json
99
#yarn
1010
yarn.lock
1111

12+
#pnpm
13+
pnpm-lock.yaml
14+
15+
#turbo
16+
.turbo
17+
1218
# Logs
1319
logs
1420
*.log

package.json

+21-10
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@
186186
"npm-check-updates": "latest",
187187
"nyc": "latest",
188188
"prettier-standard": "latest",
189+
"rimraf": "latest",
189190
"simple-git-hooks": "latest",
190-
"standard": "latest"
191+
"standard": "latest",
192+
"turbo": "latest"
191193
},
192194
"engines": {
193195
"node": ">= 12"
@@ -197,21 +199,20 @@
197199
],
198200
"scripts": {
199201
"build": "gulp build",
200-
"clean": "lerna clean --yes && rm -rf node_modules",
201-
"contributors": "(lerna exec finepack --parallel && git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
202+
"clean": "lerna clean && rm -rf node_modules",
203+
"contributors": "(pnpm -r exec finepack --parallel && git-authors-cli && finepack && echo \"git add package.json && git commit -m 'build: contributors' --no-verify\") || true",
202204
"coverage": "node scripts/merge-reports && mkdir -p coverage && nyc report --reporter=text-lcov > coverage/lcov.info",
203205
"dev": "concurrently \"gulp\" \"npm run dev:server\"",
204206
"dev:server": "browser-sync start --server --files \"index.html, README.md, static/**/*.(css|js)\"",
205-
"install": "lerna bootstrap --no-ci --force-local",
206207
"lint": "standard",
207-
"prerelease": "npm run contributors",
208-
"pretest": "npm run lint",
208+
"prerelease": "contributors",
209+
"pretest": "lint",
209210
"release": "lerna publish --yes --sort --conventional-commits -m \"chore(release): %s\" --create-release github",
210-
"test": "lerna run test",
211-
"update": "lerna exec ncu -- --upgrade && ncu -- --upgrade",
212-
"update:check": "lerna exec ncu -- --errorLevel 2 && ncu -- --errorLevel 2"
211+
"test": "turbo run test",
212+
"update": "pnpm -r exec ncu -- --upgrade && ncu -- --upgrade",
213+
"update:check": "pnpm -r exec ncu -- --errorLevel 2 && ncu -- --errorLevel 2"
213214
},
214-
"private": "true",
215+
"private": true,
215216
"license": "MIT",
216217
"commitlint": {
217218
"extends": [
@@ -232,5 +233,15 @@
232233
"simple-git-hooks": {
233234
"commit-msg": "npx commitlint --edit",
234235
"pre-commit": "npx nano-staged"
236+
},
237+
"turbo": {
238+
"pipeline": {
239+
"lint": {
240+
"outputs": []
241+
},
242+
"test": {
243+
"outputs": []
244+
}
245+
}
235246
}
236247
}

pnpm-workspace.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'packages/*'

0 commit comments

Comments
 (0)