Script to copy javascript files and append ".flow" to the filename
JavaScript
Latest commit 18d0dd6 Aug 11, 2016 @AgentME 1.1.0
Permalink
Failed to load latest commit information.
bin Added ignore flag Aug 11, 2016
src Added ignore flag Aug 11, 2016
.gitignore initial commit Feb 12, 2016
LICENSE.txt 1.0 Feb 12, 2016
package.json 1.1.0 Aug 11, 2016
readme.md Added ignore flag Aug 11, 2016

readme.md

flow-copy-source

This is a simple script which finds all .js and .jsx files in one or more source directories, and copies them into a destination directory with the .flow suffix appended to the filename.

This is intended to be used as a build step for Flow-typed Javascript projects so that the original typed source files can be placed in the same directory as the transpiled code, so that Flow can use the type definitions in the original source code.

Usage: flow-copy-source [-v|--verbose] [-i PATTERN]... SRC... DEST

Options:
  -v, --verbose  Show changes                                          [boolean]
  -i, --ignore   ignore pattern (glob expression)

This module also exports the flowCopySource(sources, dest, options) function. sources must be an array of strings, dest must be a string, and options may optionally be an object with a verbose boolean property. The function returns a promise for an array of {src, dest} objects listing the operations done.