Build files for backend
This commit is contained in:
7
Makefile
Normal file
7
Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
all: frontend backend
|
||||
|
||||
frontend:
|
||||
yarn dev-build
|
||||
|
||||
backend:
|
||||
go build -o ./dist/zabbix-plugin_linux_amd64 ./pkg
|
||||
@@ -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",
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user