Run LICENSE through templates.coffee just to strip any \r\n.
This commit is contained in:
parent
bb01d0b964
commit
ca66315203
@ -16,7 +16,6 @@ module.exports = (grunt) ->
|
|||||||
pkg: loadPkg()
|
pkg: loadPkg()
|
||||||
|
|
||||||
concat:
|
concat:
|
||||||
options: process: (src) -> src.replace /\r\n/g, '\n'
|
|
||||||
coffee:
|
coffee:
|
||||||
src: [
|
src: [
|
||||||
'src/General/Config.coffee'
|
'src/General/Config.coffee'
|
||||||
@ -63,7 +62,7 @@ module.exports = (grunt) ->
|
|||||||
files:
|
files:
|
||||||
'testbuilds/crx<%= pkg.channel %>/script.js': [
|
'testbuilds/crx<%= pkg.channel %>/script.js': [
|
||||||
'src/meta/botproc.js'
|
'src/meta/botproc.js'
|
||||||
'LICENSE'
|
'tmp/LICENSE'
|
||||||
'src/meta/usestrict.js'
|
'src/meta/usestrict.js'
|
||||||
'tmp/script-crx.js'
|
'tmp/script-crx.js'
|
||||||
]
|
]
|
||||||
@ -72,7 +71,7 @@ module.exports = (grunt) ->
|
|||||||
'testbuilds/<%= pkg.name %><%= pkg.channel %>.user.js': [
|
'testbuilds/<%= pkg.name %><%= pkg.channel %>.user.js': [
|
||||||
'src/meta/botproc.js'
|
'src/meta/botproc.js'
|
||||||
'testbuilds/<%= pkg.name %><%= pkg.channel %>.meta.js'
|
'testbuilds/<%= pkg.name %><%= pkg.channel %>.meta.js'
|
||||||
'LICENSE'
|
'tmp/LICENSE'
|
||||||
'src/meta/usestrict.js'
|
'src/meta/usestrict.js'
|
||||||
'tmp/script-userscript.js'
|
'tmp/script-userscript.js'
|
||||||
]
|
]
|
||||||
@ -110,8 +109,11 @@ module.exports = (grunt) ->
|
|||||||
stdout: true
|
stdout: true
|
||||||
stderr: true
|
stderr: true
|
||||||
failOnError: true
|
failOnError: true
|
||||||
'templates-jshint':
|
general:
|
||||||
command: 'node_modules/.bin/coffee tools/templates.coffee src/meta/jshint.json .jshintrc'.replace(/\//g, path.sep)
|
command: """
|
||||||
|
node_modules/.bin/coffee tools/templates.coffee src/meta/jshint.json .jshintrc
|
||||||
|
node_modules/.bin/coffee tools/templates.coffee LICENSE tmp/LICENSE
|
||||||
|
""".split('\n').join('&&').replace(/\//g, path.sep)
|
||||||
crx:
|
crx:
|
||||||
command: """
|
command: """
|
||||||
node_modules/.bin/coffee tools/templates.coffee tmp/script.coffee tmp/script-crx.coffee type=crx tests_enabled=<%= pkg.tests_enabled || "" %>
|
node_modules/.bin/coffee tools/templates.coffee tmp/script.coffee tmp/script-crx.coffee type=crx tests_enabled=<%= pkg.tests_enabled || "" %>
|
||||||
@ -221,7 +223,7 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
grunt.registerTask 'build', [
|
grunt.registerTask 'build', [
|
||||||
'shell:npm'
|
'shell:npm'
|
||||||
'shell:templates-jshint'
|
'shell:general'
|
||||||
'concat:coffee'
|
'concat:coffee'
|
||||||
'concurrent:build'
|
'concurrent:build'
|
||||||
]
|
]
|
||||||
@ -291,7 +293,7 @@ module.exports = (grunt) ->
|
|||||||
grunt.registerTask 'build-tests', [
|
grunt.registerTask 'build-tests', [
|
||||||
'shell:npm'
|
'shell:npm'
|
||||||
'enable-tests'
|
'enable-tests'
|
||||||
'shell:templates-jshint'
|
'shell:general'
|
||||||
'concat:coffee'
|
'concat:coffee'
|
||||||
'build-crx'
|
'build-crx'
|
||||||
'build-userscript'
|
'build-userscript'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user