Make captchas task all command line.
This commit is contained in:
parent
8ae1a0df96
commit
7674a2074d
@ -189,7 +189,10 @@ module.exports = (grunt) ->
|
|||||||
store:
|
store:
|
||||||
command: 'node tools/webstore.js'
|
command: 'node tools/webstore.js'
|
||||||
captchas:
|
captchas:
|
||||||
command: 'aws s3 cp captchas.html s3://<%= pkg.meta.awsBucket %> --cache-control "max-age=0" --content-type "text/html; charset=utf-8"'
|
command: """
|
||||||
|
#{'node_modules/.bin/coffee tools/templates.coffee'.replace(/\//g, path.sep)} redirect.html captchas.html url=#{process.env.url || 'https://www.4chan.org/feedback'}
|
||||||
|
aws s3 cp captchas.html s3://<%= pkg.meta.awsBucket %> --cache-control "max-age=0" --content-type "text/html; charset=utf-8"
|
||||||
|
""".split('\n').join('&&')
|
||||||
npm:
|
npm:
|
||||||
command: 'npm install'
|
command: 'npm install'
|
||||||
update:
|
update:
|
||||||
@ -408,9 +411,9 @@ module.exports = (grunt) ->
|
|||||||
'shell:store'
|
'shell:store'
|
||||||
]
|
]
|
||||||
|
|
||||||
grunt.registerTask 'captchas', 'Set captcha complaints redirect.', (url='https://www.4chan.org/feedback') ->
|
grunt.registerTask 'captchas', [
|
||||||
grunt.file.write 'captchas.html', grunt.template.process(grunt.file.read('redirect.html'), data: {url})
|
'shell:captchas'
|
||||||
grunt.task.run 'shell:captchas'
|
]
|
||||||
|
|
||||||
grunt.registerTask 'setversion', 'Set the version number', (version) ->
|
grunt.registerTask 'setversion', 'Set the version number', (version) ->
|
||||||
data = grunt.file.readJSON 'version.json'
|
data = grunt.file.readJSON 'version.json'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user