From 4099936088a9dc712be5c6b7599007a7fcae706c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 27 Oct 2015 13:05:49 -0700 Subject: [PATCH] Install userscript after building. --- .gitignore | 1 + Gruntfile.coffee | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index d9ac90685..eaac2835a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ tmp-userscript/ testbuilds/ test.html captchas*.html +install.json Gruntfile.js diff --git a/Gruntfile.coffee b/Gruntfile.coffee index c06a96c0a..4062c1008 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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', [