Skip to content

Commit

Permalink
chore: change dev and docs command
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 29, 2023
1 parent bbf1d56 commit 5511ce1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.html → docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Vitery</title>
<title>mono lib boilerplate</title>
</head>
<body>
<div id="app"></div>
<script
type="module"
src="./docs/index.tsx"
src="./index.tsx"
></script>
</body>
</html>
3 changes: 3 additions & 0 deletions vite.config.ts → docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default defineConfig({
},
react(),
],
build: {
outDir: '../dist',
},
server: {
open: true,
},
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build:r": "r -f cjs",
"build:tsc": "tsc -b",
"clean": "rimraf -g 'packages/**/{lib,*.tsbuildinfo}'",
"dev": "vite dev",
"dev": "vitest",
"docs": "vite docs",
"lint": "concurrently 'yarn:lint:*'",
"lint:es": "eslint . --cache -f friendly",
"lint:style": "stylelint . --cache",
Expand All @@ -26,7 +27,7 @@
"serve": "sirv dist -s",
"test": "vitest run --coverage",
"typecov": "type-coverage",
"vercel-build": "vite build",
"vercel-build": "vite build docs --emptyOutDir",
"version": "changeset version && yarn --no-immutable"
},
"devDependencies": {
Expand Down

0 comments on commit 5511ce1

Please sign in to comment.