Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CSS-Tricks/The-Printliminator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMottie <wowmotty@gmail.com>2015-08-23 02:22:14 +0300
committerMottie <wowmotty@gmail.com>2015-08-24 19:05:21 +0300
commit499adbd59e8958c1596b7ae60d410a733de7650a (patch)
tree61c3b3564215d6db01ce6b013b6878dc343c2d45 /package.json
parentd12145f26c63d37fd029bdb80a2cf0a539c3c8df (diff)
Add grunt build process:
1) The "src/bookmarklet.js" file contains the uncompressed bookmarklet code. 2) In the build process, that file is minified & added into the "src/index.html" file in two places: a) The actual link href (default link). b) development bookmarklet link (inside js code which updates the link). 3) A new "index.html" and minified "printliminator.min.js" file are written to the root folder. 4) When the "index.html" in the root folder is loaded in the browser, and the js detects the origin is "file://", then the links in the "index.html" file get changed and to point to local files to make it easier for development.
Diffstat (limited to 'package.json')
-rw-r--r--package.json45
1 files changed, 45 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..d69657b
--- /dev/null
+++ b/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "printliminator",
+ "title": "Printliminator",
+ "version": "3.0.0",
+ "description": "The Printliminator is a bookmarklet with some simple tools you can use to makes websites print better. One click to activate, and then click to remove elements from the page, remove graphics, and apply better print styling.",
+ "author": {
+ "name": "Chris Coyier",
+ "url": "http://chriscoyier.net/"
+ },
+ "contributors": [
+ {
+ "name": "Dave Govett",
+ "url": "http://devongovett.wordpress.com/"
+ },
+ {
+ "name": "Rob Garrison",
+ "url": "https://github.com/Mottie",
+ "email": "wowmotty@gmail.com"
+ }
+ ],
+ "license": "GPL-3.0",
+ "homepage": "https://css-tricks.com/examples/ThePrintliminator/",
+ "bugs": "https://github.com/CSS-Tricks/The-Printliminator/issues",
+ "docs": "https://github.com/CSS-Tricks/The-Printliminator/wiki",
+ "demo": "https://css-tricks.github.io/The-Printliminator",
+ "dependencies": {
+ "jquery": "1.3.2"
+ },
+ "keywords": [
+ "print",
+ ""
+ ],
+ "main": "printliminator.js",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/CSS-Tricks/The-Printliminator.git"
+ },
+ "devDependencies": {
+ "grunt": "^0.4.5",
+ "grunt-cli": "~0.1.13",
+ "grunt-contrib-clean": "^0.6.0",
+ "grunt-contrib-jshint": "^0.11.2",
+ "grunt-contrib-uglify": "^0.7.0"
+ }
+}