Skip to content

Commit

Permalink
Updating distribution build process
Browse files Browse the repository at this point in the history
  • Loading branch information
darsain committed Dec 17, 2013
1 parent 35197f7 commit 3854d4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Gruntfile.js
Expand Up @@ -17,7 +17,7 @@ module.exports = function(grunt) {
' * <%= pkg.licenses[0].url %>\n' +
' */\n',
bannerLight: '/*! <%= pkg.name %> <%= pkg.version %>' +
' - <%= grunt.template.today("dS mmm yyyy") %> | <%= pkg.repository.homepage %> */',
' - <%= grunt.template.today("dS mmm yyyy") %> | <%= pkg.repository.homepage %> */\n',
},

// JSHint the code.
Expand All @@ -44,13 +44,20 @@ module.exports = function(grunt) {
src: 'tmp/<%= pkg.name %>.js',
dest: 'tmp/<%= pkg.name %>.js',
},
style: {
options: {
banner: '<%= meta.bannerLight %>'
},
src: 'tmp/<%= pkg.name %>.css',
dest: 'tmp/<%= pkg.name %>.css',
},
},

// Minify files.
uglify: {
production: {
options: {
banner: '<%= meta.bannerLight %>\n',
banner: '<%= meta.bannerLight %>',
report: 'gzip',
},
src: 'tmp/<%= pkg.name %>.js',
Expand Down Expand Up @@ -175,6 +182,7 @@ module.exports = function(grunt) {
grunt.task.run('componentbuild:development');
grunt.task.run('concat:development');
// Distribution
grunt.task.run('concat:style');
grunt.task.run('copy:dist');
grunt.task.run('compress');
// Cleanup
Expand Down
1 change: 0 additions & 1 deletion tooltip.css
@@ -1,4 +1,3 @@
/* Tooltip */
.tooltip {
position: absolute;
padding: .8em 1em;
Expand Down

0 comments on commit 3854d4c

Please sign in to comment.