Skip to content

Commit

Permalink
chore: examples should restart in dev if code changed
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini committed Apr 18, 2024
1 parent 4021e94 commit b8d0e35
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
11 changes: 11 additions & 0 deletions examples/with-vite/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"watch": [
"tailwind.config.js",
"src/**/*.*",
"../../packages/ui-components/src/**/*.*",
"../../packages/ui-components/lib/**/*.*",
"../../packages/ui-styles/src/**/*.*",
"../../packages/ui-form/src/**/*.*",
"../../packages/ui-icons/src/**/*.*"
]
}
4 changes: 2 additions & 2 deletions examples/with-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"type": "module",
"scripts": {
"clean": "rimraf dist",
"dev": "vite",
"dev": "nodemon",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"start": "vite"
},
"dependencies": {
"@versini/ui-components": "workspace:../../packages/ui-components",
Expand Down
11 changes: 11 additions & 0 deletions examples/with-webpack/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"watch": [
"tailwind.config.js",
"src/**/*.*",
"../../packages/ui-components/src/**/*.*",
"../../packages/ui-components/lib/**/*.*",
"../../packages/ui-styles/src/**/*.*",
"../../packages/ui-form/src/**/*.*",
"../../packages/ui-icons/src/**/*.*"
]
}
5 changes: 3 additions & 2 deletions examples/with-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"clean": "rimraf dist",
"build:js": "webpack --mode=production",
"build": "npm run clean && npm run build:js",
"dev": "webpack serve --mode=development",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
"dev": "nodemon",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"start": "webpack serve --mode=development"
},
"dependencies": {
"@versini/ui-components": "workspace:../../packages/ui-components",
Expand Down

0 comments on commit b8d0e35

Please sign in to comment.