{"_id":"@buxlabs/gulp-amd-to-before-all","_rev":"8-c536c429f0136d04e32a471c70e679a0","name":"@buxlabs/gulp-amd-to-before-all","description":"gulp plugin that transpiles amd to jasmine's beforeAll","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@buxlabs/gulp-amd-to-before-all","version":"1.0.0","description":"gulp plugin that transpiles amd to jasmine's beforeAll","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","watch:test":"npm t -- --watch","coverage":"nyc npm t"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/gulp-amd-to-before-all.git"},"keywords":["gulp","plugin","amd","jasmine"],"author":{"name":"Emil Ajdyna","email":"emil@ajdyna.com"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/gulp-amd-to-before-all/issues"},"homepage":"https://github.com/buxlabs/gulp-amd-to-before-all#readme","devDependencies":{"ava":"0.18.1","gulp":"3.9.1","gulp-plumber":"1.1.0","nyc":"10.1.2"},"dependencies":{"@buxlabs/amd-to-before-all":"0.1.9","gulp-util":"3.0.8","through2":"2.0.3"},"gitHead":"957087a04cc629c794bbb1356cbf2c28353f3dbe","_id":"@buxlabs/gulp-amd-to-before-all@1.0.0","_shasum":"fce52a5accde3fdfaf67b7340e345b467ac1f29e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"shasum":"fce52a5accde3fdfaf67b7340e345b467ac1f29e","tarball":"https://registry.npmjs.org/@buxlabs/gulp-amd-to-before-all/-/gulp-amd-to-before-all-1.0.0.tgz","integrity":"sha512-ERNlUowjGwZ3kOt6JFvT9OgwyWrb5bbxaKCMBoBAQL4TLus8eXSIp1gfyvwBXzTJiMxfKRil/lDsIPLLViULQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD07IwWq4XGfkQXdeHa6lxnceI9TNtVfyGHHyBZhhpnWwIgMzSYvR1Va8Dzp3Rkg+ngAyJhTALXU4WU8IXvDavbGvw="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gulp-amd-to-before-all-1.0.0.tgz_1486479915819_0.38481617206707597"},"directories":{}},"1.0.1":{"name":"@buxlabs/gulp-amd-to-before-all","version":"1.0.1","description":"gulp plugin that transpiles amd to jasmine's beforeAll","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","watch:test":"npm t -- --watch","coverage":"nyc npm t"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/gulp-amd-to-before-all.git"},"keywords":["gulp","plugin","amd","jasmine"],"author":{"name":"Emil Ajdyna","email":"emil@ajdyna.com"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/gulp-amd-to-before-all/issues"},"homepage":"https://github.com/buxlabs/gulp-amd-to-before-all#readme","devDependencies":{"ava":"0.18.1","gulp":"3.9.1","gulp-plumber":"1.1.0","nyc":"10.1.2"},"dependencies":{"@buxlabs/amd-to-before-all":"0.1.9","gulp-util":"3.0.8","through2":"2.0.3"},"gitHead":"cee9cbe9e7d78b43a53e17ea45dd82955bef6882","_id":"@buxlabs/gulp-amd-to-before-all@1.0.1","_shasum":"85c2fc204bb1795b7f71dde13b66fccfd1f77b5f","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"shasum":"85c2fc204bb1795b7f71dde13b66fccfd1f77b5f","tarball":"https://registry.npmjs.org/@buxlabs/gulp-amd-to-before-all/-/gulp-amd-to-before-all-1.0.1.tgz","integrity":"sha512-KeqwSqVKF4s9Z2JggR31krbnqXI/dvPel6CrsUziNiPsYRPNSwxvG+UwmR+j+Lh2PJesROY6yCZlHc7lY702gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWS5s+DHVf84Wv9hJHA6qZP3SOcQHKZDBemLHcWTv16AiAoKRTYij4w/aV5XPi3UgxhXsMARE7L3r+yiN+urnxDDg=="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gulp-amd-to-before-all-1.0.1.tgz_1486480344851_0.47978982934728265"},"directories":{}},"1.0.2":{"name":"@buxlabs/gulp-amd-to-before-all","version":"1.0.2","description":"gulp plugin that transpiles amd to jasmine's beforeAll","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","watch:test":"npm t -- --watch","coverage":"nyc npm t"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/gulp-amd-to-before-all.git"},"keywords":["gulp","plugin","amd","jasmine"],"author":{"name":"Emil Ajdyna","email":"emil@ajdyna.com"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/gulp-amd-to-before-all/issues"},"homepage":"https://github.com/buxlabs/gulp-amd-to-before-all#readme","devDependencies":{"ava":"0.18.1","gulp":"3.9.1","gulp-plumber":"1.1.0","nyc":"10.1.2"},"dependencies":{"@buxlabs/amd-to-before-all":"^0.2.0","gulp-util":"3.0.8","through2":"2.0.3"},"gitHead":"eb32ab051d77042b79e92f217473b9d59559929c","_id":"@buxlabs/gulp-amd-to-before-all@1.0.2","_shasum":"8f1ad91cc8c449dc2ec5755f5f9b9a3a37b56b68","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"shasum":"8f1ad91cc8c449dc2ec5755f5f9b9a3a37b56b68","tarball":"https://registry.npmjs.org/@buxlabs/gulp-amd-to-before-all/-/gulp-amd-to-before-all-1.0.2.tgz","integrity":"sha512-3/Wy6floEbitJj4fz726mQGODMqqwU+4/XQlhudfkL253iIhEdbochEqtCMwQiuObISwdjWps+YrJ7zePAsv8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUMh/knVO/6gfa2BOOOiaahugaCDqm7fg93E61aJ0OQAiEAxu/WP+334NYikuIdHNaJ6EzY+wy5MkYOuZv+6pkTn9Q="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gulp-amd-to-before-all-1.0.2.tgz_1487342810992_0.052395331440493464"},"directories":{}},"1.1.0":{"name":"@buxlabs/gulp-amd-to-before-all","version":"1.1.0","description":"gulp plugin that transpiles amd to jasmine's beforeAll","main":"index.js","scripts":{"test":"ava \"test/spec/**/*.js\"","watch:test":"npm t -- --watch","coverage":"nyc npm t"},"repository":{"type":"git","url":"git+https://github.com/buxlabs/gulp-amd-to-before-all.git"},"keywords":["gulp","plugin","amd","jasmine"],"author":{"name":"Emil Ajdyna","email":"emil@ajdyna.com"},"license":"MIT","bugs":{"url":"https://github.com/buxlabs/gulp-amd-to-before-all/issues"},"homepage":"https://github.com/buxlabs/gulp-amd-to-before-all#readme","devDependencies":{"ava":"0.18.1","gulp":"3.9.1","gulp-plumber":"1.1.0","nyc":"10.1.2"},"dependencies":{"@buxlabs/amd-to-before-all":"0.2.0","gulp-util":"3.0.8","through2":"2.0.3"},"gitHead":"ecf57abbe778d6ea943a545ec081bb1fd0a14a32","_id":"@buxlabs/gulp-amd-to-before-all@1.1.0","_shasum":"1068b9bd43535e06595ec57ef1fd5354c3a35d73","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"buxlabs","email":"emil@ajdyna.com"},"dist":{"shasum":"1068b9bd43535e06595ec57ef1fd5354c3a35d73","tarball":"https://registry.npmjs.org/@buxlabs/gulp-amd-to-before-all/-/gulp-amd-to-before-all-1.1.0.tgz","integrity":"sha512-1yjmNc90pD3eZdMie+6SjyhM8U3+PIEV5NfwhECVhs7KySM4JM4carIMiSuFkk7w6R0QcGQRtqy9YLFKqJ80sA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHa/bKWXskxqs8QKLr1Di2UUdq/Vxk9sJyvIaWOWfKSSAiAowJqeUrKLbjQ99Th8gI6UCrHsJU1SdGjLcqZXMvKJww=="}]},"maintainers":[{"name":"buxlabs","email":"emil@ajdyna.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-amd-to-before-all-1.1.0.tgz_1493369299310_0.09702322701923549"},"directories":{}}},"readme":"# gulp plugin that converts AMD syntax to beforeAll\n\n## Idea\n\nRunning thousands of unit tests might be time consuming. To speed up the start \ntime slightly you might try to use the beforeAll syntax instead of AMD. This way \nthe browser will load the dependencies before the given spec starts instead of \nloading all of them in the beginning.\n\n## Installation\n\n`npm install @buxlabs/gulp-amd-to-before-all`\n\n## Usage\n\nConvert files with:\n\n```javascript\nconst gulp = require('gulp');\nconst converter = require('@buxlabs/gulp-amd-to-before-all');\n\nmodule.exports = function (options) {\n    return gulp.src(options.src)\n    .pipe(converter())\n    .pipe(gulp.dest(options.dest));\n};\n\n```\n\n## Example:\n\n**AMD**\n\n```javascript\ndefine(['backbone'], function (Backbone) {\n    'use strict';\n\n    describe('Backbone', function () {\n        it('is defined', function () {\n            expect(Backbone).toBeDefined();\n        }); \n    });\n});\n```\n\n**beforeAll**\n\n```javascript\ndescribe('Backbone', function () {\n\n    var Backbone;\n    \n    beforeAll(function (done) {\n        require([\"backbone\"], function () {\n            Backbone = arguments[0];\n            done(); \n        });\n    });\n\n    it('is defined', function () {\n        expect(Backbone).toBeDefined();\n    }); \n});\n```\n","maintainers":[{"email":"emilajdyna@gmail.com","name":"buxlabs-dev"},{"email":"emil@ajdyna.com","name":"emilos"}],"time":{"modified":"2022-06-12T15:34:38.441Z","created":"2017-02-07T15:05:16.481Z","1.0.0":"2017-02-07T15:05:16.481Z","1.0.1":"2017-02-07T15:12:25.513Z","1.0.2":"2017-02-17T14:46:51.572Z","1.1.0":"2017-04-28T08:48:21.178Z"},"homepage":"https://github.com/buxlabs/gulp-amd-to-before-all#readme","keywords":["gulp","plugin","amd","jasmine"],"repository":{"type":"git","url":"git+https://github.com/buxlabs/gulp-amd-to-before-all.git"},"author":{"name":"Emil Ajdyna","email":"emil@ajdyna.com"},"bugs":{"url":"https://github.com/buxlabs/gulp-amd-to-before-all/issues"},"license":"MIT","readmeFilename":"README.md"}