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",
|
"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",
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user