Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankwallis/component-resolve-list
get a list of all files which will be included in a build
https://github.com/frankwallis/component-resolve-list
Last synced: 10 days ago
JSON representation
get a list of all files which will be included in a build
- Host: GitHub
- URL: https://github.com/frankwallis/component-resolve-list
- Owner: frankwallis
- License: mit
- Created: 2014-11-14T12:23:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-07T11:12:25.000Z (about 10 years ago)
- Last Synced: 2024-12-15T08:27:58.510Z (about 1 month ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
component-resolve-list
======================returns an array of files resolved from component.json
allows you to specify which fields of component.json are used for local
and remote components.components which have been linked using `component link` can optionally use the same fields as local components
useful for setting up watch tasks for component builds which follow symbolic links and bundling test scripts
### Usage ###
`resolve.scripts(options?, done)`
`resolve.files(options?, done)`
`resolve.styles(options?, done)`
`resolve.custom(options, done)`options: see [component-resolve-fields](https://github.com/frankwallis/component-resolve-fields)
done: callback function which takes an array of filenames as first parameter### Example ###
```js
gulp.task('watch-scripts', [ 'scripts' ], function () {
var resolve = require('component-resolve-list');var options = {
localFields: ["scripts", "specs", "mocks"],
remoteFields: ["scripts"],
linkedLocals: true
}resolve.custom(options, function(filelist) {
gulp.watch(filelist, { read: false }, [ 'build' ]);
});
});
```