Get a path for the given build
- Asserts that all necessary metadata is present.
- Uses relative paths for flexibility.
- Platform and technology agnostic.
npm install build-path --saveGet it into your program.
const buildPath = require('build-path');Get the path where a given build should live.
const path = buildPath({
branch : 'master',
version : '1.0.0'
});
console.log(path); // => build/master/1.0.0Build paths cannot be constructed with incomplete data.
buildPath({ version : '1.0.0' });
// TypeError: A branch is required to create the build path.Type: object
Build data for the build whose path should be returned.
Type: string
The branch name of the build.
Type: string
The version of the build.
- delivr - Build your code and ship it to S3
- build-files - Read the files from your build
- 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-version - Get a version for your build
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.
Go make something, dang it.