Skip to content

Commit 54d46d8

Browse files
author
Dan Lasky
committed
better build support for debugging in bower link scenarios
1 parent cb36b41 commit 54d46d8

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

grunt/tasks/build.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,19 @@ module.exports = function(grunt) {
3030
cwd: '<%= build_dir %>',
3131
src: ['**/*.html', '!mm-*/index.html'],
3232
dest: '<%= dist_dir %>'
33-
}
33+
},
34+
link: {
35+
expand: true,
36+
cwd: '<%= src_dir %>',
37+
src: ['strand.html'],
38+
dest: '<%= dist_dir %>'
39+
},
40+
debug: {
41+
expand: true,
42+
cwd: '<%= build_dir %>',
43+
src: ['**/*.+(html|js|woff|css)', '!**/example.html'],
44+
dest: '<%= dist_dir %>'
45+
},
3446
},
3547

3648
sass: {
@@ -362,6 +374,7 @@ module.exports = function(grunt) {
362374
grunt.registerTask('default', ['build:dev']);
363375

364376
grunt.registerTask('link', ["clean:dist", "build:dist", "replace:bower", "copy:dist"]);
377+
grunt.registerTask('debug', ['build:dev', 'copy:debug', 'copy:link']);
365378

366379
grunt.registerTask('release', function(version){
367380
version = version || "patch";

0 commit comments

Comments
 (0)