project-builder
v1.0.5
Published
project build
Downloads
4
Readme
Project Builder
Usage
import projectBuilder from 'project-builder'
async function main() {
const builder = await projectBuilder.fetch('[email protected]:hellocreep/project-build-collection.git')
const webpackBuilder = builder.webpack()
webpackBuilder.base('webpack')
webpackBuilder.use('config', 'config/base')
webpackBuilder.use('loaders', ['loaders/babel', 'loaders/react'])
webpackBuilder.use('plugins', ['plugins/definePlugin', 'plugins/noErrorPlugin'])
webpackBuilder.dest('./webpack')
const fileBuilder = builder.file()
fileBuilder.base('dotfiles')
fileBuilder.use(['.eslintrc'])
fileBuilder.dest('./')
const scriptBuilder = builder.script()
scriptBuilder.base('scripts')
scriptBuilder.use(['test', 'build'])
builder.run()
}
main()