Permalink
Browse files

Add version numbers

  • Loading branch information...
Koen Bok
Koen Bok committed Mar 17, 2013
1 parent 5f9b84f commit f74c9ebbb0e919222acc13ccaebae4bff3413931
Showing with 21 additions and 7 deletions.
  1. +5 −1 Makefile
  2. +8 −3 build/framer.js
  3. +8 −3 template/framer.js
@@ -4,7 +4,11 @@ build:
make lint
make clean
mkdir -p build
./node_modules/browserify/bin/cmd.js src/init.coffee -o build/framer.js
./node_modules/browserify/bin/cmd.js src/init.coffee -o build/framer.build.js
echo "// Framer `git describe --tags` (c) 2013 Koen Bok\n" > build/framer.js
echo "window.FramerVersion = \"`git describe --tags`\"\n\n" >> build/framer.js
cat build/framer.build.js >> build/framer.js
rm build/framer.build.js
cp build/framer.js template/framer.js
clean:
@@ -1,3 +1,8 @@
// Framer 0.5.0-28-g5f9b84f (c) 2013 Koen Bok
window.FramerVersion = "0.5.0-28-g5f9b84f"
(function(){var require = function (file, cwd) {
var resolved = require.resolve(file, cwd || '/');
var mod = require.modules[resolved];
@@ -1897,7 +1902,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
node = document.createElement("div");
node.innerHTML = "" + (view.name || view.id);
if (view.superView) {
node.innerHTML += " <span style='opacity:.5'>in " + (view.superView.name || view.superView.id) + "</span>";
node.innerHTML += " <span style='opacity:.5'> in " + (view.superView.name || view.superView.id) + " </span>";
}
node.style.position = "absolute";
node.style.padding = "3px";
@@ -1933,7 +1938,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
width: 350,
height: 60
});
errorView.html = "<b>Javascript Error</b><br>Inspect the error console for more info.";
errorView.html = "<b>Javascript Error</b> <br>Inspect the error console for more info.";
errorView.style = {
font: "13px/1.3em Menlo, Monaco",
backgroundColor: "rgba(255,0,0,0.5)",
@@ -2739,7 +2744,7 @@ require.define("/src/primitives/matrix.coffee",function(require,module,exports,_
r = function(v) {
return v.toFixed(5);
};
return values = " matrix3d( " + (r(this.m11)) + ", " + (r(this.m12)) + ", " + (r(this.m13)) + ", " + (r(this.m14)) + ", " + (r(this.m21)) + ", " + (r(this.m22)) + ", " + (r(this.m23)) + ", " + (r(this.m24)) + ", " + (r(this.m31)) + ", " + (r(this.m32)) + ", " + (r(this.m33)) + ", " + (r(this.m34)) + ", " + (r(this.m41)) + ", " + (r(this.m42)) + ", " + (r(this.m43)) + ", " + (r(this.m44)) + ")";
return values = " matrix3d( " + (r(this.m11)) + ", " + (r(this.m12)) + ", " + (r(this.m13)) + ", " + (r(this.m14)) + ", " + (r(this.m21)) + ", " + (r(this.m22)) + ", " + (r(this.m23)) + ", " + (r(this.m24)) + ", " + (r(this.m31)) + ", " + (r(this.m32)) + ", " + (r(this.m33)) + ", " + (r(this.m34)) + ", " + (r(this.m41)) + ", " + (r(this.m42)) + ", " + (r(this.m43)) + ", " + (r(this.m44)) + ")";
};
Matrix = (function() {
@@ -1,3 +1,8 @@
// Framer 0.5.0-28-g5f9b84f (c) 2013 Koen Bok
window.FramerVersion = "0.5.0-28-g5f9b84f"
(function(){var require = function (file, cwd) {
var resolved = require.resolve(file, cwd || '/');
var mod = require.modules[resolved];
@@ -1897,7 +1902,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
node = document.createElement("div");
node.innerHTML = "" + (view.name || view.id);
if (view.superView) {
node.innerHTML += " <span style='opacity:.5'>in " + (view.superView.name || view.superView.id) + "</span>";
node.innerHTML += " <span style='opacity:.5'> in " + (view.superView.name || view.superView.id) + " </span>";
}
node.style.position = "absolute";
node.style.padding = "3px";
@@ -1933,7 +1938,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
width: 350,
height: 60
});
errorView.html = "<b>Javascript Error</b><br>Inspect the error console for more info.";
errorView.html = "<b>Javascript Error</b> <br>Inspect the error console for more info.";
errorView.style = {
font: "13px/1.3em Menlo, Monaco",
backgroundColor: "rgba(255,0,0,0.5)",
@@ -2739,7 +2744,7 @@ require.define("/src/primitives/matrix.coffee",function(require,module,exports,_
r = function(v) {
return v.toFixed(5);
};
return values = " matrix3d( " + (r(this.m11)) + ", " + (r(this.m12)) + ", " + (r(this.m13)) + ", " + (r(this.m14)) + ", " + (r(this.m21)) + ", " + (r(this.m22)) + ", " + (r(this.m23)) + ", " + (r(this.m24)) + ", " + (r(this.m31)) + ", " + (r(this.m32)) + ", " + (r(this.m33)) + ", " + (r(this.m34)) + ", " + (r(this.m41)) + ", " + (r(this.m42)) + ", " + (r(this.m43)) + ", " + (r(this.m44)) + ")";
return values = " matrix3d( " + (r(this.m11)) + ", " + (r(this.m12)) + ", " + (r(this.m13)) + ", " + (r(this.m14)) + ", " + (r(this.m21)) + ", " + (r(this.m22)) + ", " + (r(this.m23)) + ", " + (r(this.m24)) + ", " + (r(this.m31)) + ", " + (r(this.m32)) + ", " + (r(this.m33)) + ", " + (r(this.m34)) + ", " + (r(this.m41)) + ", " + (r(this.m42)) + ", " + (r(this.m43)) + ", " + (r(this.m44)) + ")";
};
Matrix = (function() {

0 comments on commit f74c9eb

Please sign in to comment.