diff --git a/Gruntfile.js b/Gruntfile.js
index 440e56d..68e7cb0 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -3,9 +3,24 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
+ concat: {
+ main: {
+ src: [
+ 'js/plugins/*.js',
+ 'js/<%= pkg.slug %>.js'
+ ],
+ dest: 'dist/js/<%= pkg.slug %>.js',
+ }
+ },
+ uglify: {
+ main: {
+ src: 'dist/js/<%= pkg.slug %>.js',
+ dest: 'dist/js/<%= pkg.slug %>.min.js'
+ }
+ },
copy: {
main: {
- src: ['*.html', 'mail/**', 'js/**', 'img/**'],
+ src: ['*.html', 'mail/**', 'img/**'],
dest: 'dist/',
},
jquery: {
@@ -77,21 +92,28 @@ module.exports = function(grunt) {
banner: '<%= banner %>'
},
files: {
- src: ['dist/css/<%= pkg.slug %>.css', 'dist/css/<%= pkg.slug %>.min.css', 'dist/js/<%= pkg.slug %>.js']
+ src: ['dist/css/<%= pkg.slug %>.css', 'dist/css/<%= pkg.slug %>.min.css', 'dist/js/<%= pkg.slug %>.js', 'dist/js/<%= pkg.slug %>.min.js']
}
}
},
watch: {
- less: {
- files: ['less/*.less'],
- tasks: ['less'],
+ scripts: {
+ files: ['js/*.js', 'js/**/*.js'],
+ tasks: ['concat', 'uglify'],
+ options: {
+ spawn: false,
+ },
+ },
+ copy: {
+ files: ['*.html', 'mail/**', 'img/**'],
+ tasks: ['copy'],
options: {
spawn: false,
}
},
- copy: {
- files: ['*.html', 'mail/**', 'js/**', 'img/**'],
- tasks: ['copy'],
+ less: {
+ files: ['less/*.less'],
+ tasks: ['less'],
options: {
spawn: false,
}
@@ -100,12 +122,14 @@ module.exports = function(grunt) {
});
// Load the plugins.
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
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', 'usebanner']);
+ grunt.registerTask('default', ['concat', 'uglify', 'copy', 'less', 'usebanner']);
};
diff --git a/dist/css/agency.css b/dist/css/agency.css
index 74002ae..ed8b8ea 100644
--- a/dist/css/agency.css
+++ b/dist/css/agency.css
@@ -1,5 +1,5 @@
/*!
- * Agency v1.0.0 (http://startbootstrap.com)
+ * Agency v0.0.1 (http://startbootstrap.com)
* Copyright 2014 Start Bootstrap
* Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
*/
diff --git a/dist/css/agency.min.css b/dist/css/agency.min.css
index f609b20..3741dcb 100644
--- a/dist/css/agency.min.css
+++ b/dist/css/agency.min.css
@@ -1,5 +1,5 @@
/*!
- * Agency v1.0.0 (http://startbootstrap.com)
+ * Agency v0.0.1 (http://startbootstrap.com)
* Copyright 2014 Start Bootstrap
* Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
*/
diff --git a/dist/index.html b/dist/index.html
index 33c653e..2fab33d 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -647,15 +647,9 @@
-
-
-
-
-
-
-
+