copy-webpack-plugin
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -7,6 +7,26 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
var _includes2 = require('lodash/includes'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _includes3 = _interopRequireDefault(_includes2); | ||
var _forEach2 = require('lodash/forEach'); | ||
var _forEach3 = _interopRequireDefault(_forEach2); | ||
var _now2 = require('lodash/now'); | ||
var _now3 = _interopRequireDefault(_now2); | ||
var _omit2 = require('lodash/omit'); | ||
var _omit3 = _interopRequireDefault(_omit2); | ||
var _assignIn2 = require('lodash/assignIn'); | ||
var _assignIn3 = _interopRequireDefault(_assignIn2); | ||
var _isArray2 = require('lodash/isArray'); | ||
var _isArray3 = _interopRequireDefault(_isArray2); | ||
var _path = require('path'); | ||
@@ -71,3 +91,3 @@ | ||
if (!_lodash2.default.isArray(patterns)) { | ||
if (!(0, _isArray3.default)(patterns)) { | ||
throw new Error('CopyWebpackPlugin: patterns must be an array'); | ||
@@ -108,3 +128,3 @@ } | ||
if (pattern.from.glob) { | ||
globOpts = _lodash2.default.assignIn(globOpts, _lodash2.default.omit(pattern.from, 'glob')); | ||
globOpts = (0, _assignIn3.default)(globOpts, (0, _omit3.default)(pattern.from, 'glob')); | ||
pattern.from = pattern.from.glob; | ||
@@ -208,3 +228,3 @@ } | ||
}).then(function () { | ||
lastGlobalUpdate = _lodash2.default.now(); | ||
lastGlobalUpdate = (0, _now3.default)(); | ||
}).catch(function (err) { | ||
@@ -218,4 +238,4 @@ compilation.errors.push(err); | ||
_lodash2.default.forEach(fileDependencies, function (file) { | ||
if (!_lodash2.default.includes(trackedFiles, file)) { | ||
(0, _forEach3.default)(fileDependencies, function (file) { | ||
if (!(0, _includes3.default)(trackedFiles, file)) { | ||
trackedFiles.push(file); | ||
@@ -227,4 +247,4 @@ } | ||
_lodash2.default.forEach(contextDependencies, function (context) { | ||
if (!_lodash2.default.includes(trackedDirs, context)) { | ||
(0, _forEach3.default)(contextDependencies, function (context) { | ||
if (!(0, _includes3.default)(trackedDirs, context)) { | ||
trackedDirs.push(context); | ||
@@ -244,3 +264,3 @@ } | ||
_lodash2.default.forEach(compilation.assets, function (asset, assetPath) { | ||
(0, _forEach3.default)(compilation.assets, function (asset, assetPath) { | ||
// If this is not our asset, ignore it | ||
@@ -268,2 +288,5 @@ if (!writtenAssets.has(assetPath)) { | ||
}; | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=index.js.map |
@@ -7,6 +7,22 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
var _omit2 = require('lodash/omit'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _omit3 = _interopRequireDefault(_omit2); | ||
var _assign2 = require('lodash/assign'); | ||
var _assign3 = _interopRequireDefault(_assign2); | ||
var _isObject2 = require('lodash/isObject'); | ||
var _isObject3 = _interopRequireDefault(_isObject2); | ||
var _isString2 = require('lodash/isString'); | ||
var _isString3 = _interopRequireDefault(_isString2); | ||
var _find2 = require('lodash/find'); | ||
var _find3 = _interopRequireDefault(_find2); | ||
var _minimatch = require('minimatch'); | ||
@@ -19,3 +35,3 @@ | ||
exports.default = function (pathName, ignoreList) { | ||
var matched = _lodash2.default.find(ignoreList, function (gb) { | ||
var matched = (0, _find3.default)(ignoreList, function (gb) { | ||
var glob = void 0, | ||
@@ -29,8 +45,8 @@ params = void 0; | ||
if (_lodash2.default.isString(gb)) { | ||
if ((0, _isString3.default)(gb)) { | ||
glob = gb; | ||
} else if (_lodash2.default.isObject(gb)) { | ||
} else if ((0, _isObject3.default)(gb)) { | ||
glob = gb.glob || ''; | ||
// Overwrite minimatch defaults | ||
params = _lodash2.default.assign(params, _lodash2.default.omit(gb, ['glob'])); | ||
params = (0, _assign3.default)(params, (0, _omit3.default)(gb, ['glob'])); | ||
} else { | ||
@@ -44,2 +60,5 @@ glob = ''; | ||
return Boolean(matched); | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=shouldIgnore.js.map |
@@ -7,5 +7,5 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
var _last2 = require('lodash/last'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _last3 = _interopRequireDefault(_last2); | ||
@@ -21,3 +21,6 @@ var _path = require('path'); | ||
return pattern.toType !== 'file' && (_path2.default.extname(filename) === '' || _lodash2.default.last(filename) === _path2.default.sep || _lodash2.default.last(filename) === '/' || pattern.toType === 'dir'); | ||
}; | ||
return pattern.toType !== 'file' && (_path2.default.extname(filename) === '' || (0, _last3.default)(filename) === _path2.default.sep || (0, _last3.default)(filename) === '/' || pattern.toType === 'dir'); | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=toLooksLikeDirectory.js.map |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _head2 = require('lodash/head'); | ||
var _head3 = _interopRequireDefault(_head2); | ||
var _bluebird = require('bluebird'); | ||
@@ -12,6 +16,2 @@ | ||
var _lodash = require('lodash'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _shouldIgnore = require('./shouldIgnore'); | ||
@@ -63,3 +63,3 @@ | ||
// Make sure it doesn't start with the separator | ||
if (_lodash2.default.head(relFileDest) === _path2.default.sep) { | ||
if ((0, _head3.default)(relFileDest) === _path2.default.sep) { | ||
relFileDest = relFileDest.slice(1); | ||
@@ -77,2 +77,5 @@ } | ||
}); | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=writeDirectoryToAssets.js.map |
@@ -46,2 +46,5 @@ 'use strict'; | ||
}); | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=writeFileToAssets.js.map |
{ | ||
"name": "copy-webpack-plugin", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Copy files and directories in webpack", | ||
@@ -29,16 +29,17 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"lint": "eslint src/ tests/", | ||
"pretest": "npm run lint && npm run build && npm run build:tests", | ||
"test": "mocha compiled_tests/", | ||
"build": "babel src/ --out-dir dist/", | ||
"build:tests": "babel tests/ --out-dir compiled_tests/ && ncp tests/helpers compiled_tests/helpers" | ||
"lint": "pragmatist lint", | ||
"watch-lint": "pragmatist watch-lint", | ||
"test": "pragmatist --es5 --type-assertions test", | ||
"watch-test": "pragmatist --es5 --type-assertions watch-test", | ||
"build": "pragmatist --es5 build", | ||
"watch-build": "pragmatist --es5 watch-build" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"chai": "^3.4.0", | ||
"eslint": "^2.9.0", | ||
"mocha": "^2.4.5", | ||
"ncp": "^2.0.0" | ||
"eslint": "^2.7.0", | ||
"eslint-plugin-jsdoc": "^2.3.1", | ||
"eslint-plugin-lodash": "^1.6.5", | ||
"eslint-plugin-react": "^4.3.0", | ||
"pragmatist": "^3.0.21" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
45625
14
354
0
149