Run any other source files through templates.coffee to at least fix \r\n.

This commit is contained in:
ccd0 2016-04-09 23:51:04 -07:00
parent ca66315203
commit 8c6e4f822d

View File

@ -61,18 +61,18 @@ module.exports = (grunt) ->
crx: crx:
files: files:
'testbuilds/crx<%= pkg.channel %>/script.js': [ 'testbuilds/crx<%= pkg.channel %>/script.js': [
'src/meta/botproc.js' 'tmp/botproc.js'
'tmp/LICENSE' 'tmp/LICENSE'
'src/meta/usestrict.js' 'tmp/usestrict.js'
'tmp/script-crx.js' 'tmp/script-crx.js'
] ]
userscript: userscript:
files: files:
'testbuilds/<%= pkg.name %><%= pkg.channel %>.user.js': [ 'testbuilds/<%= pkg.name %><%= pkg.channel %>.user.js': [
'src/meta/botproc.js' 'tmp/botproc.js'
'testbuilds/<%= pkg.name %><%= pkg.channel %>.meta.js' 'testbuilds/<%= pkg.name %><%= pkg.channel %>.meta.js'
'tmp/LICENSE' 'tmp/LICENSE'
'src/meta/usestrict.js' 'tmp/usestrict.js'
'tmp/script-userscript.js' 'tmp/script-userscript.js'
] ]
@ -112,7 +112,9 @@ module.exports = (grunt) ->
general: general:
command: """ command: """
node_modules/.bin/coffee tools/templates.coffee src/meta/jshint.json .jshintrc node_modules/.bin/coffee tools/templates.coffee src/meta/jshint.json .jshintrc
node_modules/.bin/coffee tools/templates.coffee src/meta/botproc.js tmp/botproc.js
node_modules/.bin/coffee tools/templates.coffee LICENSE tmp/LICENSE node_modules/.bin/coffee tools/templates.coffee LICENSE tmp/LICENSE
node_modules/.bin/coffee tools/templates.coffee src/meta/usestrict.js tmp/usestrict.js
""".split('\n').join('&&').replace(/\//g, path.sep) """.split('\n').join('&&').replace(/\//g, path.sep)
crx: crx:
command: """ command: """