Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
add @pika/plugin-copy-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Mar 4, 2019
1 parent 826276e commit 3802cd4
Show file tree
Hide file tree
Showing 10 changed files with 1,243 additions and 0 deletions.
43 changes: 43 additions & 0 deletions packages/plugin-copy-assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# @pika/plugin-copy-assets

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Copies static assets from your root source directory into the built `pkg/` directory. Useful for non-JS associated files (like CSS, images).

## Install

```sh
# npm:
npm install @pika/plugin-copy-assets --save-dev
# yarn:
yarn add @pika/plugin-copy-assets --dev
```


## Usage

```json
{
"name": "example-package-json",
"version": "1.0.0",
"@pika/pack": {
"pipeline": [
["@pika/plugin-standard-pkg"],
["@pika/plugin-build-node", {}]
["@pika/plugin-copy-assets", {}]
]
}
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Options

- `"files"` (Default: `["assets/"]`): An array of files/folders to copy into the pkg out directory. Does not support glob pattern matching, but will copy any directories recursively.


## Result

1. See the package description. Copies static assets from your root source directory into the built `pkg/` directory (example: "assets/" => "pkg/assets").
Loading

0 comments on commit 3802cd4

Please sign in to comment.