Skip to content

Commit

Permalink
feat(app generator): add ability to include certain code into debug b…
Browse files Browse the repository at this point in the history
…uilds only
  • Loading branch information
cueedee committed Aug 26, 2016
1 parent 0a08e4a commit 592155f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion generators/app/templates/@Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ module.exports = ( grunt ) ->
app:
src:
browserify: '<%= build.source %>app.coffee'

## To have certain code included only in debug builds, prefix the filename with `debug.`
##
debug: '<%= build.source %>**/debug.*.coffee'

lint: '<%= build.source %>**/*.coffee'

## NOTE: <%= npm.main %> should have <%= build.dist %> as its prefix:
Expand Down Expand Up @@ -283,7 +288,10 @@ module.exports = ( grunt ) ->
noParse: '<%= browserify.options.browserifyOptions.noParse %>'
debug: true

files: '<%= browserify.app_dist.files %>'
files: [
src: [ '<%= build.part.app.src.browserify %>', '<%= build.part.app.src.debug %>' ]
dest: '<%= build.part.app.tgt %>'
]


##
Expand Down

0 comments on commit 592155f

Please sign in to comment.