Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History
45 lines (34 loc) · 1.4 KB

readme.md

File metadata and controls

45 lines (34 loc) · 1.4 KB

✏️ plugin-write

npm linux windows coverage deps

Write files with source maps to relative destination keeping folders structure.

Install

$ yarn add --dev @start/plugin-write
# or
$ npm install --save-dev @start/plugin-write

Usage

Signature

write(outDirRelative: string)

Example

import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import read from '@start/plugin-read'
import babel from '@start/plugin-lib-babel'
import write from '@start/plugin-write'

const babelConfig = {
  // …
  babelrc: false,
  sourceMap: true,
}

export const task = () =>
  sequence(
    find('src/**/*.js'),
    read,
    babel(babelConfig),
    write('build/')
  )