[Pkg-javascript-commits] [d3-tip.js] 220/277: fix for makefile so its possible to compile minified version
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.
commit 11325fe5a1582269352bbe60bc41ba55eac39fdf
Author: Dean Malmgren <dean.malmgren at datascopeanalytics.com>
Date: Wed Feb 5 08:48:47 2014 -0600
fix for makefile so its possible to compile minified version
---
.gitignore | 4 +++-
Makefile | 12 +++++++++---
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index 0a2375a..6c9914b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
components
-bower_components
\ No newline at end of file
+bower_components
+node_modules
+d3.tip.min.js
diff --git a/Makefile b/Makefile
index f981351..bc95927 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,11 @@
-d3.tip.min.js: clean
- uglifyjs src/d3.tip.js -c -m -o d3.tip.min.js
+UGLIFYJS = node_modules/uglify-js/bin/uglifyjs
+
+d3.tip.min.js: clean uglifyjs
+ $(UGLIFYJS) index.js -c -m -o d3.tip.min.js
clean:
- @rm -f d3.tip.min.js
\ No newline at end of file
+ @rm -f d3.tip.min.js
+
+uglifyjs: $(UGLIFYJS)
+$(UGLIFYJS):
+ npm install uglify-js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git
More information about the Pkg-javascript-commits
mailing list