[Pkg-javascript-commits] [science.js] 25/87: Auto-generate package.json.
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:11:54 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 648c4d0083bacbb868de0d06fda37b1dd1114a69
Author: Jason Davies <jason at jasondavies.com>
Date: Fri Aug 26 00:40:43 2011 +0100
Auto-generate package.json.
---
Makefile | 6 +++++-
package.json | 16 +++++++++++++---
package.json => src/package.js | 8 +++++---
3 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index f83302a..182c9b2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,8 @@ all: \
science.lin.js \
science.lin.min.js \
science.stats.js \
- science.stats.min.js
+ science.stats.min.js \
+ package.json
.INTERMEDIATE science.js: \
src/start.js \
@@ -51,6 +52,9 @@ test: all
@rm -f $@
$(JS_COMPILER) < $< > $@
+package.json: science.js
+ node src/package.js > $@
+
science.js science%.js: Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
diff --git a/package.json b/package.json
index 914d520..79166f1 100644
--- a/package.json
+++ b/package.json
@@ -2,10 +2,20 @@
"name": "science.js",
"version": "1.5.0",
"description": "Scientific and statistical computing in JavaScript.",
- "keywords": ["science", "statistics", "mathematics"],
+ "keywords": [
+ "science",
+ "statistics",
+ "mathematics"
+ ],
"homepage": "https://github.com/jasondavies/science.js",
- "author": {"name": "Jason Davies", "url": "http://www.jasondavies.com/"},
- "repository": {"type": "git", "url": "http://github.com/jasondavies/science.js.git"},
+ "author": {
+ "name": "Jason Davies",
+ "url": "http://www.jasondavies.com/"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/jasondavies/science.js.git"
+ },
"dependencies": {
"uglify-js": "1.0.6",
"vows": "0.5.10"
diff --git a/package.json b/src/package.js
similarity index 80%
copy from package.json
copy to src/package.js
index 914d520..7d76651 100644
--- a/package.json
+++ b/src/package.js
@@ -1,6 +1,8 @@
-{
+require("../science");
+
+require("util").puts(JSON.stringify({
"name": "science.js",
- "version": "1.5.0",
+ "version": science.version,
"description": "Scientific and statistical computing in JavaScript.",
"keywords": ["science", "statistics", "mathematics"],
"homepage": "https://github.com/jasondavies/science.js",
@@ -10,4 +12,4 @@
"uglify-js": "1.0.6",
"vows": "0.5.10"
}
-}
+}, null, 2));
--
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