@vamship/build-utils 1.5.3 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vamship/build-utils",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.1",
|
4
4
|
"description": "Utility library for build tooling",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"scripts": {
|
@@ -80,17 +80,6 @@
|
|
80
80
|
"nyc": ">= 15.1.0",
|
81
81
|
"prettier": ">= 2.8.8"
|
82
82
|
},
|
83
|
-
"peerDependenciesMeta": {
|
84
|
-
"gulp-eslint": {
|
85
|
-
"optional": true
|
86
|
-
},
|
87
|
-
"gulp-typedoc": {
|
88
|
-
"optional": true
|
89
|
-
},
|
90
|
-
"gulp-typescript": {
|
91
|
-
"optional": true
|
92
|
-
}
|
93
|
-
},
|
94
83
|
"optionalDependencies": {
|
95
84
|
"typedoc": ">=0.24.7",
|
96
85
|
"typescript": ">=5.0.4"
|
package/src/directory.js
CHANGED
@@ -229,6 +229,22 @@ class Directory {
|
|
229
229
|
}
|
230
230
|
return `${this.globPath}**/${extension}`;
|
231
231
|
}
|
232
|
+
/**
|
233
|
+
* Gets a string glob that can be used to match all folders/files
|
234
|
+
* starting with .(dot) in the current folder and all sub folders,
|
235
|
+
* optionally filtered by file extension.
|
236
|
+
*
|
237
|
+
* @param {String} [extension] An optional extension to use when generating
|
238
|
+
* a globbing pattern.
|
239
|
+
*/
|
240
|
+
getAllHiddenFilesGlob(extension) {
|
241
|
+
if (typeof extension !== 'string') {
|
242
|
+
extension = '.*';
|
243
|
+
} else {
|
244
|
+
extension = `.*.${extension}`;
|
245
|
+
}
|
246
|
+
return `${this.globPath}**/${extension}`;
|
247
|
+
}
|
232
248
|
}
|
233
249
|
|
234
250
|
module.exports = Directory;
|
@@ -41,7 +41,7 @@ module.exports = (project, options) => {
|
|
41
41
|
|
42
42
|
const paths = dirs
|
43
43
|
.map((dir) => workingDir.getChild(dir))
|
44
|
-
.
|
44
|
+
.flatMap((dir) => [dir.getAllFilesGlob(), dir.getAllHiddenFilesGlob()])
|
45
45
|
.concat(extras.map((file) => workingDir.getFileGlob(file)));
|
46
46
|
|
47
47
|
const zipTask = () =>
|