From 16b32c257ddf72e2d53339defab14cf10e48808b Mon Sep 17 00:00:00 2001 From: groovecoder Date: Wed, 22 Feb 2017 17:20:37 -0800 Subject: [PATCH] fix #162: bin/build-addon.sh automates txp deploys --- .gitignore | 2 ++ bin/build-addon.sh | 1 + package.json | 7 +++++-- webextension/manifest.json | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100755 bin/build-addon.sh diff --git a/.gitignore b/.gitignore index 6914c99..f5198a3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ README.html *.xpi *.swp .vimrc +.env +addon.env diff --git a/bin/build-addon.sh b/bin/build-addon.sh new file mode 100755 index 0000000..5cd94f2 --- /dev/null +++ b/bin/build-addon.sh @@ -0,0 +1 @@ +npm install && npm run deploy diff --git a/package.json b/package.json index f6eda41..d8abfac 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "testpilot-containers", "title": "Containers Experiment", "description": "Containers works by isolating cookie jars using separate origin-attributes defined visually by colored ‘Container Tabs’. This add-on is a modified version of the containers feature for Firefox Test Pilot.", - "version": "0.9.3", + "version": "0.9.4", "author": "Andrea Marchesini, Luke Crouch and Jonathan Kingston", "bugs": { "url": "https://github.com/mozilla/testpilot-containers/issues" @@ -10,6 +10,7 @@ "dependencies": {}, "devDependencies": { "addons-linter": "^0.15.14", + "deploy-txp": "^1.0.7", "eslint": "^3.12.2", "eslint-plugin-promise": "^3.4.0", "htmllint-cli": "^0.0.5", @@ -38,12 +39,14 @@ "url": "git+https://github.com/mozilla/testpilot-containers.git" }, "scripts": { - "build": "jpm xpi", + "build": "npm test && jpm xpi", + "deploy": "deploy-txp", "lint": "npm-run-all lint:*", "lint:addon": "addons-linter webextension --self-hosted", "lint:css": "stylelint webextension/css/*.css", "lint:html": "htmllint webextension/*.html", "lint:js": "eslint .", + "package": "npm run build && mv testpilot-containers.xpi addon.xpi", "test": "npm run lint" }, "updateURL": "https://testpilot.firefox.com/files/@testpilot-containers/updates.json" diff --git a/webextension/manifest.json b/webextension/manifest.json index 21e2d11..da48e73 100644 --- a/webextension/manifest.json +++ b/webextension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Containers Experiment", - "version": "0.9.3", + "version": "0.9.4", "description": "Containers works by isolating cookie jars using separate origin-attributes defined visually by colored ‘Container Tabs’. This add-on is a modified version of the containers feature for Firefox Test Pilot.", "icons": {