Skip to content

Commit

Permalink
chore: add command to live-rebuild
Browse files Browse the repository at this point in the history
this is different from what the dev does, this build the dist and serves it at every change
  • Loading branch information
mirkobrombin committed Aug 31, 2024
1 parent 0b15905 commit 7011823
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"preview": "vite preview",
"generate-config": "node generate-config.js",
"start": "node server.js",
"publish": "pnpm generate-config && pnpm build && pnpm start"
"publish": "pnpm generate-config && pnpm build && pnpm start",
"build-live": "npm-run-all -p watch:build watch:start",
"watch:build": "nodemon --watch src --ext js,ts,vue,css --exec \"npm run build\"",
"watch:start": "nodemon --watch dist --exec \"npm run start\""
},
"dependencies": {
"@babel/types": "^7.24.5",
Expand All @@ -34,11 +37,12 @@
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19",
"nodemon": "^3.1.4",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vue-tsc": "^2.0.19"
}
}
}

0 comments on commit 7011823

Please sign in to comment.