added banners - minified css

This commit is contained in:
David Miller 2014-09-11 02:29:40 -04:00
parent 2f3ed586a7
commit b9e255a64a
5 changed files with 814 additions and 63 deletions

View File

@ -9,8 +9,7 @@ module.exports = function(grunt) {
dest: 'dist/', dest: 'dist/',
}, },
jquery: { jquery: {
files: [ files: [{
{
expand: true, expand: true,
cwd: 'bower_components/jquery/dist/', cwd: 'bower_components/jquery/dist/',
src: [ src: [
@ -18,12 +17,10 @@ module.exports = function(grunt) {
'jquery.js', 'jquery.js',
], ],
dest: 'dist/js/' dest: 'dist/js/'
}, }, ]
]
}, },
bootstrap: { bootstrap: {
files: [ files: [{
{
expand: true, expand: true,
cwd: 'bower_components/bootstrap/dist/', cwd: 'bower_components/bootstrap/dist/',
src: [ src: [
@ -33,12 +30,10 @@ module.exports = function(grunt) {
'css/bootstrap.min.css' 'css/bootstrap.min.css'
], ],
dest: 'dist/' dest: 'dist/'
}, }, ]
]
}, },
glyphicons: { glyphicons: {
files: [ files: [{
{
expand: true, expand: true,
cwd: 'bower_components/bootstrap/', cwd: 'bower_components/bootstrap/',
src: [ src: [
@ -48,46 +43,54 @@ module.exports = function(grunt) {
'fonts/glyphicons-halflings-regular.woff', 'fonts/glyphicons-halflings-regular.woff',
], ],
dest: 'dist/' dest: 'dist/'
}, }, ]
]
}, },
}, },
less: { less: {
development: { expanded: {
options: { options: {
paths: ["css"] paths: ["css"]
}, },
files: { files: {
"dist/css/<%= pkg.name %>.css": "less/<%= pkg.name %>.less" "dist/css/<%= pkg.slug %>.css": "less/<%= pkg.slug %>.less"
} }
}, },
production: { minified: {
options: { options: {
paths: ["css"], paths: ["css"],
cleancss: true cleancss: true
}, },
files: { files: {
"dist/css/<%= pkg.name %>.css": "less/<%= pkg.name %>.less" "dist/css/<%= pkg.slug %>.min.css": "less/<%= pkg.slug %>.less"
}
}
},
banner: '/*!\n' +
' * <%= pkg.name %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
' */\n',
usebanner: {
dist: {
options: {
position: 'top',
banner: '<%= banner %>'
},
files: {
src: ['dist/css/<%= pkg.slug %>.css', 'dist/css/<%= pkg.slug %>.min.css', 'dist/js/<%= pkg.slug %>.js']
} }
} }
}, },
watch: { watch: {
scripts: { less: {
files: ['js/**'],
tasks: ['concat'],
options: {
spawn: false,
},
},
css: {
files: ['less/*.less'], files: ['less/*.less'],
tasks: ['less'], tasks: ['less'],
options: { options: {
spawn: false, spawn: false,
} }
}, },
html: { copy: {
files: ['*.html', 'mail/**'], files: ['*.html', 'mail/**', 'js/**', 'img/**'],
tasks: ['copy'], tasks: ['copy'],
options: { options: {
spawn: false, spawn: false,
@ -99,10 +102,10 @@ module.exports = function(grunt) {
// Load the plugins. // Load the plugins.
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-banner');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s). // Default task(s).
grunt.registerTask('default', ['copy', 'less']); grunt.registerTask('default', ['copy', 'less', 'usebanner']);
grunt.registerTask('less-compile', ['less']);
}; };

736
dist/css/agency.css vendored

File diff suppressed because one or more lines are too long

6
dist/js/agency.js vendored
View File

@ -1,3 +1,9 @@
/*!
* Start Bootstrap - Agency v1.0.0 (http://startbootstrap.com)
* Copyright 2014 Start Bootstrap
* Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
*/
/*! /*!
* Start Bootstrap - Agnecy Bootstrap Theme (http://startbootstrap.com) * Start Bootstrap - Agnecy Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0. * Code licensed under the Apache License v2.0.

View File

@ -15,7 +15,7 @@
<link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS --> <!-- Custom CSS -->
<link href="css/agency.css" rel="stylesheet"> <link href="css/agency.min.css" rel="stylesheet">
<!-- Custom Fonts --> <!-- Custom Fonts -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">

View File

@ -1,10 +1,18 @@
{ {
"name": "agency", "name": "Start Bootstrap - Agency",
"slug": "agency",
"version": "1.0.0", "version": "1.0.0",
"homepage": "http://startbootstrap.com",
"author": "Start Bootstrap",
"license": {
"type": "Apache 2.0",
"url": "https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE"
},
"devDependencies": { "devDependencies": {
"grunt": "~0.4.5", "grunt": "~0.4.5",
"grunt-contrib-copy": "~0.5.0", "grunt-contrib-copy": "~0.5.0",
"grunt-contrib-less": "~0.11.4", "grunt-contrib-less": "~0.11.4",
"grunt-contrib-watch": "~0.6.1" "grunt-contrib-watch": "~0.6.1",
"grunt-banner": "~0.2.3"
} }
} }