[Pkg-javascript-commits] [science.js] 60/87: Add Makefile target to install dev-dependencies, like d3js

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:12:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository science.js.

commit a0f374c352a49e8feb8ce263fb27da0dbbef1a40
Author: Kristofer Monisit <kmonisit at gmail.com>
Date:   Tue Mar 20 11:52:22 2012 +0800

    Add Makefile target to install dev-dependencies, like d3js
---
 Makefile  | 4 ++++
 README.md | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/Makefile b/Makefile
index e686c2c..15aff31 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,10 @@ test: all
 package.json: science.js src/package.js
 	node src/package.js > $@
 
+install:
+	mkdir -p node_modules
+	npm install
+
 science.js science%.js: Makefile
 	@rm -f $@
 	cat $(filter %.js,$^) > $@
diff --git a/README.md b/README.md
index 87bc1ee..2193f60 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,12 @@ Currently, there are two modules:
    similar to those provided by [R](http://www.r-project.org/);
  * `science.lin`, for linear algebra.
 
+## Development
+
+To help develop Science.js, you need to have [Node.js](http://www.nodejs.org) and [NPM](http://www.npmjs.org) installed. Once you have done that, run the following from the root directory of this repository to install the development dependencies:
+
+    make install
+
 ## Thanks
 
 I originally started this in order to add a reusable statistics module to

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/science.js.git



More information about the Pkg-javascript-commits mailing list