@geirsagberg/glob-run
Run multiple commands by glob patterns sequentially.
Last updated 2 years ago by geirsagberg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @geirsagberg/glob-run 
SYNC missed versions from official npm registry.

Fork of http://travis-ci.org/fahad19/glob-run, with updated dependencies.

Run multiple commands by glob patterns sequentially.

Install

$ npm install -g @geirsagberg/glob-run

Usage

Basic example:

$ glob-run cat src/\*.js

This is equivalent to running:

$ cat src/a.js && cat src/b.js && cat src/c.js

With Browserify:

# src/a.js will be bundled into dist/a.js
$ glob-run browserify src/\*.js -o dist/\*.js

# src/a.coffee will be bundled into a.js
$ glob-run browserify -t coffeeify src/\*.coffee -o dist/\*.js

$ glob-run browserify src/\*.js -o dist/bundle-\*.js

With concat-from-list:

# files listed in src/a.json will be concatenated in dist/a.js
$ glob-run concat-from-list src/\*.json dist/\*.js

From package.json:

{
  "dependencies": {
    "@geirsagberg/glob-run": "^0.1.7",
    "browserify": "^8.0.3"
  },
  "scripts": {
    "build": "./node_modules/.bin/glob-run ./node-modules/.bin/browserify src/\\*.js dist/\\*js"
  }
}

And then you can just do npm run build.

Since it is all in CLI, asterisks (*) are expected to be always escaped.

License

MIT © Fahad Ibnay Heylaal

Current Tags

  • 0.1.7                                ...           latest (2 years ago)

1 Versions

  • 0.1.7                                ...           2 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |