c4f4b89a by bootflat

support sass 3.4.9, modify gruntfile.js and package.json, min html

1 parent be07dd75
......@@ -114,6 +114,121 @@ module.exports = function(grunt) {
src: '*.html'
}
},
htmlmin: {
dist: {
options: {
removeComments: true,
collapseWhitespace: true,
removeEmptyAttributes: true,
removeCommentsFromCDATA: true,
removeRedundantAttributes: true,
collapseBooleanAttributes: true
},
files: {
// Destination : Source
'./htmlmin/index.html': './index.html',
'./htmlmin/getting-started.html': './getting-started.html',
'./htmlmin/free-psd.html': './free-psd.html',
'./htmlmin/documentation.html': './documentation.html',
'./htmlmin/color-picker.html': './color-picker.html',
'./htmlmin/color-picker-blue.html': './color-picker-blue.html',
'./htmlmin/color-picker-gray.html': './color-picker-gray.html',
'./htmlmin/color-picker-green.html': './color-picker-green.html',
'./htmlmin/color-picker-pink.html': './color-picker-pink.html',
'./htmlmin/color-picker-purple.html': './color-picker-purple.html',
'./htmlmin/color-picker-red.html': './color-picker-red.html',
'./htmlmin/color-picker-yellow.html': './color-picker-yellow.html'
}
}
},
jshint: {
/*
Note:
In case there is a /release/ directory found, we don't want to lint that
so we use the ! (bang) operator to ignore the specified directory
*/
files: ['Gruntfile.js', 'js/application.js'],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true,
globals: {
// AMD
module: true,
require: true,
requirejs: true,
define: true,
// Environments
console: true,
// General Purpose Libraries
$: true,
jQuery: true,
// Testing
sinon: true,
describe: true,
it: true,
expect: true,
beforeEach: true,
afterEach: true
}
}
},
imagemin: {
png: {
options: {
optimizationLevel: 7
},
files: [
{
expand: true,
cwd: './img/',
src: ['**/*.png'],
dest: './img/compressed/',
ext: '.png'
}
]
},
gif: {
options: {
optimizationLevel: 3
},
files: [
{
expand: true,
cwd: './img/',
src: ['**/*.gif'],
dest: './img/compressed/',
ext: '.gif'
}
]
},
jpg: {
options: {
progressive: true
},
files: [
{
expand: true,
cwd: './img/',
src: ['**/*.jpg'],
dest: './img/compressed/',
ext: '.jpg'
}
]
}
},
sed: {
versionNumber: {
pattern: (function () {
......@@ -131,11 +246,16 @@ module.exports = function(grunt) {
require('time-grunt')(grunt);
grunt.registerTask('task-css', ['sass', 'csscomb', 'cssmin']);
grunt.registerTask('task-html', ['htmlmin']);
grunt.registerTask('task-js', ['uglify']);
grunt.registerTask('task', ['clean', 'task-css', 'task-js']);
grunt.registerTask('task-imagemin', ['imagemin']);
grunt.registerTask('task', ['clean', 'task-css', 'task-js','task-imagemin']);
grunt.registerTask('build', ['task']);
grunt.registerTask('default', ['task']);
grunt.registerTask('test', ['task', 'csslint', 'validation']);
grunt.registerTask('check-call', ['csslint', 'validation', 'jshint']);
grunt.registerTask('check-css', ['csslint']);
grunt.registerTask('check-html', ['validation']);
grunt.registerTask('check-js', ['jshint']);
// Version numbering task.
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
......
......@@ -13,7 +13,7 @@
BOOTFLAT is an open source Flat UI KIT based on Bootstrap 3.3.0 CSS framework. It provides a faster, easier and less repetitive way for web developers to create elegant web apps.
Bootflat is built on the foundations of Bootstrap, visioned in a stunning flat design. Bootstrap itself is a trusted, reliable and proven tool for developers. Built with `Sass 3.3.9`.
Bootflat is built on the foundations of Bootstrap, visioned in a stunning flat design. Bootstrap itself is a trusted, reliable and proven tool for developers. Built with `Sass 3.4.9`.
Bootflat is compatible with the following browsers: `IE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome`.
......
This diff could not be displayed because it is too large.
......@@ -3,7 +3,7 @@
"private": false,
"version": "2.0.4",
"description": "BOOTFLAT is an open source Flat UI KIT based on Bootstrap 3.3.0 CSS framework. It provides a faster, easier and less repetitive way for web developers to create elegant web apps.",
"author":"Flathemes <info@flathemes.com>",
"author": "Flathemes <info@flathemes.com>",
"homepage": "http://bootflat.github.com/",
"keywords": [
"mobile",
......@@ -20,21 +20,24 @@
"url": "https://github.com/bootflat/bootflat.github.io/issues"
},
"license": "MIT",
"repository" : {
"type" : "git",
"url" : "https://github.com/bootflat/bootflat.github.io.git"
"repository": {
"type": "git",
"url": "https://github.com/bootflat/bootflat.github.io.git"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-csslint": "~0.2.0",
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-csslint": "^0.3.1",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-htmlmin": "^0.3.0",
"grunt-contrib-imagemin": "^0.9.2",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-sass": "~0.7.3",
"grunt-csscomb": "~2.0.1",
"grunt-html-validation": "~0.1.15",
"grunt-sed": "~0.1.1",
"load-grunt-tasks": "~0.4.0",
"time-grunt": "~0.3.1"
"grunt-contrib-uglify": "~0.4.0",
"grunt-csscomb": "^3.0.0",
"grunt-html-validation": "^0.1.18",
"grunt-sed": "^0.1.1",
"load-grunt-tasks": "^1.0.0",
"time-grunt": "^1.0.0"
}
}
......