在我的反应gulpfile中有这个路径: $ b
var path = { HTML:'src / index.html', ALL:['src / js / *。js','src / js / ** / *。js','src / index.html'], JS:['src / js / *。js','src / js / ** / *。js'], MINIFIED_OUT:'build.min.js', DEST_SRC :'dist / src', DEST_BUILD:'dist / build', DEST:'dist'};什么是双面字符?
我知道单个球是什么......但双重球是什么? 单一字符串
解决方案它与单个星号几乎相同,但可能由多个目录级别组成。
换句话说, / x / * / y 会匹配:
/ x / a / y / x / b / y和等等(通配符部分只有一个目录级别),双星号 / x / ** / y 也可以匹配:
/ x / any / number / of / levels / y
另一方面,尽管我不喜欢用任何东西来评价大型机,但我相信自从MVS的入选日期以来,这已经被用于允许在多个层级上选择数据集。
I have this path in my react gulpfile:
var path = { HTML: 'src/index.html', ALL: ['src/js/*.js', 'src/js/**/*.js', 'src/index.html'], JS: ['src/js/*.js', 'src/js/**/*.js'], MINIFIED_OUT: 'build.min.js', DEST_SRC: 'dist/src', DEST_BUILD: 'dist/build', DEST: 'dist' };What is the double glob character?
I know what the single glob is... but what is the double? single glob
解决方案It's almost the same as the single asterisk but may consist of multiple directory levels.
In other words, while /x/*/y will match:
/x/a/y /x/b/yand so on (only one directory level in the wildcard section), the double asterisk /x/**/y will also match things like:
/x/any/number/of/levels/y
As an aside, as much as I hate to credit the mainframe with anything, I believe this has been used since the earlist days of MVS to allow selection of datasets at multiple levels.
更多推荐
什么是glob字符?
发布评论