Get rid of set-channel task.
This commit is contained in:
parent
2e34e1da4c
commit
3a353aeebc
@ -89,13 +89,13 @@ module.exports = (grunt) ->
|
|||||||
<%= BIN %>jshint tmp/script-crx.js tmp/eventPage.js
|
<%= BIN %>jshint tmp/script-crx.js tmp/eventPage.js
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
'crx-channel':
|
'crx-channel':
|
||||||
command: """
|
command: (channel='') -> """
|
||||||
<%= BIN %>coffee tools/templates.coffee src/meta/updates.xml testbuilds/updates<%= pkg.channel %>.xml type=crx channel=<%= pkg.channel %>
|
<%= BIN %>coffee tools/templates.coffee src/meta/updates.xml testbuilds/updates#{channel}.xml type=crx channel=#{channel}
|
||||||
<%= BIN %>coffee tools/templates.coffee src/meta/manifest.json testbuilds/crx<%= pkg.channel %>/manifest.json type=crx channel=<%= pkg.channel %>
|
<%= BIN %>coffee tools/templates.coffee src/meta/manifest.json testbuilds/crx#{channel}/manifest.json type=crx channel=#{channel}
|
||||||
node tools/cat.js src/meta/botproc.js LICENSE src/meta/usestrict.js tmp/script-crx.js testbuilds/crx<%= pkg.channel %>/script.js
|
node tools/cat.js src/meta/botproc.js LICENSE src/meta/usestrict.js tmp/script-crx.js testbuilds/crx#{channel}/script.js
|
||||||
<%= icons.map(file => `node tools/cp.js src/meta/${file} testbuilds/crx${pkg.channel}/${file}`).join('&&') %>
|
<%= icons.map(file => `node tools/cp.js src/meta/${file} testbuilds/crx#{channel}/${file}`).join('&&') %>
|
||||||
node tools/cp.js tmp/eventPage.js testbuilds/crx<%= pkg.channel %>/eventPage.js
|
node tools/cp.js tmp/eventPage.js testbuilds/crx#{channel}/eventPage.js
|
||||||
node tools/zip-crx.js <%= pkg.channel %>
|
node tools/zip-crx.js #{channel}
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
'copy-zip':
|
'copy-zip':
|
||||||
command: 'node tools/cp.js testbuilds/<%= pkg.name %>-noupdate.crx.zip testbuilds/<%= pkg.name %>.zip'
|
command: 'node tools/cp.js testbuilds/<%= pkg.name %>-noupdate.crx.zip testbuilds/<%= pkg.name %>.zip'
|
||||||
@ -106,9 +106,9 @@ module.exports = (grunt) ->
|
|||||||
<%= BIN %>jshint tmp/script-userscript.js
|
<%= BIN %>jshint tmp/script-userscript.js
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
'userscript-channel':
|
'userscript-channel':
|
||||||
command: """
|
command: (channel='') -> """
|
||||||
<%= BIN %>coffee tools/templates.coffee src/meta/metadata.js testbuilds/<%= pkg.name %><%= pkg.channel %>.meta.js type=userscript channel=<%= pkg.channel %>
|
<%= BIN %>coffee tools/templates.coffee src/meta/metadata.js testbuilds/<%= pkg.name %>#{channel}.meta.js type=userscript channel=#{channel}
|
||||||
node tools/cat.js src/meta/botproc.js testbuilds/<%= pkg.name %><%= pkg.channel %>.meta.js LICENSE src/meta/usestrict.js tmp/script-userscript.js testbuilds/<%= pkg.name %><%= pkg.channel %>.user.js
|
node tools/cat.js src/meta/botproc.js testbuilds/<%= pkg.name %>#{channel}.meta.js LICENSE src/meta/usestrict.js tmp/script-userscript.js testbuilds/<%= pkg.name %>#{channel}.user.js
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
install:
|
install:
|
||||||
command: 'node tools/install.js'
|
command: 'node tools/install.js'
|
||||||
@ -196,11 +196,6 @@ module.exports = (grunt) ->
|
|||||||
'build'
|
'build'
|
||||||
]
|
]
|
||||||
|
|
||||||
grunt.registerTask 'set-channel', 'Set the update channel', (channel='') ->
|
|
||||||
pkg = grunt.config 'pkg'
|
|
||||||
pkg.channel = channel
|
|
||||||
grunt.config 'pkg', pkg
|
|
||||||
|
|
||||||
grunt.registerTask 'build', [
|
grunt.registerTask 'build', [
|
||||||
'shell:npm'
|
'shell:npm'
|
||||||
'shell:general'
|
'shell:general'
|
||||||
@ -209,12 +204,9 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
grunt.registerTask 'build-crx', [
|
grunt.registerTask 'build-crx', [
|
||||||
'shell:crx'
|
'shell:crx'
|
||||||
'set-channel'
|
|
||||||
'shell:crx-channel'
|
|
||||||
'set-channel:-beta'
|
|
||||||
'shell:crx-channel'
|
|
||||||
'set-channel:-noupdate'
|
|
||||||
'shell:crx-channel'
|
'shell:crx-channel'
|
||||||
|
'shell:crx-channel:-beta'
|
||||||
|
'shell:crx-channel:-noupdate'
|
||||||
'shell:copy-zip'
|
'shell:copy-zip'
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -226,12 +218,9 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
grunt.registerTask 'build-userscript', [
|
grunt.registerTask 'build-userscript', [
|
||||||
'shell:userscript'
|
'shell:userscript'
|
||||||
'set-channel'
|
|
||||||
'shell:userscript-channel'
|
|
||||||
'set-channel:-beta'
|
|
||||||
'shell:userscript-channel'
|
|
||||||
'set-channel:-noupdate'
|
|
||||||
'shell:userscript-channel'
|
'shell:userscript-channel'
|
||||||
|
'shell:userscript-channel:-beta'
|
||||||
|
'shell:userscript-channel:-noupdate'
|
||||||
'shell:install'
|
'shell:install'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user