Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elldritch/broccoli-shell
Use the output of arbitrary shell scripts in a Broccoli tree.
https://github.com/elldritch/broccoli-shell
broccoli broccoli-plugin shell
Last synced: 5 days ago
JSON representation
Use the output of arbitrary shell scripts in a Broccoli tree.
- Host: GitHub
- URL: https://github.com/elldritch/broccoli-shell
- Owner: elldritch
- Created: 2016-07-01T09:06:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T14:59:47.000Z (almost 3 years ago)
- Last Synced: 2024-10-07T09:13:45.594Z (about 1 month ago)
- Topics: broccoli, broccoli-plugin, shell
- Language: CoffeeScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Broccoli-shell
`broccoli-shell` allows you to build the output of arbitrary shell scripts as a
Broccoli node.# Usage
```
var shell = require('broccoli-shell');
var compiledMake = shell([inputTree1, inputTree2], {
command: function(outputPath) {
return 'make && cp -r output ' + outputPath;
},
pwd: __dirname
});
```## `shell(inputs, options)`
`inputs` optionally specifies an array of input Broccoli nodes.`options` is an object which at least includes `command` and might also include
`pwd`.`options.command` is either a function or string. If a string, it is executed
using `shelljs`. If a function, it is passed the path to the output directory of
the node and is expected to return a string to be executed using `shelljs`.`options.pwd` is an optional string which specifies the working directory for
executing `options.command`.# License
Copyright 2016 Lehao Zhang. Released to the general public under the terms of
the ISC license.