Skip to content

Commit

Permalink
Add version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Bok committed Mar 17, 2013
1 parent 5f9b84f commit f74c9eb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -4,7 +4,11 @@ build:
make lint make lint
make clean make clean
mkdir -p build 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 cp build/framer.js template/framer.js


clean: clean:
Expand Down
11 changes: 8 additions & 3 deletions build/framer.js
@@ -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) { (function(){var require = function (file, cwd) {
var resolved = require.resolve(file, cwd || '/'); var resolved = require.resolve(file, cwd || '/');
var mod = require.modules[resolved]; var mod = require.modules[resolved];
Expand Down Expand Up @@ -1897,7 +1902,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
node = document.createElement("div"); node = document.createElement("div");
node.innerHTML = "" + (view.name || view.id); node.innerHTML = "" + (view.name || view.id);
if (view.superView) { 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.position = "absolute";
node.style.padding = "3px"; node.style.padding = "3px";
Expand Down Expand Up @@ -1933,7 +1938,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
width: 350, width: 350,
height: 60 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 = { errorView.style = {
font: "13px/1.3em Menlo, Monaco", font: "13px/1.3em Menlo, Monaco",
backgroundColor: "rgba(255,0,0,0.5)", backgroundColor: "rgba(255,0,0,0.5)",
Expand Down Expand Up @@ -2739,7 +2744,7 @@ require.define("/src/primitives/matrix.coffee",function(require,module,exports,_
r = function(v) { r = function(v) {
return v.toFixed(5); 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() { Matrix = (function() {
Expand Down
11 changes: 8 additions & 3 deletions template/framer.js
@@ -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) { (function(){var require = function (file, cwd) {
var resolved = require.resolve(file, cwd || '/'); var resolved = require.resolve(file, cwd || '/');
var mod = require.modules[resolved]; var mod = require.modules[resolved];
Expand Down Expand Up @@ -1897,7 +1902,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
node = document.createElement("div"); node = document.createElement("div");
node.innerHTML = "" + (view.name || view.id); node.innerHTML = "" + (view.name || view.id);
if (view.superView) { 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.position = "absolute";
node.style.padding = "3px"; node.style.padding = "3px";
Expand Down Expand Up @@ -1933,7 +1938,7 @@ require.define("/src/debug.coffee",function(require,module,exports,__dirname,__f
width: 350, width: 350,
height: 60 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 = { errorView.style = {
font: "13px/1.3em Menlo, Monaco", font: "13px/1.3em Menlo, Monaco",
backgroundColor: "rgba(255,0,0,0.5)", backgroundColor: "rgba(255,0,0,0.5)",
Expand Down Expand Up @@ -2739,7 +2744,7 @@ require.define("/src/primitives/matrix.coffee",function(require,module,exports,_
r = function(v) { r = function(v) {
return v.toFixed(5); 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() { Matrix = (function() {
Expand Down

0 comments on commit f74c9eb

Please sign in to comment.