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/
|
testbuilds/
|
||||||
test.html
|
test.html
|
||||||
captchas*.html
|
captchas*.html
|
||||||
|
install.json
|
||||||
Gruntfile.js
|
Gruntfile.js
|
||||||
|
|||||||
@ -150,6 +150,8 @@ module.exports = (grunt) ->
|
|||||||
filter: (src) ->
|
filter: (src) ->
|
||||||
pkg = grunt.config 'pkg'
|
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)
|
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:
|
web:
|
||||||
src: 'test.html'
|
src: 'test.html'
|
||||||
dest: 'index.html'
|
dest: 'index.html'
|
||||||
@ -405,6 +407,7 @@ module.exports = (grunt) ->
|
|||||||
'set-channel:dev'
|
'set-channel:dev'
|
||||||
'concat:userscript'
|
'concat:userscript'
|
||||||
'clean:tmpuserscript'
|
'clean:tmpuserscript'
|
||||||
|
'copy:install'
|
||||||
]
|
]
|
||||||
|
|
||||||
grunt.registerTask 'build-tests', [
|
grunt.registerTask 'build-tests', [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user