developerasun / myCodeBox-web

Open source code box for web developers.
Apache License 2.0
5 stars 0 forks source link

[RESEARCH] Javascript/NPM glob #216

Open developerasun opened 2 years ago

developerasun commented 2 years ago

topic : understanding glob in NPM

read this

A glob is a string of literal and/or wildcard characters used to match filepaths. Globbing is the act of locating files on a filesystem using one or more globs.

For consistent experience with NPM lifecycle scripts you should: Always quote the globs in your NPM scripts when using ESLint, TSLint, Mocha or other tools that use node-glob, Use cross-platform commands or node packages instead of commands, Double-check if a command or expression is well supported across different shells/shell versions/operating systems (e.g. globstar),

"scripts": {
  "clean": "rimraf .nyc_output coverage",
  "test": "mocha 'tests/**/*spec.js'",
  "lint": "eslint '{src,test}/**/*.js'"
},

reference