Install userscript after building.

This commit is contained in:
ccd0 2015-10-27 13:05:49 -07:00
parent b05411d9d5
commit 4099936088
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -7,4 +7,5 @@ tmp-userscript/
testbuilds/
test.html
captchas*.html
install.json
Gruntfile.js

View File

@ -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', [