Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mipengine/mip-builder
Builder for MIP and MIP Extension
https://github.com/mipengine/mip-builder
Last synced: about 1 month ago
JSON representation
Builder for MIP and MIP Extension
- Host: GitHub
- URL: https://github.com/mipengine/mip-builder
- Owner: mipengine
- Created: 2016-10-06T16:39:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-17T10:17:35.000Z (about 8 years ago)
- Last Synced: 2024-10-30T03:38:01.839Z (about 2 months ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mip-builder
===========Builder for MIP and MIP Extension
## Usage
`(new Builder(options)).build()`
```javascript
var Builder = require('mip-builder');var builder = new Builder({
dir: '/your/build/root',
outputDir: '/your/output/target/directory',files: [
// bla bla
],processor: [
// bla bla
]
});builder.build();
```## API
### options
#### dir
`string`
The directory which you want to build.
#### outputDir
`string`
Output target directory for build result.
#### files
`Array.`
Selectors for select which file should be do building.
#### processors
`Array.`
Processors, each one will apply to all files by default.
### methods
#### prepare
'arguments': none
`return`: Promise
`description`: load all files
#### process
'arguments': none
`return`: Promise
`description`: do process for all files. this method must call after prepare resolved.
#### output
'arguments': none
`return`: Promise
`description`: generate all files to outputDir.