npm.io
1.0.5 • Published 6 years agoCLI

super-quick-static

Licence
ISC
Version
1.0.5
Deps
7
Size
1.7 MB
Vulns
8
Weekly
0
Stars
4

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).

screenshots:

NPM link

Keywords