3.3.3 • Published 5 years ago
@motorjs/plugin-copy v3.3.3
Motor plugin-copy
Installation
using yarn
yarn add @motorjs/plugin-copy
using npm
npm i -S @motorjs/plugin-copy
Usage
const motor = require('@motorjs/engine')
const Copy = require('@motorjs/plugin-copy')
const motorConfig = {
templatesDir : path.resolve('templates'),
outputDir : path.resolve('output'),
viewsDir : path.resolve('views'),
plugins: [
new Copy()
// other plugins
]
}
motor(motorConfig)
by default Copy will copy evrything from path.join(templatesDir, template, 'assets')
to path.join(outputDir, `${lang}-${country}/${filename}/assets`)