Skip to content

Skellington-Closet/skellington-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skellington-static

Build Status Coverage Status Standard - JavaScript Style Guide

Serve static files from your Skellington bot or Slack App.

Why?

Serving static files out of your Slack app is a great way to host your "Add to Slack" button. It's also a quick way to make a static site about your app.

Usage

skellington-static exports a function that takes two parameters: filePath and route.

  • filePath (String, required) The file path to your static assets. This can be an absolute path, or a relative path relative to your Skellington bot entry point.

  • route (String, required) The express route where static files will be served.

NOTE: If this is a single-team bot, you must pass a port when configuring Skellington, otherwise there will be no express server to serve static assets from.

About

Serve static files from your Skellington bot

Resources

License

Stars

Watchers

Forks

Packages

No packages published