Giter Site home page Giter Site logo

flow-copy-source's Introduction

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.

flow-copy-source's People

Contributors

macil avatar greenkeeper[bot] avatar greenkeeperio-bot avatar emiliedebra avatar laat avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.