GithubHelp home page GithubHelp logo

dev5c32373043 / parcel-reporter-copy-file-v2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 169 KB

Reporter to copy static files for Parcel V2

Home Page: https://www.npmjs.com/package/parcel-reporter-copy-file-v2

License: MIT License

JavaScript 100.00%
javascript parcel

parcel-reporter-copy-file-v2's Introduction

CircleCI

parcel-reporter-copy-file-v2

Reporter to copy static files for Parcel V2 (buildSuccess event)

Install

Using npm:

npm install -D parcel-reporter-copy-file-v2

Using yarn:

yarn add -D parcel-reporter-copy-file-v2

Using bower:

bower install -D parcel-reporter-copy-file-v2

Configuration

First of all, add a new reporter in the Parcel config.

.parcelrc

{
  "extends": ["@parcel/config-default"],
  "reporters":  ["parcel-reporter-copy-file-v2"]
}

Then define config to copy static files in the package.json of the project

package.json

{
  ...
  "copyStaticFiles": [
    "files/file1.txt",
    "files/embed/*.txt",
    { "from": "files/file1.txt", "to": "results1" },
    { "from": "files/embed/*", "to": "results2" },
    { "from": "files/**/*", "to": "results3" }
  ]
}

from

Type: String
Required: true
Glob or relative path from where we copy files (root path taked from Parcel projectRoot config key)

to

Type: String|Array<String>
Default: Parcel dist folders configuration Output relative path (root path taked from Parcel projectRoot config key)

Requirements

Contributing

Any contribution is highly appreciated.

Licensing

The code in this project is licensed under MIT license.

parcel-reporter-copy-file-v2's People

Contributors

dev5c32373043 avatar

Stargazers

Victor Villarreal avatar

Watchers

 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.