X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE-os%2FGruntfile.js;h=6bb51021e2a1892818b3e3eeac95f1bb3c90ebcf;hb=8d7a735c376e1468384b00186e49b73e86718fb0;hp=812fc80931d26a6a62c7ddd62912f79ff663eef3;hpb=b54df0ddd0c6a0372327c5aa3668e5a6458fcd64;p=portal.git diff --git a/ecomp-portal-FE-os/Gruntfile.js b/ecomp-portal-FE-os/Gruntfile.js index 812fc809..6bb51021 100644 --- a/ecomp-portal-FE-os/Gruntfile.js +++ b/ecomp-portal-FE-os/Gruntfile.js @@ -280,6 +280,7 @@ module.exports = function (grunt) { '<%= yeoman.dist %>/public/{,*/}*.css', '<%= yeoman.dist %>/public/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', '<%= yeoman.dist %>/public/assets/fonts/*', + '<%= yeoman.dist %>/public/assets/i18n/{,*/}*.{json}', '!<%= yeoman.dist %>/public/assets/images/tmp/*' ] } @@ -326,6 +327,16 @@ module.exports = function (grunt) { }] } }, + jsonmin: { + dist: { + files: [{ + expand: true, + cwd: '<%= yeoman.client %>/assets/i18n', + src: '{,*/}*.{json}', + dest: '<%= yeoman.dist %>/public/assets/i18n' + }] + } + }, svgmin: { dist: { @@ -405,6 +416,7 @@ module.exports = function (grunt) { 'bower_components/**/*', 'bower_components_external/**/*', 'assets/images/**/*', + 'assets/i18n/**/*', 'assets/fonts/**/*', 'index.html' ] @@ -413,6 +425,14 @@ module.exports = function (grunt) { cwd: '.tmp/images', dest: '<%= yeoman.dist %>/public/assets/images', src: ['generated/*'] + }, { + expand: true, + cwd: '.tmp/i18n', + dest: '<%= yeoman.dist %>/public/assets/i18n', + src: [ + 'CN.json', + 'EN.json' + ] }, { expand: true, dest: '<%= yeoman.dist %>',