From 537f7c0a01d95df32f64cf4f9e3c6ed8bfcd1a01 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 27 Nov 2018 09:43:28 -0800 Subject: [PATCH] Fixes gin commands --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7334b4c7..5c08cae9 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,12 @@ "description": "", "main": "index.js", "scripts": { - "start": "DOCKER_API_VERSION=1.38 concurrently 'go run main.go' 'npm run watch-assets'", + "prestart": "npm run clean", + "start": "DOCKER_API_VERSION=1.38 concurrently 'gin -a 8080 -i run main.go' 'npm run watch-assets'", "watch-assets": "parcel watch --public-url '__BASE__' assets/index.html -d static", "prebuild": "npm run clean", "build": "parcel build --no-source-maps --public-url '__BASE__' assets/index.html -d static", - "clean": "rm -rf static", + "clean": "rm -rf static/ a_main-packr.go", "release": "goreleaser --rm-dist" }, "repository": {