aboutsummaryrefslogtreecommitdiff
path: root/node_modules/copy-webpack-plugin/dist/utils
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/copy-webpack-plugin/dist/utils')
-rw-r--r--node_modules/copy-webpack-plugin/dist/utils/escape.js35
-rw-r--r--node_modules/copy-webpack-plugin/dist/utils/isObject.js9
-rw-r--r--node_modules/copy-webpack-plugin/dist/utils/promisify.js26
-rw-r--r--node_modules/copy-webpack-plugin/dist/utils/readFilePromise.js17
-rw-r--r--node_modules/copy-webpack-plugin/dist/utils/readPromise.js17
-rw-r--r--node_modules/copy-webpack-plugin/dist/utils/statPromise.js17
6 files changed, 0 insertions, 121 deletions
diff --git a/node_modules/copy-webpack-plugin/dist/utils/escape.js b/node_modules/copy-webpack-plugin/dist/utils/escape.js
deleted file mode 100644
index ac900b69..00000000
--- a/node_modules/copy-webpack-plugin/dist/utils/escape.js
+++ /dev/null
@@ -1,35 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = escape;
-
-var _path = require('path');
-
-var _path2 = _interopRequireDefault(_path);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function escape(context, from) {
- if (from && _path2.default.isAbsolute(from)) {
- return from;
- } else {
- // Ensure context is escaped before globbing
- // Handles special characters in paths
- var absoluteContext = _path2.default.resolve(context).replace(/[\*|\?|\!|\(|\)|\[|\]|\{|\}]/g, function (substring) {
- return '[' + substring + ']';
- });
-
- if (!from) {
- return absoluteContext;
- }
-
- // Cannot use path.join/resolve as it "fixes" the path separators
- if (absoluteContext.endsWith('/')) {
- return '' + absoluteContext + from;
- } else {
- return absoluteContext + '/' + from;
- }
- }
-} \ No newline at end of file
diff --git a/node_modules/copy-webpack-plugin/dist/utils/isObject.js b/node_modules/copy-webpack-plugin/dist/utils/isObject.js
deleted file mode 100644
index e033557d..00000000
--- a/node_modules/copy-webpack-plugin/dist/utils/isObject.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-exports.default = function (val) {
- return Object.prototype.toString.call(val) === '[object Object]' ? true : false;
-}; \ No newline at end of file
diff --git a/node_modules/copy-webpack-plugin/dist/utils/promisify.js b/node_modules/copy-webpack-plugin/dist/utils/promisify.js
deleted file mode 100644
index a49fc55b..00000000
--- a/node_modules/copy-webpack-plugin/dist/utils/promisify.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-var stat = exports.stat = function stat(inputFileSystem, path) {
- return new Promise(function (resolve, reject) {
- inputFileSystem.stat(path, function (err, stats) {
- if (err) {
- reject(err);
- }
- resolve(stats);
- });
- });
-};
-
-var readFile = exports.readFile = function readFile(inputFileSystem, path) {
- return new Promise(function (resolve, reject) {
- inputFileSystem.readFile(path, function (err, stats) {
- if (err) {
- reject(err);
- }
- resolve(stats);
- });
- });
-}; \ No newline at end of file
diff --git a/node_modules/copy-webpack-plugin/dist/utils/readFilePromise.js b/node_modules/copy-webpack-plugin/dist/utils/readFilePromise.js
deleted file mode 100644
index cc266272..00000000
--- a/node_modules/copy-webpack-plugin/dist/utils/readFilePromise.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-exports.default = function (inputFileSystem, path) {
- return new Promise(function (resolve, reject) {
- inputFileSystem.readFile(path, function (err, stats) {
- if (err) {
- return reject(err);
- }
-
- return resolve(stats);
- });
- });
-}; \ No newline at end of file
diff --git a/node_modules/copy-webpack-plugin/dist/utils/readPromise.js b/node_modules/copy-webpack-plugin/dist/utils/readPromise.js
deleted file mode 100644
index cc266272..00000000
--- a/node_modules/copy-webpack-plugin/dist/utils/readPromise.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-exports.default = function (inputFileSystem, path) {
- return new Promise(function (resolve, reject) {
- inputFileSystem.readFile(path, function (err, stats) {
- if (err) {
- return reject(err);
- }
-
- return resolve(stats);
- });
- });
-}; \ No newline at end of file
diff --git a/node_modules/copy-webpack-plugin/dist/utils/statPromise.js b/node_modules/copy-webpack-plugin/dist/utils/statPromise.js
deleted file mode 100644
index 4f421bfb..00000000
--- a/node_modules/copy-webpack-plugin/dist/utils/statPromise.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-exports.default = function (inputFileSystem, path) {
- return new Promise(function (resolve, reject) {
- inputFileSystem.stat(path, function (err, stats) {
- if (err) {
- return reject(err);
- }
-
- return resolve(stats);
- });
- });
-}; \ No newline at end of file