Install userscript after building.
This commit is contained in:
parent
b05411d9d5
commit
4099936088
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,5 @@ tmp-userscript/
|
||||
testbuilds/
|
||||
test.html
|
||||
captchas*.html
|
||||
install.json
|
||||
Gruntfile.js
|
||||
|
||||
@ -150,6 +150,8 @@ module.exports = (grunt) ->
|
||||
filter: (src) ->
|
||||
pkg = grunt.config 'pkg'
|
||||
grunt.file.isFile(src) and not grunt.file.isMatch(src, "testbuilds/#{pkg.name}#{pkg.meta.suffix.dev}.user.js") and not /\.crx\.zip$/.test(src)
|
||||
install:
|
||||
files: if grunt.file.exists('install.json') then grunt.file.readJSON('install.json') else []
|
||||
web:
|
||||
src: 'test.html'
|
||||
dest: 'index.html'
|
||||
@ -405,6 +407,7 @@ module.exports = (grunt) ->
|
||||
'set-channel:dev'
|
||||
'concat:userscript'
|
||||
'clean:tmpuserscript'
|
||||
'copy:install'
|
||||
]
|
||||
|
||||
grunt.registerTask 'build-tests', [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user