Skip to content

Commit

Permalink
Merge pull request #31 from MITLibraries/matt/feature/29_grunt_revision
Browse files Browse the repository at this point in the history
Adds git revision step to build process. Closes #29
  • Loading branch information
matt-bernhardt authored Jul 13, 2016
2 parents b774556 + 8d3fcae commit 1fa1127
Show file tree
Hide file tree
Showing 10 changed files with 744 additions and 678 deletions.
15 changes: 11 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ module.exports = function(grunt) {

require('load-grunt-tasks')(grunt);

// Default Task is basically a rebuild
grunt.registerTask('default', ['sass', 'autoprefixer', 'cssmin']);

};
// There are basically three phases of building the production theme:
// 1) Javascript preparation (concatenating and uglifying scripts)
// (coming soon)
// 2) Stylesheet preparation (SASS, autoprefixing, and minification)
grunt.registerTask('styles', ['sass', 'autoprefixer', 'cssmin']);
// 3) Appending the most recent git commit to the theme version
grunt.registerTask('release', ['gitinfo', 'replace']);
// The default task performs all three phases.
grunt.registerTask('default', ['styles', 'release']);

};
Loading

0 comments on commit 1fa1127

Please sign in to comment.