Skip to content

Commit

Permalink
added live reload server configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
OurCodeBase committed Oct 23, 2024
1 parent cce10b8 commit 82dd4bf
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 20 deletions.
6 changes: 6 additions & 0 deletions tailwind/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"watch": ["views", "public", "app.js"],
"ext": "js,ejs",
"ignore": ["node_modules"],
"exec": "node app.js"
}
5 changes: 2 additions & 3 deletions tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"version": "1.0.0",
"main": "app.js",
"scripts": {
"server": "nodemon app.js",
"sync": "browser-sync start --config sync.js",
"server": "nodemon",
"tailwind": "npx tailwindcss -i public/css/style.css -o public/css/tailwind.css --watch",
"dev": "run-p -c -r server sync tailwind"
"dev": "run-p -c -r server tailwind"
},
"dependencies": {
"ejs": "^3.1.10",
Expand Down
7 changes: 0 additions & 7 deletions tailwind/sync.js

This file was deleted.

6 changes: 6 additions & 0 deletions template/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"watch": ["views", "public", "app.js"],
"ext": "js,ejs",
"ignore": ["node_modules"],
"exec": "node app.js"
}
5 changes: 2 additions & 3 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"version": "1.0.0",
"main": "app.js",
"scripts": {
"server": "nodemon app.js",
"sync": "browser-sync start --config sync.js",
"dev": "run-p -c -r server sync"
"server": "nodemon",
"dev": "run-p -c -r server"
},
"dependencies": {
"ejs": "^3.1.10",
Expand Down
7 changes: 0 additions & 7 deletions template/sync.js

This file was deleted.

0 comments on commit 82dd4bf

Please sign in to comment.