minimatch

Including/excluding globs for gulp.src

时间秒杀一切 提交于 2020-01-13 19:01:08
问题 I'm trying to setup a glob array for my javascript concat build task in gulp . The directory structure looks as follows: ├── about │ └── about.js ├── assets ├── contact ├── core │ ├── navbar │ │ ├── navbar.js │ │ └── navbar.test.js │ ├── routing.js │ ├── routing.test.js │ ├── utils.js │ └── utils.test.js ├── generated │ ├── footer.js │ ├── header.js │ └── templates.js ├── home ├── app.js └── config.js The order of the files is important: generated/header.js app.js any of the *.js files,

Minimatch exclude pattern in VSTS publish task

不羁岁月 提交于 2020-01-07 02:01:48
问题 I've been wrestling with getting this minimatch exclude pattern to work. The **\src!(packages) pattern works as expected but I need to also exclude web.template.config files under the src directory. I've tried several things including **\src!(packages| Web.template .config) Can anyone help or point me to a good way of troubleshooting this? I'm stuck. 回答1: To get this to work, I added the Copy Files task Applied the minimatch filter to the Copy Files task Used the Publish Task to copy the

How to update specific sub-package version by using npm

白昼怎懂夜的黑 提交于 2020-01-03 01:46:05
问题 I had checked global package minimatch for gulp $ npm list -g minimatch +-- gulp@3.9.1 | `-- vinyl-fs@0.3.14 | +-- glob-stream@3.1.18 | | +-- glob@4.5.3 | | | `-- minimatch@2.0.10 deduped | | `-- minimatch@2.0.10 | `-- glob-watcher@0.0.6 | `-- gaze@0.5.2 | `-- globule@0.1.0 | +-- glob@3.1.21 | | `-- minimatch@0.2.14 deduped | `-- minimatch@0.2.14 Now, i wanted to update all minimatch versions from specific gulp package (all minimatch@0.2.14 and minimatch@3.04) to latest version. Is their any

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14

元气小坏坏 提交于 2019-12-17 04:26:41
问题 I`m trying to run this project https://github.com/Soundnode/soundnode-app after updating my minimatch version to 3.10.9, im getting this error npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\webpack\node_modules\watchpack\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) my configuration is Node v - 4.4.2

Including/excluding globs for gulp.src

六眼飞鱼酱① 提交于 2019-12-06 01:16:08
I'm trying to setup a glob array for my javascript concat build task in gulp . The directory structure looks as follows: ├── about │ └── about.js ├── assets ├── contact ├── core │ ├── navbar │ │ ├── navbar.js │ │ └── navbar.test.js │ ├── routing.js │ ├── routing.test.js │ ├── utils.js │ └── utils.test.js ├── generated │ ├── footer.js │ ├── header.js │ └── templates.js ├── home ├── app.js └── config.js The order of the files is important: generated/header.js app.js any of the *.js files, except those here below generated/templates.js generated/footer.js I've wildly tried all kinds of wildcards

TFS drop, exclude obj folder using minimatch pattern

拈花ヽ惹草 提交于 2019-11-29 03:55:46
I'm setting up TFS 2015 on-prem and I'm having an issue on my last build step, Publish Build Artifacts. For some reason, the build agent appears to be archiving old binaries and I'm left with a huge filepath: E:\TFSBuildAgent\_work\1a4e9e55\workspace\application\Development\project\WCF\WCF\obj\Debug\Package\Archive\Content\E_C\TFSBuildAgent\_work\1a4e9e55\workspace\application\Development\project\WCF\WCF\obj\Debug\Package\PackageTmp\bin I'm copying the files using the example minimatch pattern to begin with: **\bin I'm only testing at the moment so this is not a permanent solution but how can

Glob / minimatch: how to gulp.src() everything, then exclude folder but keep one file in it

↘锁芯ラ 提交于 2019-11-28 19:10:53
I have a project like this: root |-incl1 |-incl2 |- ... |-excl1 |-excl2 |- .gitignore <-- keep this one |- (other files) <-- exclude them I need to write gulp.src() that will include all folders except excl1 and excl2 but keep the .gitignore file. This is my code that doesn't work: gulp.src([ baseDir + '/**', '!' + baseDir + '/{excl1, excl1/**}' '!' + baseDir + '/excl2/{**, !.gitignore}' // <-- doesn't work ], {dot: true}) Heikki This seems to work: gulp.src([ baseDir + '/**', // Include all '!' + baseDir + '/excl1{,/**}', // Exclude excl1 dir '!' + baseDir + '/excl2/**/!(.gitignore)', //

TFS drop, exclude obj folder using minimatch pattern

淺唱寂寞╮ 提交于 2019-11-27 22:13:15
问题 I'm setting up TFS 2015 on-prem and I'm having an issue on my last build step, Publish Build Artifacts. For some reason, the build agent appears to be archiving old binaries and I'm left with a huge filepath: E:\TFSBuildAgent\_work\1a4e9e55\workspace\application\Development\project\WCF\WCF\obj\Debug\Package\Archive\Content\E_C\TFSBuildAgent\_work\1a4e9e55\workspace\application\Development\project\WCF\WCF\obj\Debug\Package\PackageTmp\bin I'm copying the files using the example minimatch

Glob / minimatch: how to gulp.src() everything, then exclude folder but keep one file in it

这一生的挚爱 提交于 2019-11-27 20:28:44
问题 I have a project like this: root |-incl1 |-incl2 |- ... |-excl1 |-excl2 |- .gitignore <-- keep this one |- (other files) <-- exclude them I need to write gulp.src() that will include all folders except excl1 and excl2 but keep the .gitignore file. This is my code that doesn't work: gulp.src([ baseDir + '/**', '!' + baseDir + '/{excl1, excl1/**}' '!' + baseDir + '/excl2/{**, !.gitignore}' // <-- doesn't work ], {dot: true}) 回答1: This seems to work: gulp.src([ baseDir + '/**', // Include all '!

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14

99封情书 提交于 2019-11-26 20:25:37
I`m trying to run this project https://github.com/Soundnode/soundnode-app after updating my minimatch version to 3.10.9, im getting this error npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\webpack\node_modules\watchpack\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) my configuration is Node v - 4.4.2 npm v- 3.10.9 im working on 32 bit windows OS piotr.d It's a warning, not an error. It occurs because