From 8d323a4d7184ce038be230f6b785fd2e1b2da832 Mon Sep 17 00:00:00 2001 From: lilia Date: Sat, 8 Nov 2014 11:38:32 -0800 Subject: [PATCH] Hooray for options --- Gruntfile.js | 8 +++++--- build/_after.js | 2 -- build/_before.js | 1 - js/curve25519_compiled.js | 6 ++---- 4 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 build/_after.js delete mode 100644 build/_before.js diff --git a/Gruntfile.js b/Gruntfile.js index 9fc7290db..f998ce904 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -38,12 +38,14 @@ module.exports = function(grunt) { }, curve25519: { src: [ - 'build/_before.js', 'build/curve25519_compiled.js', 'build/curve25519.js', - 'build/_after.js' ], - dest: 'js/curve25519_compiled.js' + dest: 'js/curve25519_compiled.js', + options: { + banner: ';(function(){\n', + footer: '\n})();' + } } }, sass: { diff --git a/build/_after.js b/build/_after.js deleted file mode 100644 index 22a7560f7..000000000 --- a/build/_after.js +++ /dev/null @@ -1,2 +0,0 @@ - -})(); diff --git a/build/_before.js b/build/_before.js deleted file mode 100644 index aee291375..000000000 --- a/build/_before.js +++ /dev/null @@ -1 +0,0 @@ -;(function() { diff --git a/js/curve25519_compiled.js b/js/curve25519_compiled.js index 67851700b..01ac2d3f9 100644 --- a/js/curve25519_compiled.js +++ b/js/curve25519_compiled.js @@ -1,5 +1,4 @@ -;(function() { - +;(function(){ // Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code // Note: Some Emscripten settings may limit the speed of the generated code. try { @@ -2999,5 +2998,4 @@ run(); }; })(); - -})(); +})(); \ No newline at end of file