1. flow-copy-source
Script to copy javascript files and append ".flow" to the filename.
flow-copy-source
Package: flow-copy-source
Created by: Macil
Last modified: Sat, 18 Jun 2022 02:18:00 GMT
Version: 2.0.9
License: MIT
Downloads: 69,571
Repository: https://github.com/Macil/flow-copy-source

Install

npm install flow-copy-source
yarn add flow-copy-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.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code