Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Macil/flow-copy-source
Script to copy javascript files and append ".flow" to the filename
https://github.com/Macil/flow-copy-source
Last synced: about 2 months ago
JSON representation
Script to copy javascript files and append ".flow" to the filename
- Host: GitHub
- URL: https://github.com/Macil/flow-copy-source
- Owner: Macil
- License: mit
- Created: 2016-02-12T08:50:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:41:40.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T23:54:51.563Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 581 KB
- Stars: 173
- Watchers: 2
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
- stars - Macil/flow-copy-source
- awesome-list - flow-copy-source
README
# flow-copy-source
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Macil/flow-copy-source/blob/master/LICENSE.txt) [![npm version](https://img.shields.io/npm/v/flow-copy-source.svg?style=flat)](https://www.npmjs.com/package/flow-copy-source) [![CircleCI Status](https://circleci.com/gh/Macil/flow-copy-source.svg?style=shield)](https://circleci.com/gh/Macil/flow-copy-source) [![Greenkeeper badge](https://badges.greenkeeper.io/Macil/flow-copy-source.svg)](https://greenkeeper.io/)
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... DESTOptions:
-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.