Build files for backend

This commit is contained in:
Alexander Zobnin
2019-09-24 19:29:18 +03:00
parent 3fccec1bb8
commit 0938d06487
3 changed files with 11 additions and 3 deletions

7
Makefile Normal file
View File

@@ -0,0 +1,7 @@
all: frontend backend
frontend:
yarn dev-build
backend:
go build -o ./dist/zabbix-plugin_linux_amd64 ./pkg

View File

@@ -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",

View File

@@ -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';