🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

flow-copy-source

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flow-copy-source

Script to copy javascript files and append ".flow" to the filename.

latest
Source
npmnpm
Version
2.0.9
Version published
Weekly downloads
15K
-11.9%
Maintainers
1
Weekly downloads
 
Created
Source

flow-copy-source

GitHub license npm version CircleCI Status Greenkeeper badge

This is a simple script which finds all .js, .jsx, and .mjs 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: bin/flow-copy-source.js [-v|--verbose] [-w|--watch] [-i PATTERN]... SRC... DEST

Options:
  -v, --verbose  Show changes                                          [boolean]
  -w, --watch    Re-copy files on change                               [boolean]
  -i, --ignore   ignore pattern (glob expression)

Multiple --ignore patterns may be given by using the --ignore option multiple times.

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 optional verbose and watch boolean properties. The function returns a promise for an array of {src, dest} objects listing the operations done.

Keywords

flow

FAQs

Package last updated on 19 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts