1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

chore(build): set node_env to testing (#5410)

This commit is contained in:
Chaim Lev-Ari 2021-09-30 12:00:54 +03:00 committed by GitHub
parent 0cb5656db6
commit 7fb2e44146
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 5 deletions

View file

@ -2,6 +2,7 @@ var os = require('os');
var loadGruntTasks = require('load-grunt-tasks');
const webpackDevConfig = require('./webpack/webpack.develop');
const webpackProdConfig = require('./webpack/webpack.production');
const webpackTestingConfig = require('./webpack/webpack.testing');
var arch = os.arch();
if (arch === 'x64') arch = 'amd64';
@ -78,7 +79,7 @@ module.exports = function (grunt) {
]);
});
grunt.task.registerTask('devopsbuild', 'devopsbuild:<platform>:<arch>:env', function (p, a, env = 'prod') {
grunt.task.registerTask('devopsbuild', 'devopsbuild:<platform>:<arch>:<env>', function (p, a, env = 'prod') {
grunt.task.run([
'config:prod',
`env:${env}`,
@ -90,7 +91,7 @@ module.exports = function (grunt) {
'shell:download_helm_binary:' + p + ':' + a,
'shell:download_kompose_binary:' + p + ':' + a,
'shell:download_kubectl_binary:' + p + ':' + a,
'webpack:prod',
`webpack:${env}`,
]);
});
};
@ -114,6 +115,7 @@ gruntfile_cfg.webpack = {
dev: webpackDevConfig,
devWatch: Object.assign({ watch: true }, webpackDevConfig),
prod: webpackProdConfig,
testing: webpackTestingConfig,
};
gruntfile_cfg.config = {