Skip to content

Commit

Permalink
live build alias (no bump)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lasky committed Mar 1, 2016
1 parent 2f6d9da commit d6d9dc7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions grunt/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(grunt) {
build_dir: 'build',
docs_dir: 'build_docs',
dist_dir: 'dist',

modules: grunt.file.expand({ cwd: 'src' }, 'mm-*'),
shared: grunt.file.expand({ cwd: 'src' }, 'shared/**/*.html'),

Expand Down Expand Up @@ -302,7 +302,7 @@ module.exports = function(grunt) {
//set config for the static fonts lib as well
var fnts = grunt.config.get('build_dir') + '/shared/fonts/fonts.css';
grunt.config.set("hogan_static.fonts.options.data.style", grunt.file.read(fnts));

//run batched
grunt.task.run(tasks);

Expand All @@ -324,7 +324,7 @@ module.exports = function(grunt) {
var path = grunt.config('src_dir') + '/shared/sass/_color.scss';
var color = grunt.file.read(path);
color = color.replace(/\$color-(\w\d\d*): (#[\w\d]*);/g, function(a, key, value) {
return "\t\"" + key + "\":\"" + value + "\",";
return "\t\"" + key + "\":\"" + value + "\",";
});
grunt.config.set('hogan_static.colors.options.data.colors', color);
grunt.task.run(['hogan_static:colors']);
Expand All @@ -336,7 +336,7 @@ module.exports = function(grunt) {
'copy:build',
'sass:dist',
'postcss',
'cssUrlEmbed',
'cssUrlEmbed',
'style:imports',
'hogan_static:fonts',
// 'hogan_static:lib', //un-comment to build entire library
Expand All @@ -361,6 +361,8 @@ module.exports = function(grunt) {

grunt.registerTask('default', ['build:dev']);

grunt.registerTask('link', ["clean:dist", "build:dist", "replace:bower", "copy:dist"]);

grunt.registerTask('release', function(version){
version = version || "patch";
grunt.task.run( "bump-only:" + version, "clean:dist", "build:dist", "replace:bower", "copy:dist", "shell:stageRelease", "githubChanges", "bump-commit");
Expand Down

0 comments on commit d6d9dc7

Please sign in to comment.