Remove compressing, choose html mode in grunt

This commit is contained in:
Vit Brunner
2015-03-09 22:18:36 +01:00
parent fe53b64402
commit bb2164c715
3 changed files with 7 additions and 32 deletions
+1 -29
View File
@@ -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'
-1
View File
@@ -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",
+6 -2
View File
@@ -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")