copy-webpack-plugin
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -7,26 +7,6 @@ 'use strict'; | ||
var _includes2 = require('lodash/includes'); | ||
var _lodash = require('lodash'); | ||
var _includes3 = _interopRequireDefault(_includes2); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
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'); | ||
@@ -91,3 +71,3 @@ | ||
if (!(0, _isArray3.default)(patterns)) { | ||
if (!_lodash2.default.isArray(patterns)) { | ||
throw new Error('CopyWebpackPlugin: patterns must be an array'); | ||
@@ -128,3 +108,3 @@ } | ||
if (pattern.from.glob) { | ||
globOpts = (0, _assignIn3.default)(globOpts, (0, _omit3.default)(pattern.from, 'glob')); | ||
globOpts = _lodash2.default.assignIn(globOpts, _lodash2.default.omit(pattern.from, 'glob')); | ||
pattern.from = pattern.from.glob; | ||
@@ -228,3 +208,3 @@ } | ||
}).then(function () { | ||
lastGlobalUpdate = (0, _now3.default)(); | ||
lastGlobalUpdate = _lodash2.default.now(); | ||
}).catch(function (err) { | ||
@@ -238,4 +218,4 @@ compilation.errors.push(err); | ||
(0, _forEach3.default)(fileDependencies, function (file) { | ||
if (!(0, _includes3.default)(trackedFiles, file)) { | ||
_lodash2.default.forEach(fileDependencies, function (file) { | ||
if (!_lodash2.default.includes(trackedFiles, file)) { | ||
trackedFiles.push(file); | ||
@@ -247,4 +227,4 @@ } | ||
(0, _forEach3.default)(contextDependencies, function (context) { | ||
if (!(0, _includes3.default)(trackedDirs, context)) { | ||
_lodash2.default.forEach(contextDependencies, function (context) { | ||
if (!_lodash2.default.includes(trackedDirs, context)) { | ||
trackedDirs.push(context); | ||
@@ -264,3 +244,3 @@ } | ||
(0, _forEach3.default)(compilation.assets, function (asset, assetPath) { | ||
_lodash2.default.forEach(compilation.assets, function (asset, assetPath) { | ||
// If this is not our asset, ignore it | ||
@@ -288,5 +268,2 @@ if (!writtenAssets.has(assetPath)) { | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=index.js.map | ||
}; |
@@ -7,22 +7,6 @@ 'use strict'; | ||
var _omit2 = require('lodash/omit'); | ||
var _lodash = require('lodash'); | ||
var _omit3 = _interopRequireDefault(_omit2); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
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'); | ||
@@ -35,3 +19,3 @@ | ||
exports.default = function (pathName, ignoreList) { | ||
var matched = (0, _find3.default)(ignoreList, function (gb) { | ||
var matched = _lodash2.default.find(ignoreList, function (gb) { | ||
var glob = void 0, | ||
@@ -45,8 +29,8 @@ params = void 0; | ||
if ((0, _isString3.default)(gb)) { | ||
if (_lodash2.default.isString(gb)) { | ||
glob = gb; | ||
} else if ((0, _isObject3.default)(gb)) { | ||
} else if (_lodash2.default.isObject(gb)) { | ||
glob = gb.glob || ''; | ||
// Overwrite minimatch defaults | ||
params = (0, _assign3.default)(params, (0, _omit3.default)(gb, ['glob'])); | ||
params = _lodash2.default.assign(params, _lodash2.default.omit(gb, ['glob'])); | ||
} else { | ||
@@ -60,5 +44,2 @@ glob = ''; | ||
return Boolean(matched); | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=shouldIgnore.js.map | ||
}; |
@@ -7,5 +7,5 @@ 'use strict'; | ||
var _last2 = require('lodash/last'); | ||
var _lodash = require('lodash'); | ||
var _last3 = _interopRequireDefault(_last2); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
@@ -19,8 +19,5 @@ var _path = require('path'); | ||
exports.default = function (pattern) { | ||
var filename = pattern.to; | ||
var filename = pattern.to || ''; | ||
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 | ||
return pattern.toType !== 'file' && (_path2.default.extname(filename) === '' || _lodash2.default.last(filename) === _path2.default.sep || _lodash2.default.last(filename) === '/' || pattern.toType === 'dir'); | ||
}; |
@@ -7,6 +7,2 @@ 'use strict'; | ||
var _head2 = require('lodash/head'); | ||
var _head3 = _interopRequireDefault(_head2); | ||
var _bluebird = require('bluebird'); | ||
@@ -16,2 +12,6 @@ | ||
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 ((0, _head3.default)(relFileDest) === _path2.default.sep) { | ||
if (_lodash2.default.head(relFileDest) === _path2.default.sep) { | ||
relFileDest = relFileDest.slice(1); | ||
@@ -77,5 +77,2 @@ } | ||
}); | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=writeDirectoryToAssets.js.map | ||
}; |
@@ -46,5 +46,2 @@ 'use strict'; | ||
}); | ||
}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=writeFileToAssets.js.map | ||
}; |
{ | ||
"name": "copy-webpack-plugin", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Copy files and directories in webpack", | ||
@@ -29,17 +29,16 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"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" | ||
"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" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"chai": "^3.4.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" | ||
"eslint": "^2.9.0", | ||
"mocha": "^2.4.5", | ||
"ncp": "^2.0.0" | ||
} | ||
} |
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
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
18534
8
321
1
0