diff --git a/Gruntfile.js b/Gruntfile.js index f68d9862..ec465731 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -228,6 +228,20 @@ module.exports = function(grunt) { // src/index.html should already have been moved by the includereplace task {src: ['dest/tmp/index.html'], dest: 'dest/prod/piskelapp-partials/main-partial.html'} ] + }, + // remove the fake header from the desktop build + desktop: { + options: { + patterns: [{ + match: /(?:.|[\r\n])*/, + replacement: "", + description : "Remove everything between standalone-start & standalone-end" + } + ] + }, + files: [ + {src: ['dest/prod/index.html'], dest: 'dest/prod/index.html'} + ] } }, @@ -314,15 +328,15 @@ module.exports = function(grunt) { grunt.registerTask('build-index.html', ['includereplace']); grunt.registerTask('merge-statics', ['concat:js', 'concat:css', 'uglify']); - grunt.registerTask('build', ['clean:prod', 'sprite', 'merge-statics', 'build-index.html', 'replace', 'copy:prod']); + grunt.registerTask('build', ['clean:prod', 'sprite', 'merge-statics', 'build-index.html', 'replace:mainPartial', 'copy:prod']); grunt.registerTask('build-dev', ['clean:dev', 'sprite', 'build-index.html', 'copy:dev']); // Validate & Build grunt.registerTask('default', ['lint', 'build']); // Build stand alone app with nodewebkit - grunt.registerTask('desktop', ['clean:desktop', 'default', 'nwjs:windows']); - grunt.registerTask('desktop-mac', ['clean:desktop', 'default', 'nwjs:macos']); + grunt.registerTask('desktop', ['clean:desktop', 'default', 'replace:desktop', 'nwjs:windows']); + grunt.registerTask('desktop-mac', ['clean:desktop', 'default', 'replace:desktop', 'nwjs:macos']); // Start webserver and watch for changes grunt.registerTask('serve', ['build', 'connect:prod', 'open:prod', 'watch:prod']); diff --git a/src/index.html b/src/index.html index 31e36ca9..d0f5f478 100644 --- a/src/index.html +++ b/src/index.html @@ -22,7 +22,9 @@ color:white;"> Loading Piskel ... + @@include('templates/debug-header.html', {}) +