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:
parent
b285219a58
commit
85a6a80722
50 changed files with 8974 additions and 599 deletions
20
gruntfile.js
20
gruntfile.js
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue