1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(app): introduce react configurations [EE-1809] (#5953)

This commit is contained in:
Chaim Lev-Ari 2021-11-03 12:41:59 +02:00 committed by GitHub
parent b285219a58
commit 85a6a80722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 8974 additions and 599 deletions

View file

@ -56,7 +56,14 @@ module.exports = function (grunt) {
});
grunt.task.registerTask('devopsbuild', 'devopsbuild:<platform>:<arch>:<env>', function (platform, a = arch, env = 'prod') {
grunt.task.run([`env:${env}`, 'clean:all', `shell:build_binary_azuredevops:${platform}:${a}`, `download_binaries:${platform}:${a}`, `webpack:${env}`]);
grunt.task.run([
`env:${env}`,
'clean:all',
`shell:build_binary_azuredevops:${platform}:${a}`,
`download_binaries:${platform}:${a}`,
`webpack:${env}`,
`shell:storybook:${env}`,
]);
});
grunt.task.registerTask('download_binaries', 'download_binaries:<platform>:<arch>', function (platform = 'linux', a = arch) {
@ -109,8 +116,19 @@ gruntConfig.shell = {
run_container: { command: shell_run_container },
run_localserver: { command: shell_run_localserver, options: { async: true } },
install_yarndeps: { command: shell_install_yarndeps },
storybook: { command: shell_storybook },
};
function shell_storybook(env) {
if (env === 'production') {
return '';
}
return `
yarn build-storybook
`;
}
function shell_build_binary(platform, arch) {
const binfile = 'dist/portainer';
if (platform === 'linux') {