super-quick-static
v1.0.5
Published
serves static files... and css from sass, html from pug
Downloads
6
Maintainers
Readme
super-quick-static
express + pug + sass
serves static files... and css
from sass
, html
from pug
extends quick-static (@npm) concept to allow some source/template files (sass, pug) to be served as regular files
iconic fonts from iconmonstr
Roboto Mono for browse pages (src/index.pug
)
install
$ npm i -g super-quick-static
usage
$ super-quick-static [path='.'] [port='8000'] [auto=true]
$ super-quick-static
# serve the current directory through http://localhost:8000
$ super-quick-static ./public 12345
# serve the folder 'public' from the current directory on http://localhost:12345
$ super-quick-static /an/absolute/path 6666
# serve a absolute folder on http://localhost:6666
$ super-quick-static . 4000
# serve current directory on http://localhost:4000
# if the port 4000 is not available,
# will search for the next available port (4001, 4002, ...)
but more importantly...
auto-conversion
- sass:
any/style.sass > any/style.css
- pug:
any/template.pug > any/template.html
- md:
any/note.md > any/note.html
(github flavoured style)
reset css
A reset css file is also available @ localhost:${port}/reset.css
.
See src/reset.css to get the source, it's a mix of the famous Meyer's reset.css and Paul Irish Box-Sizing recommandation (source src/reset.css
).