rump-static v0.8.0
Rump Static
Status
Master
Develop
About
Rump Static is a Rump module that handles copying static files as is. For more information, visit the core repository.
API
The following is appended to the core Rump API:
rump.addGulpTasks(options)
This module adds the following tasks:
build:staticwill copy all files from source to destination. This task is also added to thebuildtask. For more information on source and destination paths seerump.configure()below. This task is also added to thebuildtask.watch:staticwill runbuild:static, then monitor for changes and copy updated files as needed. This task is also added to thewatchtask.info:staticwill 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 theinfotask.
rump.configure(options)
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:
options.paths.source.static ('static')
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)
options.paths.destination.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)
options.globs.build.static ('**/*')
This specifies which static files to copy. By default it copies all static files, including those in subdirectories.
options.globs.watch.static ('**/*')
This specifies which static files to monitor for changes. By default it watches all static files, including those in subdirectories.