static-resources-0.1.2: JavaScript and Css files concat for http optimization

Portabilityportable
Stabilitydevelopment
Maintainermariusz@scrive.com
Safe HaskellSafe-Infered

Static.Resources.Types

Contents

Description

All types used by this module.

Synopsis

Types

data ResourceType Source

All resources have to be typed

Constructors

CSS

CSS file

JS

JavaScript file

JSX

Special JavaScript. System will not join this one with other scripts.

data Resource Source

Resource is a file with a type.

Constructors

Resource 

Fields

rtype :: !ResourceType
 
path :: !FilePath
 

Instances

data ResourceSet Source

ResourceSet is named list of resources.

Constructors

ResourceSet 

Fields

name :: !String
 
resources :: ![Resource]
 

Instances

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

sets :: ![ResourceSet]
 
ignored :: ![FilePath]
 

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 

Fields

set :: !ResourceSet
 
cssFiles :: ![FilePath]
 
jsFiles :: ![FilePath]
 

Utils

filterByType :: (ResourceType -> Bool) -> ResourceSet -> [Resource]Source

Utils for getting specyfic parts of ResourceSet