@motorjs/plugin-copy

3.3.3 • Public • Published

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`)

Readme

Keywords

none

Package Sidebar

Install

npm i @motorjs/plugin-copy

Weekly Downloads

1

Version

3.3.3

License

none

Unpacked Size

1.97 kB

Total Files

4

Last publish

Collaborators

  • mouafa
  • pierpaoloferraro
  • smartmohamed