diff --git a/Gruntfile.js b/Gruntfile.js index 2eaa3787..c6ca7931 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -7,7 +7,7 @@ // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' -var VERSION = "0.2.0dev" +var VERSION = "0.2.0" module.exports = function (grunt) { @@ -234,7 +234,9 @@ module.exports = function (grunt) { { expand: true, cwd: '<%= yeoman.dist %>', - src: ['*.html', 'views/{,*/}*.html'], + src: ['*.html', + 'views/{,*/}*.html', + 'templates/{,*/}*.html'], dest: '<%= yeoman.dist %>' } ] @@ -271,6 +273,7 @@ module.exports = function (grunt) { '.htaccess', '*.html', 'views/{,*/}*.html', + 'templates/{,*/}*.html', 'images/{,*/}*.{webp}', 'fonts/*', 'sample-config.js' @@ -324,6 +327,13 @@ module.exports = function (grunt) { ] }, + uglify: { + options : { + beautify : true, + mangle : false + } + }, + compress: { build: { options: {archive: 'build/' + dist + '.zip', mode: 'zip'}, @@ -341,7 +351,7 @@ module.exports = function (grunt) { replace: { another_example: { - src: ['app/views/about.html'], + src: ['app/templates/about.html'], overwrite: true, replacements: [ { diff --git a/Makefile b/Makefile index 442ee98f..86a8ae10 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ vendor-bower-components: git add -f app/bower_components/bootstrap/dist/fonts +package: + grunt package + # Basic clean - build artifacts, backup files... clean: -grunt clean diff --git a/app/index.html b/app/index.html index 33a3af2a..29b3ad0b 100644 --- a/app/index.html +++ b/app/index.html @@ -15,8 +15,7 @@ - + diff --git a/app/templates/about.html b/app/templates/about.html index 10f13d76..3a86d3d2 100644 --- a/app/templates/about.html +++ b/app/templates/about.html @@ -4,7 +4,7 @@