From 518bd58c5aba1a6eaa645074f3ae2d780c45f6dc Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 24 May 2021 10:49:41 +0200 Subject: Restructured the whole project & added Nodemon and Concurrently --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 8db9404..6248a10 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,10 @@ "description": "A simple git web-frontend made with nodejs", "main": "dist/app.html", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "dev": "parcel watch --no-source-maps src/app.html", - "build": "parcel build --no-source-maps src/app.html" + "start": "node src/app.js", + "dev": "concurrently \"parcel watch --no-source-maps src/frontend/app.html\" \"nodemon src/app.js\"", + "build": "parcel build --no-source-maps src/frontend/app.html", + "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", @@ -20,6 +21,7 @@ "homepage": "https://gitlab.com/HampusMat/nodejs-git-frontend#readme", "dependencies": { "bootstrap": "^5.0.0-beta3", + "concurrently": "^6.1.0", "date-fns": "^2.21.3", "express": "^5.0.0-alpha.8", "highlight.js": "^10.4.1", @@ -34,6 +36,7 @@ "@parcel/transformer-vue": "^2.0.0-beta.2", "eslint": "^7.27.0", "eslint-plugin-vue": "^7.9.0", + "nodemon": "^2.0.7", "parcel": "^2.0.0-beta.2" } } -- cgit v1.2.3-18-g5258