@motorjs/plugin-copy
v3.3.3
Published
motor plugin copy
Downloads
5
Readme
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`)