rump-static
v0.8.0
Published
Rump piece for handling static files
Downloads
15
Readme
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:static
will copy all files from source to destination. This task is also added to thebuild
task. For more information on source and destination paths seerump.configure()
below. This task is also added to thebuild
task.watch:static
will runbuild:static
, then monitor for changes and copy updated files as needed. This task is also added to thewatch
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 theinfo
task.
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.