Skip to content

Commit

Permalink
💄 Add ng-annotate for uglifyjs
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Apr 6, 2015
1 parent 4cb8d40 commit d36c425
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 14 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v0.1.9 / Mar 30 2015
=========================
* [`a907a0a`][5] :lipstick: Add ng-annotate for uglifyjs

[5]: https://github.com/59naga/jaggy/commits/master

v0.1.8 / Mar 30 2015
=========================
Add Angular options by constant `jaggyConfig`
Expand All @@ -10,7 +16,7 @@ Add Angular options by constant `jaggyConfig`

[2]: https://github.com/59naga/jaggy/commit/a907a0a5da621d26fb5c01fceb49a882b6f97a71
[3]: https://github.com/59naga/jaggy/commit/d4cd748d68f2fd27b17af54cc768bc1cbb196d3d
[4]: https://github.com/59naga/jaggy/commits/master
[4]: https://github.com/59naga/jaggy/commit/4cb8d40a9ae223a97249f4d07fae390f3435c183

v0.1.4 / Mar 29 2015
=========================
Expand Down
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "jaggy",
"version": "0.1.8",
"main": "public/jaggy.browser.js",
"version": "0.1.9",
"homepage": "https://github.com/59naga/jaggy",
"authors": [
"59naga <i59naga@icloud.com>"
],
"description": "<img src=\"pixel-art\"> to <svg>",
"main": "public/jaggy.browser.js",
"keywords": [
"pixel",
"pixel-art",
"get-pixels",
"gif",
"svg",
"browserify"
"browserify",
"angularjs"
],
"license": "MIT",
"ignore": [
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
"main": "jaggy",
"bin": "jaggy",
"description": "is Converting to SVG by pixels",
"version": "0.1.8",
"version": "0.1.9",

"scripts": {
"build": "browserify lib/jaggy.coffee -r get-pixels -r gify-parse -t coffeeify > public/jaggy.browser.js",
"build": "browserify lib/jaggy.coffee -r get-pixels -r gify-parse -t coffeeify | ng-annotate - --add > public/jaggy.browser.js",
"postbuild": "uglifyjs public/jaggy.browser.js --compres --mangle --source-map public/jaggy.browser.min.js.map --source-map-url jaggy.browser.min.js.map --output public/jaggy.browser.min.js",

"prestart": "onefile --json --output public/pkgs",
"start": "cd public && open http://localhost:8000 && python -m SimpleHTTPServer",
"watch": "abigail ./**/*.coffee:build --ignore --execute",
"convert": "jaggy public -o hogekosan -g 2",

"test": "jasminetea test --verbose --cover --report",
"posttest": "rm public/*.svg",

"prepublish": "npm run build"
},
"dependencies": {
Expand All @@ -30,8 +35,11 @@
"coffeeify": "^1.0.0",
"gulp": "^3.8.11",
"jasminetea": "^0.1.27",
"onefile": "^0.2.8"
"ng-annotate": "^0.15.4",
"onefile": "^0.2.8",
"uglify-js": "^2.4.19"
},

"keywords": [
"pixelart",
"get-pixels",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<title>Document</title>
<script src="pkgs.js"></script>
<script src="jaggy.browser.js"></script>
<script src="jaggy.browser.min.js"></script>
<script title="for browser">
jaggy('moon.png',function(error,svg){
document.querySelector('section').appendChild(svg);
Expand Down
20 changes: 14 additions & 6 deletions public/jaggy.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ Jaggy.angularModule = function(window) {
useEmptyImage: true
});
angularModule.constant('jaggyEmptyImage', '<svg viewBox="0 0 1 1" shape-rendering="crispEdges" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M0,0h1v1h-1Z" fill="rgba(0,0,0,0.50)"></path></svg>');
return angularModule.directive('jaggy', function(jaggyConfig, jaggyEmptyImage) {
return angularModule.directive('jaggy', ["jaggyConfig", "jaggyEmptyImage", function(jaggyConfig, jaggyEmptyImage) {
return function(scope, element, attrs) {
var i, key, len, options, param, ref, ref1, url, value;
element.css('display', 'none');
Expand Down Expand Up @@ -505,7 +505,7 @@ Jaggy.angularModule = function(window) {
return element.replaceWith(svg);
});
};
});
}]);
};

Jaggy.convertToSVG = function() {
Expand Down Expand Up @@ -9726,7 +9726,7 @@ function through (write, end, opts) {
stream.queue = stream.push = function (data) {
// console.error(ended)
if(_ended) return stream
if(data == null) _ended = true
if(data === null) _ended = true
buffer.push(data)
drain()
return stream
Expand Down Expand Up @@ -28005,15 +28005,20 @@ module.exports={
"main": "jaggy",
"bin": "jaggy",
"description": "is Converting to SVG by pixels",
"version": "0.1.7",
"version": "0.1.9",

"scripts": {
"build": "browserify lib/jaggy.coffee -r get-pixels -r gify-parse -t coffeeify > public/jaggy.browser.js",
"build": "browserify lib/jaggy.coffee -r get-pixels -r gify-parse -t coffeeify | ng-annotate - --add > public/jaggy.browser.js",
"postbuild": "uglifyjs public/jaggy.browser.js --compres --mangle --source-map public/jaggy.browser.min.js.map --source-map-url jaggy.browser.min.js.map --output public/jaggy.browser.min.js",

"prestart": "onefile --json --output public/pkgs",
"start": "cd public && open http://localhost:8000 && python -m SimpleHTTPServer",
"watch": "abigail ./**/*.coffee:build --ignore --execute",
"convert": "jaggy public -o hogekosan -g 2",

"test": "jasminetea test --verbose --cover --report",
"posttest": "rm public/*.svg",

"prepublish": "npm run build"
},
"dependencies": {
Expand All @@ -28032,8 +28037,11 @@ module.exports={
"coffeeify": "^1.0.0",
"gulp": "^3.8.11",
"jasminetea": "^0.1.27",
"onefile": "^0.2.8"
"ng-annotate": "^0.15.4",
"onefile": "^0.2.8",
"uglify-js": "^2.4.19"
},

"keywords": [
"pixelart",
"get-pixels",
Expand Down
18 changes: 18 additions & 0 deletions public/jaggy.browser.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/jaggy.browser.min.js.map

Large diffs are not rendered by default.

0 comments on commit d36c425

Please sign in to comment.