diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 2cc6dd7..6aa0058 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -76,6 +76,7 @@ module.exports = (grunt) -> test_styles: [ 'bower_components/qunit/qunit/qunit.css' ] + html5mode: false min: false } @@ -125,33 +126,6 @@ module.exports = (grunt) -> grunt.initConfig { pkg: grunt.file.readJSON 'package.json' - compress: { - min: { - options: { - mode: 'zip' - archive: 'side-by-side.zip' - level: 9 - } - files: [ - { - src: [ - 'README.md' - '.htaccess' - 'index.html' - 'fonts/**' - 'partials/**' - 'scripts/all_min.js' - 'styles/all_min.css' - 'tests/**' - ] - cwd: 'build-min' - dest: 'side-by-side' - expand: true - } - ] - } - } - connect: { main: { options: { @@ -252,7 +226,6 @@ module.exports = (grunt) -> # Load tasks grunt.loadNpmTasks('grunt-contrib-coffee'); - grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-cssmin'); @@ -266,7 +239,6 @@ module.exports = (grunt) -> grunt.registerTask 'default', [ 'coffee:main', 'copy:main', 'jade:main', 'stylus:main' ] grunt.registerTask 'min', [ 'jade:min', 'copy:min', 'copy:min_fonts', 'copy:min_readme', 'uglify:min', 'cssmin:min' ] grunt.registerTask 'test', [ 'default', 'min', 'connect', 'qunit' ] - grunt.registerTask 'release', [ 'default', 'min', 'compress' ] grunt.registerTask 'serve', () -> grunt.task.run 'default' diff --git a/package.json b/package.json index f04eea2..ec03d8f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "grunt-cli": "0.1.x", "grunt-contrib-coffee": "0.12.x", "grunt-contrib-connect": "0.8.x", - "grunt-contrib-compress": "0.12.x", "grunt-contrib-copy": "0.7.x", "grunt-contrib-cssmin": "0.10.x", "grunt-contrib-jade": "0.13.x", diff --git a/source/index.html.jade b/source/index.html.jade index c9ac96f..46f0c5f 100644 --- a/source/index.html.jade +++ b/source/index.html.jade @@ -5,8 +5,12 @@ html(ng-app="sideBySide" ng-controller="AppController") title(ng-bind="title()") Side By Side viewer meta(charset="utf-8") link(rel="stylesheet", type="text/css", href="//fonts.googleapis.com/css?family=Noticia+Text:400,700,400italic,700italic") - script. - html5Mode = false; + if html5Mode == true + script. + html5Mode=true; + else + script. + html5Mode=false; if min == true link(rel="stylesheet", type="text/css", href="styles/all_min.css")