Skip to content

Commit

Permalink
setup turbowatch
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Samoraj <maciej.samoraj@gmail.com>
  • Loading branch information
elf-pavlik and samurex committed Dec 5, 2023
1 parent 06b9a4b commit 066422d
Show file tree
Hide file tree
Showing 5 changed files with 398 additions and 15 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ corepack prepare pnpm@latest --activate

```bash
pnpm install
pnpx turbo run build
pnpx turbo run test
pnpx turbo run dev
pnpm build
pnpm test
pnpm dev
```
In separate terminal

```bash
pnpm watch
```

It will run following:
Expand Down
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,26 @@
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"turbo": "^1.10.16",
"turbowatch": "^2.29.4",
"typescript": "^5.2.2"
},
"scripts": {
"prepare": "husky install"
"prepare": "husky install",
"build": "pnpx turbo run build",
"test": "pnpx turbo run test",
"dev": "pnpm --filter '@janeirodigital/sai-server' redis && pnpx turbo run dev",
"watch": "./node_modules/.bin/turbowatch turbowatch.ts"
},
"volta": {
"node": "20.7.0"
},
"packageManager": "pnpm@8.8.0",
"lint-staged": {
"*.ts": ["eslint --config .eslintrc.js", "prettier --write", "git add"]
"*.ts": [
"eslint --config .eslintrc.js",
"prettier --write",
"git add"
]
}
}
3 changes: 1 addition & 2 deletions packages/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
"start": "node dist/componentsMain.js",
"redis:create": "docker run --name sai-redis -p 6379:6379 -d redis",
"redis:delete": "docker rm -f sai-redis",
"dev": "pnpm run redis:delete && pnpm run redis:create && pnpm run debug",
"redis": "pnpm redis:delete && pnpm redis:create",
"debug": "pnpm run build && node --inspect dist/componentsMain.js",
"build": "pnpm run build:ts && pnpm run build:components",
"build:components": "componentsjs-generator -s dist -c dist/components -r ssv -i .componentsignore",
"build:ts": "tsc",
"build:watch": "tsc --watch",
"clean": "rm -rf dist/",
"test": "jest test/unit",
"lint": "eslint . --ext .ts",
Expand Down
Loading

0 comments on commit 066422d

Please sign in to comment.