Skip to content

Commit

Permalink
Add Turborepo setup for dev command (#393)
Browse files Browse the repository at this point in the history
Previously it wasn't possible to run `dev` in the terminal to start all of the dev server. Now it is.
  • Loading branch information
alvarlagerlof committed Oct 8, 2023
1 parent f59a6d7 commit 43a9b48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"test": "turbo run test",
"typecheck": "turbo run typecheck",
"format": "turbo run format",
"ci": "turbo run ci"
"ci": "turbo run ci",
"dev": "turbo run dev"
},
"packageManager": "yarn@3.6.4",
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "MIT",
"scripts": {
"build": "vite build && yarn tailwindcss -o dist/style.css --minify",
"dev": "concurrently \"vite build --watch\" \"yarn tailwindcss -o dist/style.css --minify --watch\"",
"dev:build": "concurrently \"vite build --watch\" \"yarn tailwindcss -o dist/style.css --minify --watch\"",
"storybook": "storybook dev -p 6006 --no-open",
"dev": "concurrently \"yarn dev:build\" \"yarn storybook\"",
"build-storybook": "storybook build",
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../../node_modules/jest/bin/jest.js",
"test:dev": "yarn test --watch",
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"format": {},
"ci": {
"dependsOn": ["build", "lint", "test", "format"]
}
},
"dev": {}
}
}

0 comments on commit 43a9b48

Please sign in to comment.