h5o-chrome
Advanced tools
Comparing version 0.8.13 to 0.8.14
@@ -16,5 +16,3 @@ { | ||
"permissions": [ | ||
"tabs", | ||
"http://*/*", | ||
"https://*/*" | ||
"activeTab" | ||
], | ||
@@ -38,3 +36,3 @@ "content_scripts": [ | ||
}, | ||
"version": "0.8.13", | ||
"version": "0.8.14", | ||
"author": { | ||
@@ -41,0 +39,0 @@ "name": "Dominykas Blyžė", |
@@ -26,5 +26,11 @@ # HTML5 outliner for Chrome # | ||
### v0.8.12 ### | ||
### v0.8.14 ### | ||
* Reduced permission set | ||
### v0.8.13 ### | ||
* https://github.com/h5o/h5o-chrome/issues/10 | ||
### v0.8.12 ### | ||
* No updates | ||
### v0.8.1 - v0.8.11 (2015-03) ### | ||
@@ -31,0 +37,0 @@ * Deployment automation |
@@ -26,9 +26,2 @@ module.exports = function (grunt) { | ||
"dest": "dist/extension/" | ||
}, | ||
"crx": { | ||
// crx extension has extra permissions and an update URL | ||
"expand": true, | ||
"cwd": "dist/extension/", | ||
"src": ["**"], | ||
"dest": "dist/extension-standalone/" | ||
} | ||
@@ -45,52 +38,9 @@ }, | ||
} | ||
}, | ||
"gh-pages": { | ||
"options": { | ||
base: "dist", | ||
add: true, | ||
repo: "https://" + process.env.GH_TOKEN + "@github.com/h5o/h5o.github.io.git", | ||
branch: "master" | ||
}, | ||
"src": "crx-updates.xml" | ||
}, | ||
"bump": { | ||
"options": { | ||
commitMessage: 'release %VERSION%', | ||
commitFiles: [ "-a" ], | ||
tagName: '%VERSION%', | ||
tagMessage: 'version %VERSION%', | ||
pushTo: 'origin' | ||
} | ||
} | ||
}); | ||
grunt.registerTask("default", "Clean build", ["clean:all", "build", "crx", "compress"]); | ||
grunt.registerTask("default", "Clean build", ["clean:all", "build", "compress"]); | ||
grunt.registerTask("build", "Build unpacked extension", ["gen-manifest", "copy:h5o", "copy:extension", "copy:license", "copy:crx"]); | ||
grunt.registerTask("build", "Build unpacked extension", ["gen-manifest", "copy:h5o", "copy:extension", "copy:license"]); | ||
grunt.registerTask("crx", "Build the final crx", function () { | ||
if (!process.env["H5O_CRX"]) return; | ||
var manifest = grunt.file.readJSON("dist/extension/manifest.json"); | ||
manifest["update_url"] = "https://h5o.github.io/crx-updates.xml"; | ||
manifest["permissions"].push("file://*/*"); | ||
manifest["content_scripts"][0]["matches"].push("file://*/*"); | ||
grunt.file.write("dist/extension-standalone/manifest.json", JSON.stringify(manifest, null, " ")); | ||
var shelljs = require("shelljs"); | ||
var passphraseEnvVarName = process.env["H5O_CRX_KEY_PASSPHRASE"] ? "H5O_CRX_KEY_PASSPHRASE" : ""; | ||
var res = shelljs.exec(grunt.template.process("./build/crxmake.sh dist/extension-standalone ./build/h5o-chrome.key " + passphraseEnvVarName)); | ||
if (res.code !== 0) { | ||
grunt.fail.fatal("Failed building the crx"); | ||
} | ||
shelljs.mv("extension-standalone.crx", grunt.template.process("dist/outliner-v<%= pkg.version %>.crx")); | ||
grunt.file.write("dist/crx-updates.xml", grunt.template.process(grunt.file.read("./build/crx-updates.xml.ejs"), { | ||
data: { | ||
appId: "dopdihoblkcnhcniellcadnidfmnalmn", | ||
version: manifest.version, | ||
downloadLink: "https://github.com/h5o/h5o-chrome/releases/download/" + manifest.version + "/outliner-v" + manifest.version + ".crx" | ||
} | ||
})); | ||
}); | ||
grunt.registerTask("gen-manifest", function () { | ||
@@ -105,8 +55,2 @@ | ||
grunt.registerTask("release", function () { | ||
var bump = grunt.option("bump"); | ||
if (bump != "patch" && bump != "minor" && bump != "major") grunt.fail.fatal("Please pass --bump"); | ||
grunt.task.run(["checkbranch:master", "checkpending", "bump:" + bump]); | ||
}); | ||
}; |
@@ -14,5 +14,3 @@ { | ||
"permissions": [ | ||
"tabs", | ||
"http://*/*", | ||
"https://*/*" | ||
"activeTab" | ||
], | ||
@@ -19,0 +17,0 @@ "content_scripts": [ |
{ | ||
"name": "h5o-chrome", | ||
"version": "0.8.13", | ||
"version": "0.8.14", | ||
"description": "Extension for Google Chrome / Chromium to generate a navigable page outline based on HTML5 outlining algorithm", | ||
"scripts": { | ||
"prepublish": "in-publish && [ ! -z $TRAVIS_TAG ] && ls dist/*.crx || in-install", | ||
"postpublish": "grunt gh-pages", | ||
"test": "grunt" | ||
@@ -34,6 +32,2 @@ }, | ||
"grunt": "0.4.x", | ||
"grunt-browserify": "3.x", | ||
"grunt-bump": "0.3.x", | ||
"grunt-checkbranch": "0.3.x", | ||
"grunt-checkpending": "0.1.x", | ||
"grunt-cli": "0.1.x", | ||
@@ -43,6 +37,3 @@ "grunt-contrib-clean": "0.6.x", | ||
"grunt-contrib-copy": "0.8.x", | ||
"grunt-contrib-watch": "0.6.x", | ||
"grunt-gh-pages": "0.10.x", | ||
"h5o": "0.11.x", | ||
"in-publish": "1.x", | ||
"load-grunt-tasks": "3.1.x", | ||
@@ -49,0 +40,0 @@ "shelljs": "0.4.x", |
@@ -20,35 +20,1 @@ # HTML5 outliner for Chrome # | ||
Run `grunt` to produce `dist/extension/` | ||
## History ## | ||
### v?.?.? (????-??-??) ### | ||
* ??? | ||
### v0.8.12 ### | ||
* https://github.com/h5o/h5o-chrome/issues/10 | ||
### v0.8.1 - v0.8.11 (2015-03) ### | ||
* Deployment automation | ||
### v0.8.0 (2015-03-17) ### | ||
* Standalone crx release | ||
* Standalone release also asks for `file://*` permission | ||
### v0.7.0 (2015-03-04) ### | ||
* Dependency updates | ||
* Styling tweaks | ||
* Links to bug tracker, source code | ||
### v0.6.1 (2015-02-23) ### | ||
* Minor manifest tweaks | ||
### v0.6.0 (2015-02-23) ### | ||
* Rewritten build scripts with [`grunt`](http://gruntjs.com) | ||
* Published on npm | ||
### v0.5.1 and earlier ### | ||
Originally [lived on Google Code](https://code.google.com/p/h5o), if you like archeology | ||
## crxmake.sh ## | ||
Made available by Google at [https://developer.chrome.com/extensions/crx](https://developer.chrome.com/extensions/crx) under CC-By 3.0 license |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
9
2
2
73853
26
248
20