added banners - minified css
This commit is contained in:
parent
2f3ed586a7
commit
b9e255a64a
109
Gruntfile.js
109
Gruntfile.js
@ -9,85 +9,88 @@ module.exports = function(grunt) {
|
||||
dest: 'dist/',
|
||||
},
|
||||
jquery: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'bower_components/jquery/dist/',
|
||||
src: [
|
||||
'jquery.min.js',
|
||||
'jquery.js',
|
||||
],
|
||||
dest: 'dist/js/'
|
||||
},
|
||||
]
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'bower_components/jquery/dist/',
|
||||
src: [
|
||||
'jquery.min.js',
|
||||
'jquery.js',
|
||||
],
|
||||
dest: 'dist/js/'
|
||||
}, ]
|
||||
},
|
||||
bootstrap: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'bower_components/bootstrap/dist/',
|
||||
src: [
|
||||
'js/bootstrap.js',
|
||||
'js/bootstrap.min.js',
|
||||
'css/bootstrap.css',
|
||||
'css/bootstrap.min.css'
|
||||
],
|
||||
dest: 'dist/'
|
||||
},
|
||||
]
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'bower_components/bootstrap/dist/',
|
||||
src: [
|
||||
'js/bootstrap.js',
|
||||
'js/bootstrap.min.js',
|
||||
'css/bootstrap.css',
|
||||
'css/bootstrap.min.css'
|
||||
],
|
||||
dest: 'dist/'
|
||||
}, ]
|
||||
},
|
||||
glyphicons: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'bower_components/bootstrap/',
|
||||
src: [
|
||||
'fonts/glyphicons-halflings-regular.eot',
|
||||
'fonts/glyphicons-halflings-regular.svg',
|
||||
'fonts/glyphicons-halflings-regular.ttf',
|
||||
'fonts/glyphicons-halflings-regular.woff',
|
||||
],
|
||||
dest: 'dist/'
|
||||
},
|
||||
]
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'bower_components/bootstrap/',
|
||||
src: [
|
||||
'fonts/glyphicons-halflings-regular.eot',
|
||||
'fonts/glyphicons-halflings-regular.svg',
|
||||
'fonts/glyphicons-halflings-regular.ttf',
|
||||
'fonts/glyphicons-halflings-regular.woff',
|
||||
],
|
||||
dest: 'dist/'
|
||||
}, ]
|
||||
},
|
||||
},
|
||||
less: {
|
||||
development: {
|
||||
expanded: {
|
||||
options: {
|
||||
paths: ["css"]
|
||||
},
|
||||
files: {
|
||||
"dist/css/<%= pkg.name %>.css": "less/<%= pkg.name %>.less"
|
||||
"dist/css/<%= pkg.slug %>.css": "less/<%= pkg.slug %>.less"
|
||||
}
|
||||
},
|
||||
production: {
|
||||
minified: {
|
||||
options: {
|
||||
paths: ["css"],
|
||||
cleancss: true
|
||||
},
|
||||
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: {
|
||||
scripts: {
|
||||
files: ['js/**'],
|
||||
tasks: ['concat'],
|
||||
options: {
|
||||
spawn: false,
|
||||
},
|
||||
},
|
||||
css: {
|
||||
less: {
|
||||
files: ['less/*.less'],
|
||||
tasks: ['less'],
|
||||
options: {
|
||||
spawn: false,
|
||||
}
|
||||
},
|
||||
html: {
|
||||
files: ['*.html', 'mail/**'],
|
||||
copy: {
|
||||
files: ['*.html', 'mail/**', 'js/**', 'img/**'],
|
||||
tasks: ['copy'],
|
||||
options: {
|
||||
spawn: false,
|
||||
@ -99,10 +102,10 @@ module.exports = function(grunt) {
|
||||
// Load the plugins.
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
grunt.loadNpmTasks('grunt-banner');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['copy', 'less']);
|
||||
grunt.registerTask('less-compile', ['less']);
|
||||
grunt.registerTask('default', ['copy', 'less', 'usebanner']);
|
||||
|
||||
};
|
||||
|
736
dist/css/agency.css
vendored
736
dist/css/agency.css
vendored
File diff suppressed because one or more lines are too long
6
dist/js/agency.js
vendored
6
dist/js/agency.js
vendored
@ -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)
|
||||
* Code licensed under the Apache License v2.0.
|
||||
|
@ -15,7 +15,7 @@
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link href="css/agency.css" rel="stylesheet">
|
||||
<link href="css/agency.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom Fonts -->
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
||||
|
24
package.json
24
package.json
@ -1,10 +1,18 @@
|
||||
{
|
||||
"name": "agency",
|
||||
"version": "1.0.0",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.5",
|
||||
"grunt-contrib-copy": "~0.5.0",
|
||||
"grunt-contrib-less": "~0.11.4",
|
||||
"grunt-contrib-watch": "~0.6.1"
|
||||
}
|
||||
"name": "Start Bootstrap - Agency",
|
||||
"slug": "agency",
|
||||
"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": {
|
||||
"grunt": "~0.4.5",
|
||||
"grunt-contrib-copy": "~0.5.0",
|
||||
"grunt-contrib-less": "~0.11.4",
|
||||
"grunt-contrib-watch": "~0.6.1",
|
||||
"grunt-banner": "~0.2.3"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user