build-files
Read the files from your build.
Why?
- Know what is in your build and where it is.
- Useful to send the build to external services.
- Agnostic of how the files were written.
Install
npm install build-files --save
Usage
Get it into your program.
const buildFiles = ;
Get a list of the files within the most recent build.
buildFiles;
API
buildFiles.latest(option)
option
Type: object
Settings and known build data.
cwd
Type: string
Default: process.cwd()
The parent directory of the build root.
branch
Type: string
Read the files from the given branch name, rather than the most recently built branch.
version
Type: string
Read the files from the given version, rather than the most recently built version of the branch.
includeBranchLatest
Type: boolean
Default: true
Whether to also read the files at the <branch>/latest
path.
Related
- delivr - Build your code and ship it to S3.
- build-keys - Get the paths of files from your build.
- build-dir - Get a place to put your build.
- build-data - Get metadata for your build.
- build-path - Get a path for the given build.
- build-version - Get a version for your build.
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
Go make something, dang it.