2.0.2 • Published 7 years ago

start-write v2.0.2

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

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
2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.0

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago