Coder Social home page Coder Social logo

globstar's Introduction

You should really see 'globstar' original.

I made slight modifications because I had a need to run each command seperately And I modify -n to not require node_modules to be at the root of the dir

globstar Build Status Coverage Status

Run programs with glob/globstar support, especially on Windows within npm scripts.

Install

[sudo] npm install globstar --global

Usage

> globstar -- echo "**/globstar.js"
node_modules/globstar/globstar.js

Please note the -- and that globstar uses forward slashes.

npm Scripts

$ npm install globstar --save-dev

// e.g. install some linter
$ npm install eslint --save-dev
$ npm install editorconfig-tools --save-dev

Please note that Windows needs double quotes:

  "scripts": {
    "lint": "npm run -s lint-js && npm run -s lint-ec",
    "lint-js": "globstar --node -- eslint \"**/*.js\"",
    "lint-ec": "globstar --node -- editorconfig-tools check \"**/*.js\""
  },

Lint your **/*.js files:

$ npm run lint

Options

$ globstar --help
Run programs with globstar support.

Usage: globstar [OPTION]... -- COMMAND [ARG]...
Note the -- between the globstar OPTIONS and the COMMAND and its arguments

Options:
  --nodir        glob patterns do not match directories, only files
  -i, --ignore   add glob pattern to exclude from matches
  -n, --node     same as `--ignore "node_modules/**"`
  -v, --verbose  explain what is being done
  -e. --each     run the command per match
  --version      display version information
  --help         Show help

Report globstar bugs to <https://github.com/schnittstabil/globstar/issues>
globstar home page: <https://github.com/schnittstabil/globstar>

License

Copyright © 2015 Michael Mayer

Licensed under the MIT license.

globstar's People

Contributors

schnittstabil avatar wormss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.