0.1.0 • Published 8 years ago
buildgem-copy v0.1.0
A BuildGem plugin to copy files verbatim from the source to the build directory.
This is a beta package. It is not recommended that you use this in production. The API is likely to change before the release of version 1.
Installation
npm install buildgem-copy
API
var buildgem = require('buildgem')
var copy = require('buildgem-copy')
buildgem()
.from('./src')
.to('./build')
.via([
copy({
sources: {
dir: 'verbatim',
match: ['**/.*', '**/*.*']
},
messages: {
success: 'Static files copied'
}
})
])
.rebuild()
Options
sources.dir
(string) Subdirectory that contains the source files for this plugin.sources.match
(array) One or more file name patterns that identify the source files.messages.success
(string) Message to print in the console when the plugin has finished.