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 |
Static.Resources.Types
Description
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
Constructors
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. |
Instances
Resource is a file with a type.
Constructors
Resource | |
Fields
|
data ResourceSpec Source
ResourceSpec
is a list of ResourceSet
and list of files or directories that can be ignored by check
function.
Constructors
ResourceSpec | |
Fields
|
Instances
data ImportType Source
We can import resources for development (no joined, gziped or minified) or for production.
Constructors
Development | |
Production |
Instances
data ResourceSetForImport Source
ResourceSet
that is ready to be imported. It's all you need to generate import list for html.
Constructors
ResourceSetForImport | |
Instances
data ResourceSetsForImport Source
Set of ResourceSetForImport
Constructors
ResourceSetsForImport | |
Fields |
Utils
filterByType :: (ResourceType -> Bool) -> ResourceSet -> [Resource] Source
Utils for getting specyfic parts of ResourceSet