Added a dev mode with watchers

This commit is contained in:
2023-09-16 12:16:41 +02:00
parent fdf18f1196
commit 4be04f7115
4 changed files with 722 additions and 0 deletions

View File

@@ -5,12 +5,17 @@
"type": "module",
"main": "index.js",
"scripts": {
"dev": "concurrently --kill-others -n Build,Serve -c auto \"npm run watch-build\" \"npm run serve\"",
"watch-build": "nodemon --watch notes --watch build.js --watch markdown.js --watch templates -e js,md,html,css build.js",
"build": "node build.js",
"init": "npm install -g firebase-tools && firebase login",
"serve": "serve .dist"
},
"author": "",
"license": "ISC",
"devDependencies": {
"concurrently": "^8.2.1",
"nodemon": "^3.0.1",
"serve": "^14.2.1"
},
"dependencies": {