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", "description": "Zabbix plugin for Grafana",
"scripts": { "scripts": {
"build": "webpack --config webpack/webpack.prod.conf.js --progress --colors", "build": "webpack --config webpack/webpack.prod.conf.js --progress --colors",
"dev": "webpack --config webpack/webpack.dev.conf.js --progress --colors", "dev": "webpack --config webpack/webpack.dev.conf.js --watch --progress --colors",
"watch": "webpack --config webpack/webpack.dev.conf.js --progress --colors", "dev-build": "webpack --config webpack/webpack.dev.conf.js",
"watch": "webpack --config webpack/webpack.dev.conf.js --watch --progress --colors",
"test": "jest", "test": "jest",
"jest": "jest --notify --watch", "jest": "jest --notify --watch",
"codecov": "jest --coverage && codecov", "codecov": "jest --coverage && codecov",

View File

@@ -1,7 +1,7 @@
const baseWebpackConfig = require('./webpack.base.conf'); const baseWebpackConfig = require('./webpack.base.conf');
var conf = baseWebpackConfig; var conf = baseWebpackConfig;
conf.watch = true; // conf.watch = true;
conf.mode = 'development'; conf.mode = 'development';
conf.devtool = 'source-map'; conf.devtool = 'source-map';