Popularity
4.6
Growing
Activity
2.6
-
8
2
1

Monthly Downloads: 16
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Development    
Latest version: v0.2

wai-make-assets alternatives and similar packages

Based on the "Development" category.
Alternatively, view wai-make-assets alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of wai-make-assets or a related project?

Add another 'Development' Package

README

wai-make-assets is a simple wai library and command line tool for serving generated files. It's meant to be used during development and re-generates the served files when handling requests. For this, wai-make-assets uses make.

Workflow

The workflow that wai-make-assets allows is similar to working on files (for web-sites) that don't need compilation or generation, e.g. html, css, php or javascript. You edit the file in an editor, save it, switch to a browser and hit reload. wai-make-assets makes sure your browser will be sent up-to-date files.

Setup

wai-make-assets assumes a certain directory and file structure to work:

  • ./client/ -- A directory meant to contain the sources of the files to be served.
  • ./client/Makefile -- A Makefile that describes how to build (generate) your files. This will be executed on every request, so you should make sure it's fast when the input files didn't change. The Makefile should put its outputs into ./assets/.
  • ./assets/ -- wai-make-assets will serve all files it finds in this directory. index.html will also be served on /.

Getting Started

(Install from github with e.g. stack.)

The easiest way to get started is to invoke the command line tool:

$ wai-make-assets

And follow the errors. It'll complain about missing directories and files in your setup.