From 68ff1d51e6a520c9a695fdfaeb074675dee5f101 Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Wed, 3 Aug 2016 01:32:14 -0500 Subject: [PATCH] fix(build): Removes dist from scm (#158) --- dist/karma-webpack.js | 305 ------------------------------------------ 1 file changed, 305 deletions(-) delete mode 100644 dist/karma-webpack.js diff --git a/dist/karma-webpack.js b/dist/karma-webpack.js deleted file mode 100644 index 8341187..0000000 --- a/dist/karma-webpack.js +++ /dev/null @@ -1,305 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("async"), require("loader-utils"), require("lodash"), require("path"), require("source-map"), require("webpack"), require("webpack-dev-middleware")); - else if(typeof define === 'function' && define.amd) - define(["async", "loader-utils", "lodash", "path", "source-map", "webpack", "webpack-dev-middleware"], factory); - else if(typeof exports === 'object') - exports["karma-webpack"] = factory(require("async"), require("loader-utils"), require("lodash"), require("path"), require("source-map"), require("webpack"), require("webpack-dev-middleware")); - else - root["karma-webpack"] = factory(root["async"], root["loader-utils"], root["lodash"], root["path"], root["source-map"], root["webpack"], root["webpack-dev-middleware"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_13__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_14__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.l = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // identity function for calling harmory imports with the correct context -/******/ __webpack_require__.i = function(value) { return value; }; - -/******/ // define getter function for harmory exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ }; - -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; - -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 15); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var _stringify=__webpack_require__(7);var _stringify2=_interopRequireDefault(_stringify);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}//var path = require('path') -var SourceNode=__webpack_require__(14).SourceNode;var loaderUtils=__webpack_require__(13);module.exports=function(content,map){this.cacheable();var sourceNode;var id=this.options.name;if(!id){this.callback(null,content,map);}if(map){sourceNode=SourceNode.fromSourceWithMap(content,map);}else{var fileName=loaderUtils.getRemainingRequest(this);sourceNode=new SourceNode(null,null,null);content.split('\n').forEach(function(line,idx){sourceNode.add(new SourceNode(idx+1,0,fileName,line+'\n'));});sourceNode.setSourceContent(fileName,content);}var concatSrc=new SourceNode();concatSrc.add(['describe('+(0,_stringify2.default)(id)+', function() {\n',sourceNode,'\n});']);var result=concatSrc.toStringWithSourceMap();this.callback(undefined,result.code,result.map.toString());}; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9tb2NoYS1lbnYtbG9hZGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJrTkFBQTtBQUNBLEdBQUksWUFBYSxRQUFRLFlBQVIsRUFBc0IsVUFBdkMsQ0FDQSxHQUFJLGFBQWMsUUFBUSxjQUFSLENBQWxCLENBRUEsT0FBTyxPQUFQLENBQWlCLFNBQVMsT0FBVCxDQUFrQixHQUFsQixDQUF1QixDQUN0QyxLQUFLLFNBQUwsR0FFQSxHQUFJLFdBQUosQ0FDQSxHQUFJLElBQUssS0FBSyxPQUFMLENBQWEsSUFBdEIsQ0FFQSxHQUFJLENBQUMsRUFBTCxDQUFTLENBQ1AsS0FBSyxRQUFMLENBQWMsSUFBZCxDQUFvQixPQUFwQixDQUE2QixHQUE3QixFQUNELENBRUQsR0FBSSxHQUFKLENBQVMsQ0FDUCxXQUFhLFdBQVcsaUJBQVgsQ0FBNkIsT0FBN0IsQ0FBc0MsR0FBdEMsQ0FBYixDQUNELENBRkQsSUFFTyxDQUNMLEdBQUksVUFBVyxZQUFZLG1CQUFaLENBQWdDLElBQWhDLENBQWYsQ0FFQSxXQUFhLEdBQUksV0FBSixDQUFlLElBQWYsQ0FBcUIsSUFBckIsQ0FBMkIsSUFBM0IsQ0FBYixDQUNBLFFBQVEsS0FBUixDQUFjLElBQWQsRUFBb0IsT0FBcEIsQ0FBNEIsU0FBUyxJQUFULENBQWUsR0FBZixDQUFvQixDQUM5QyxXQUFXLEdBQVgsQ0FBZSxHQUFJLFdBQUosQ0FBZSxJQUFNLENBQXJCLENBQXdCLENBQXhCLENBQTJCLFFBQTNCLENBQXFDLEtBQU8sSUFBNUMsQ0FBZixFQUNELENBRkQsRUFHQSxXQUFXLGdCQUFYLENBQTRCLFFBQTVCLENBQXND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m9kZSA9IG5ldyBTb3VyY2VOb2RlKG51bGwsIG51bGwsIG51bGwpXG4gICAgY29udGVudC5zcGxpdCgnXFxuJykuZm9yRWFjaChmdW5jdGlvbihsaW5lLCBpZHgpIHtcbiAgICAgIHNvdXJjZU5vZGUuYWRkKG5ldyBTb3VyY2VOb2RlKGlkeCArIDEsIDAsIGZpbGVOYW1lLCBsaW5lICsgJ1xcbicpKVxuICAgIH0pXG4gICAgc291cmNlTm9kZS5zZXRTb3VyY2VDb250ZW50KGZpbGVOYW1lLCBjb250ZW50KVxuICB9XG5cbiAgdmFyIGNvbmNhdFNyYyA9IG5ldyBTb3VyY2VOb2RlKClcblxuICBjb25jYXRTcmMuYWRkKFtcbiAgICAnZGVzY3JpYmUoJyArIEpTT04uc3RyaW5naWZ5KGlkKSArICcsIGZ1bmN0aW9uKCkge1xcbicsIHNvdXJjZU5vZGUsICdcXG59KTsnXG4gIF0pXG5cbiAgdmFyIHJlc3VsdCA9IGNvbmNhdFNyYy50b1N0cmluZ1dpdGhTb3VyY2VNYXAoKVxuXG4gIHRoaXMuY2FsbGJhY2sodW5kZWZpbmVkLCByZXN1bHQuY29kZSwgcmVzdWx0Lm1hcC50b1N0cmluZygpKVxufVxuIl19 - -/***/ }, -/* 1 */ -/***/ function(module, exports, __webpack_require__) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -var ModuleDependency = __webpack_require__(12); - -function SingleEntryDependency(request) { - ModuleDependency.call(this, request); -} -module.exports = SingleEntryDependency; - -SingleEntryDependency.prototype = Object.create(ModuleDependency.prototype); -SingleEntryDependency.prototype.constructor = SingleEntryDependency; -SingleEntryDependency.prototype.type = "single entry"; - - -/***/ }, -/* 2 */ -/***/ function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_2__; - -/***/ }, -/* 3 */ -/***/ function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_3__; - -/***/ }, -/* 4 */ -/***/ function(module, exports) { - -module.exports = require("path"); - -/***/ }, -/* 5 */ -/***/ function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_5__; - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_6__; - -/***/ }, -/* 7 */ -/***/ function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(8), __esModule: true }; - -/***/ }, -/* 8 */ -/***/ function(module, exports, __webpack_require__) { - -var core = __webpack_require__(9) - , $JSON = core.JSON || (core.JSON = {stringify: JSON.stringify}); -module.exports = function stringify(it){ // eslint-disable-line no-unused-vars - return $JSON.stringify.apply($JSON, arguments); -}; - -/***/ }, -/* 9 */ -/***/ function(module, exports) { - -var core = module.exports = {version: '2.4.0'}; -if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef - -/***/ }, -/* 10 */ -/***/ function(module, exports, __webpack_require__) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -function Dependency() { - this.module = null; -} -module.exports = Dependency; - -Dependency.prototype.isEqualResource = function( /* other */ ) { - return false; -}; - -// Returns the referenced module and export -Dependency.prototype.getReference = function() { - if(!this.module) return null; - return { - module: this.module, - importedNames: true, // true: full object, false: only sideeffects/no export, array of strings: the exports with this names - } -}; - -Dependency.prototype.getWarnings = function() { - return null; -}; - -Dependency.prototype.updateHash = function(hash) { - hash.update((this.module && this.module.id) + ""); -}; - -Dependency.prototype.disconnect = function() { - this.module = null; -}; - -Dependency.compare = function(a, b) { - return Dependency.compareLocations(a.loc, b.loc); -}; - -Dependency.compareLocations = __webpack_require__(11); - - -/***/ }, -/* 11 */ -/***/ function(module, exports) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -module.exports = function compareLocations(a, b) { - if(typeof a === "string") { - if(typeof b === "string") { - if(a < b) return -1; - if(a > b) return 1; - return 0; - } else if(typeof b === "object") { - return 1; - } else { - return 0; - } - } else if(typeof a === "object") { - if(typeof b === "string") { - return -1; - } else if(typeof b === "object") { - if(a.start) a = a.start; - if(b.start) b = b.start; - if(a.line < b.line) return -1; - if(a.line > b.line) return 1; - if(a.column < b.column) return -1; - if(a.column > b.column) return 1; - if(a.index < b.index) return -1; - if(a.index > b.index) return 1; - return 0; - } else { - return 0; - } - } -}; - - -/***/ }, -/* 12 */ -/***/ function(module, exports, __webpack_require__) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -var Dependency = __webpack_require__(10); - -function ModuleDependency(request) { - Dependency.call(this); - this.request = request; - this.userRequest = request; -} -module.exports = ModuleDependency; - -ModuleDependency.prototype = Object.create(Dependency.prototype); -ModuleDependency.prototype.constructor = ModuleDependency; -ModuleDependency.prototype.isEqualResource = function isEqualResource(other) { - if(!(other instanceof ModuleDependency)) - return false; - return this.request === other.request; -}; - - -/***/ }, -/* 13 */ -/***/ function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_13__; - -/***/ }, -/* 14 */ -/***/ function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_14__; - -/***/ }, -/* 15 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var _=__webpack_require__(3);var path=__webpack_require__(4);var async=__webpack_require__(2);var webpackDevMiddleware=__webpack_require__(6);var webpack=__webpack_require__(5);var SingleEntryDependency=__webpack_require__(1);var blocked=[];var isBlocked=false;function Plugin(/* config.webpack */webpackOptions,/* config.webpackServer */webpackServerOptions,/* config.webpackMiddleware */webpackMiddlewareOptions,/* config.basePath */basePath,/* config.files */files,/* config.frameworks */frameworks,customFileHandlers,emitter){webpackOptions=_.clone(webpackOptions)||{};webpackMiddlewareOptions=_.clone(webpackMiddlewareOptions||webpackServerOptions)||{};var applyOptions=Array.isArray(webpackOptions)?webpackOptions:[webpackOptions];var includeIndex=applyOptions.length>1;applyOptions.forEach(function(webpackOptions,index){// The webpack tier owns the watch behavior so we want to force it in the config -webpackOptions.watch=true;// Webpack 2.1.0-beta.7+ will throw in error if both entry and plugins are not specified in options -// https://github.com/webpack/webpack/commit/b3bc5427969e15fd3663d9a1c57dbd1eb2c94805 -if(!webpackOptions.entry){webpackOptions.entry={};};if(!webpackOptions.output){webpackOptions.output={};};// When using an array, even of length 1, we want to include the index value for the build. -// This is due to the way that the dev server exposes commonPath for build output. -var indexPath=includeIndex?index+'/':'';var publicPath=indexPath!==''?indexPath+'/':'';// Must have the common _karma_webpack_ prefix on path here to avoid -// https://github.com/webpack/webpack/issues/645 -webpackOptions.output.path='/_karma_webpack_/'+indexPath;webpackOptions.output.publicPath='/_karma_webpack_/'+publicPath;webpackOptions.output.filename='[name]';if(includeIndex){webpackOptions.output.jsonpFunction='webpackJsonp'+index;}webpackOptions.output.chunkFilename='[id].bundle.js';});this.emitter=emitter;this.wrapMocha=frameworks.indexOf('mocha')>=0&&includeIndex;this.optionsCount=applyOptions.length;this.files=[];this.basePath=basePath;this.waiting=[];var compiler=webpack(webpackOptions);var applyPlugins=compiler.compilers||[compiler];applyPlugins.forEach(function(compiler){compiler.plugin('this-compilation',function(compilation,params){compilation.dependencyFactories.set(SingleEntryDependency,params.normalModuleFactory);});compiler.plugin('make',this.make.bind(this));},this);['invalid','watch-run','run'].forEach(function(name){compiler.plugin(name,function(_,callback){isBlocked=true;if(typeof callback==='function'){callback();}});});compiler.plugin('done',function(stats){var applyStats=Array.isArray(stats.stats)?stats.stats:[stats];var assets=[];var noAssets=false;applyStats.forEach(function(stats){stats=stats.toJson();assets.push.apply(assets,stats.assets);if(stats.assets.length===0){noAssets=true;}});if(!this.waiting||this.waiting.length===0){this.notifyKarmaAboutChanges();}if(this.waiting&&!noAssets){var w=this.waiting;this.waiting=null;w.forEach(function(cb){cb();});}isBlocked=false;for(var i=0;i=0){return;}this.files.push(entry);return true;};Plugin.prototype.make=function(compilation,callback){async.forEach(this.files.slice(),function(file,callback){var entry=file;if(this.wrapMocha){entry=/*require.resolve*/(0)+'!'+entry;}var dep=new SingleEntryDependency(entry);compilation.addEntry('',dep,path.relative(this.basePath,file).replace(/\\/g,'/'),function(){// If the module fails because of an File not found error, remove the test file -if(dep.module&&dep.module.error&&dep.module.error.error&&dep.module.error.error.code==='ENOENT'){this.files=this.files.filter(function(f){return file!==f;});this.middleware.invalidate();}callback();}.bind(this));}.bind(this),callback);};Plugin.prototype.readFile=function(file,callback){var middleware=this.middleware;var optionsCount=this.optionsCount;function doRead(){if(optionsCount>1){async.times(optionsCount,function(idx,callback){middleware.fileSystem.readFile('/_karma_webpack_/'+idx+'/'+file.replace(/\\/g,'/'),callback);},function(err,contents){if(err){return callback(err);};contents=contents.reduce(function(arr,x){if(!arr){return[x];};arr.push(new Buffer('\n'),x);return arr;},null);callback(null,Buffer.concat(contents));});}else{middleware.fileSystem.readFile('/_karma_webpack_/'+file.replace(/\\/g,'/'),callback);}}if(!this.waiting){doRead();}else{// Retry to read once a build is finished -// do it on process.nextTick to catch changes while building -this.waiting.push(process.nextTick.bind(process,this.readFile.bind(this,file,callback)));}};function createPreprocesor(/* config.basePath */basePath,webpackPlugin){return function(content,file,done){if(webpackPlugin.addFile(file.path)){// recompile as we have an asset that we have not seen before -webpackPlugin.middleware.invalidate();}// read blocks until bundle is done -webpackPlugin.readFile(path.relative(basePath,file.path),function(err,content){if(err){throw err;}done(err,content&&content.toString());});};}function createWebpackBlocker(){return function(request,response,next){if(isBlocked){blocked.push(next);}else{next();}};}module.exports={webpackPlugin:['type',Plugin],'preprocessor:webpack':['factory',createPreprocesor],'middleware:webpackBlocker':['factory',createWebpackBlocker]}; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9rYXJtYS13ZWJwYWNrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJhQUFBLEdBQUksR0FBSSxRQUFRLFFBQVIsQ0FBUixDQUNBLEdBQUksTUFBTyxRQUFRLE1BQVIsQ0FBWCxDQUNBLEdBQUksT0FBUSxRQUFRLE9BQVIsQ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