[Pkg-javascript-commits] [science.js] 70/87: Minor improvement to build.
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:12:04 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 9e295a2d89cce8073042fb75ead3d7acf1269625
Author: Jason Davies <jason at jasondavies.com>
Date: Fri Apr 27 14:52:33 2012 +0100
Minor improvement to build.
Remove Makefile dependency on science.v1.js when generating
package.json.
---
Makefile | 2 +-
science.v1.js | 2 +-
science.v1.min.js | 2 +-
src/core/core.js | 2 +-
src/package.js | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 0527247..c9e03c2 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,7 @@ install:
mkdir -p node_modules
npm install
-package.json: science.v1.js src/package.js
+package.json: src/package.js
@rm -f $@
node src/package.js > $@
@chmod a-w $@
diff --git a/science.v1.js b/science.v1.js
index 12ea4f3..d999051 100644
--- a/science.v1.js
+++ b/science.v1.js
@@ -1,6 +1,6 @@
(function(exports){
(function(exports){
-var science = exports.science = {version: "1.9.1"}; // semver
+science = {version: "1.9.1"}; // semver
science.ascending = function(a, b) {
return a - b;
};
diff --git a/science.v1.min.js b/science.v1.min.js
index 907b4af..6050be7 100644
--- a/science.v1.min.js
+++ b/science.v1.min.js
@@ -1 +1 @@
-(function(a){(function(a){var b=a.science={version:"1.9.1"};b.ascending=function(a,b){return a-b},b.EULER=.5772156649015329,b.expm1=function(a){return a<1e-5&&a>-0.00001?a+.5*a*a:Math.exp(a)-1},b.functor=function(a){return typeof a=="function"?a:function(){return a}},b.hypot=function(a,b){a=Math.abs(a),b=Math.abs(b);var c,d;a>b?(c=a,d=b):(c=b,d=a);var e=d/c;return c*Math.sqrt(1+e*e)},b.quadratic=function(){function b(b,c,d){var e=c*c-4*b*d;return e>0?(e=Math.sqrt(e)/(2*b),a?[{r:-c-e,i:0} [...]
\ No newline at end of file
+(function(a){(function(a){science={version:"1.9.1"},science.ascending=function(a,b){return a-b},science.EULER=.5772156649015329,science.expm1=function(a){return a<1e-5&&a>-0.00001?a+.5*a*a:Math.exp(a)-1},science.functor=function(a){return typeof a=="function"?a:function(){return a}},science.hypot=function(a,b){a=Math.abs(a),b=Math.abs(b);var c,d;a>b?(c=a,d=b):(c=b,d=a);var e=d/c;return c*Math.sqrt(1+e*e)},science.quadratic=function(){function b(b,c,d){var e=c*c-4*b*d;return e>0?(e=Math.s [...]
\ No newline at end of file
diff --git a/src/core/core.js b/src/core/core.js
index df4c431..5d5acfa 100644
--- a/src/core/core.js
+++ b/src/core/core.js
@@ -1 +1 @@
-var science = exports.science = {version: "1.9.1"}; // semver
+science = {version: "1.9.1"}; // semver
diff --git a/src/package.js b/src/package.js
index 27fa73b..3935a55 100644
--- a/src/package.js
+++ b/src/package.js
@@ -1,4 +1,4 @@
-require("../science.v1");
+require("./core/core");
require("util").puts(JSON.stringify({
"name": "science",
--
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