@motorjs/plugin-copy

motor plugin copy

Stats

StarsIssuesVersionUpdatedCreatedSize
@motorjs/plugin-copy
3.3.32 years ago3 years agoMinified + gzip package size for @motorjs/plugin-copy in KB

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.