From: Iskren Chernev Date: Mon, 9 Dec 2013 17:42:55 +0000 (-0800) Subject: Add concat:tests for use in browsers X-Git-Tag: 2.5.1~18^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3513b1370011842aecece180a7d17c2bbdfb721a;p=thirdparty%2Fmoment.git Add concat:tests for use in browsers --- diff --git a/Gruntfile.js b/Gruntfile.js index 05e28cc17..d8ca9869f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,6 +19,15 @@ module.exports = function (grunt) { langs: { src: 'lang/*.js', dest: 'min/langs.js' + }, + tests: { + src: [ + 'test/browser-prefix.js', + 'test/moment/*.js', + 'test/lang/*.js', + 'test/browser-suffix.js' + ], + dest: 'min/tests.js' } }, @@ -27,8 +36,9 @@ module.exports = function (grunt) { frameworks: ['nodeunit'], files: [ 'min/moment-with-langs.js', - 'test/moment/**/*.js', - 'test/lang/**/*.js', + 'min/tests.js', + // 'test/moment/**/*.js', + // 'test/lang/**/*.js', 'test/browser.js' ], sauceLabs: { diff --git a/test/browser-prefix.js b/test/browser-prefix.js new file mode 100644 index 000000000..771369028 --- /dev/null +++ b/test/browser-prefix.js @@ -0,0 +1,4 @@ +(function () { + var global = this; + var require = function() { return global.moment; }; + var exports = global.NPM_TESTS = {}; diff --git a/test/browser-suffix.js b/test/browser-suffix.js new file mode 100644 index 000000000..b6bc0f694 --- /dev/null +++ b/test/browser-suffix.js @@ -0,0 +1 @@ +}(this));