From 0938d0648726d83891395a41f71b5a671d31e1f1 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 24 Sep 2019 19:29:18 +0300 Subject: [PATCH] Build files for backend --- Makefile | 7 +++++++ package.json | 5 +++-- webpack/webpack.dev.conf.js | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c27c5f0 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: frontend backend + +frontend: + yarn dev-build + +backend: + go build -o ./dist/zabbix-plugin_linux_amd64 ./pkg diff --git a/package.json b/package.json index f44af40..6404022 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,9 @@ "description": "Zabbix plugin for Grafana", "scripts": { "build": "webpack --config webpack/webpack.prod.conf.js --progress --colors", - "dev": "webpack --config webpack/webpack.dev.conf.js --progress --colors", - "watch": "webpack --config webpack/webpack.dev.conf.js --progress --colors", + "dev": "webpack --config webpack/webpack.dev.conf.js --watch --progress --colors", + "dev-build": "webpack --config webpack/webpack.dev.conf.js", + "watch": "webpack --config webpack/webpack.dev.conf.js --watch --progress --colors", "test": "jest", "jest": "jest --notify --watch", "codecov": "jest --coverage && codecov", diff --git a/webpack/webpack.dev.conf.js b/webpack/webpack.dev.conf.js index f7f48ce..b6a630e 100644 --- a/webpack/webpack.dev.conf.js +++ b/webpack/webpack.dev.conf.js @@ -1,7 +1,7 @@ const baseWebpackConfig = require('./webpack.base.conf'); var conf = baseWebpackConfig; -conf.watch = true; +// conf.watch = true; conf.mode = 'development'; conf.devtool = 'source-map';