rump-static
Version:
Rump piece for handling static files
69 lines (53 loc) • 3.75 kB
Markdown
[](https://www.npmjs.org/package/rump-static)

[](https://github.com/rumps/issues/issues)
[](https://david-dm.org/rumps/static)
[](https://david-dm.org/rumps/static#info=devDependencies)
<br>
[](https://travis-ci.org/rumps/static)
[](https://ci.appveyor.com/project/jupl/rump-static)
[](https://codecov.io/github/rumps/static?view=all)
[](https://david-dm.org/rumps/static/develop)
[](https://david-dm.org/rumps/static/develop#info=devDependencies)
<br>
[](https://travis-ci.org/rumps/static)
[](https://ci.appveyor.com/project/jupl/rump-static)
[](https://codecov.io/github/rumps/static?branch=develop&view=all)
Rump Static is a Rump module that handles copying static files as is. For more
information, visit the [core repository](https://github.com/rumps/core).
The following is appended to the core Rump API:
This module adds the following tasks:
- `build:static` will copy all files from source to destination. This task is
also added to the `build` task. For more information on source and destination
paths see `rump.configure()` below. This task is also added to the `build`
task.
- `watch:static` will run `build:static`, then monitor for changes and copy
updated files as needed. This task is also added to the `watch` task.
- `info:static` will display information on what this specific module does,
specifically the source and destination paths as well as what files would get
copied. This task is also added to the `info` task.
Redefine options for Rump and Rump modules to follow. In addition to what
options Rump and other Rump modules offer, the following options are
available alongside default values:
This is the directory where static files to be copied are contained. This path
is relative to the root source path. (If the default root and static path is
used, then the path would be `src/static`)
This is the directory where static files are copied to. This path is relative
to the root destination path. (If the default root and static path is used,
then the path would be `dist`)
This specifies which static files to copy. By default it copies all static
files, including those in subdirectories.
This specifies which static files to monitor for changes. By default it watches
all static files, including those in subdirectories.