Copyright | (c) Scrive 2012 |
---|---|
License | BSD-style (see the LICENSE file in the distribution) |
Maintainer | mariusz@scrive.com |
Stability | development |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
All types used by this module.
- data ResourceType
- data Resource = Resource {
- rtype :: !ResourceType
- path :: !FilePath
- data ResourceSet = ResourceSet {}
- data ResourceSpec = ResourceSpec {
- sets :: ![ResourceSet]
- ignored :: ![FilePath]
- data ImportType
- data ResourceSetForImport = ResourceSetForImport {}
- data ResourceSetsForImport = ResourceSetsForImport {}
- filterByType :: (ResourceType -> Bool) -> ResourceSet -> [Resource]
Types
data ResourceType Source
All resources have to be typed
CSS | CSS file |
LESS | LESS support. See http://lesscss.org/. |
JS | JavaScript file |
JSX | Special JavaScript. System will not join this one with other scripts. |
Resource is a file with a type.
Resource | |
|
data ResourceSpec Source
ResourceSpec
is a list of ResourceSet
and list of files or directories that can be ignored by check
function.
ResourceSpec | |
|
data ImportType Source
We can import resources for development (no joined, gziped or minified) or for production.
data ResourceSetForImport Source
ResourceSet
that is ready to be imported. It's all you need to generate import list for html.
data ResourceSetsForImport Source
Set of ResourceSetForImport
Utils
filterByType :: (ResourceType -> Bool) -> ResourceSet -> [Resource] Source
Utils for getting specyfic parts of ResourceSet