start-write

2.0.2 • Public • Published

start-write

npm linux build windows build coverage deps

Write task for Start.

Install

npm install --save-dev start-write
# or 
yarn add --dev start-write

Usage

import start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import babel from 'start-babel';
import write from 'start-write';
 
export const build= () => start(reporter())(
  files('build/'),
  clean(),
  files('lib/**/*.js'),
  babel({ sourceMaps: true }),
  write('build/')
);

This task relies on [{ path, data, map }] input and provides the same, see documentation for details.

Arguments

write(dir, encoding, sourcemapOptions)

  • dir – output directory, will be created automatically if it doesn't exists
  • encodingfs.writeFile encoding option, utf-8 by default
  • sourcemapOptions – options using to generate Source Maps:
    • extname – sourcemap file extension, '.map' by default
    • prefix – prefix string which will be used to generate sourceMappingURL sourcemap comment, '' by default

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.25,817latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.25,817
2.0.10
2.0.00
1.2.03
1.1.40
1.1.30
1.1.21
1.1.10
1.1.01
1.0.00
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i start-write

Weekly Downloads

745

Version

2.0.2

License

MIT

Last publish

Collaborators

  • deepsweet