Skip to content

Commit

Permalink
Support JavaScript for writing source files (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis authored Mar 14, 2017
1 parent 0dd2718 commit 2960133
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions grunt/config/copy.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ module.exports =
'image/**/*'
'font/**/*'
'style/*.css'
'script/**/*.js'
'worker/*'
]

dist_js:
cwd: '<%= dir.app_ %>'
dest: '<%= dir.dist %>'
expand: true
src: 'script/**/*.js'

dist_audio:
cwd: '<%= dir.app_ %>/ext/audio/wire-audio-files'
dest: '<%= dir.dist %>/audio'
Expand Down Expand Up @@ -64,6 +71,7 @@ module.exports =
'image/**/*'
'font/**/*'
'style/*.css'
'script/**/*.js'
'worker/*'
]

Expand Down
4 changes: 4 additions & 0 deletions grunt/config/watch.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ module.exports =
files: ['<%= dir.app_ %>/**/*.coffee', 'sw.coffee']
tasks: ['coffee:dist']

js:
files: '<%= dir.app_ %>/**/*.js'
tasks: ['copy:dist_js']

templates:
files: '<%= dir.app_ %>/**/*.htm*'
tasks: ['prepare_template']
Expand Down

0 comments on commit 2960133

Please sign in to comment.