I am looking for a better glob pattern for usemin, i want to to find all .js files but exclude the .spec.js files. I have the following solution so far.  <script src="components/**/*(.js|!(*.spec.js|*.scss))"></script>   The solut...
I have a project with a few relatively disjoint pages, each including their own entry point script. These scripts require a number of others using commonjs syntax, and need to be transformed by 6to5 and bundled by browserify.  I would like to set up...
I just found http://gruntjs.com/configuring-tasks#globbing-patterns, which is the most helpful reference I've found.  I keep seeing:     For more on glob pattern syntax, see the node-glob and minimatch documentation.   Yet, I can't seem to fi...
I have a list of files:   'app/scripts/module.js',  'app/templates/templates.js',  'app/scripts/**/*.js'   This will load app/scripts/module.js, app/templates/templates.js and then all the files under app/scripts/**/*.js excep...
The following glob expression selects all .pug files except index.pug (filddle):  /src/!(index){.pug,.haml,index.haml}   Now assume that we has managed to stop haml support, therefore all that related with haml must be removed from above expression....
Basically I'm creating a Gulp task which copies a folder and all it's sub folders, but I want it to skip 2 directories like so:  var gulp = require('gulp');  gulp.task('copy', function () {   return gulp.src(['./src/**'...
Consider the following two files:  config.json  {   "vendorFiles": [     "vendor/angular/angular.js",     "vendor/angular-ui-router/release/angular-ui-router.js",     "vendor/angular-ui-utils/modules/utils.js"   ] }...
Given a user-inputted string with unknown regexes, I want to get the index of the first special regex character. (For my use case, the string will be a path.)  Examples:  foo/*/bar -> 4   foo?/*/*/ -> 3  foofoo+?/**/ -> 6...
I wrote a nodejs binding to glob.h (npm install glob to use it).  I'd really like to support zsh's fancy lib/**/*.js type of stuff, but I can't seem to figure out which library has that functionality.  I sure don't want to try to impl...
I have two variables I use for when I want to either include or exclude system files (using minimatch glob syntax, where the ! stands for exclusion).  var systemFiles = ['node_modules/**/*', '.git/**/*']; var ignoredSystemFiles = [...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.