static-resources-0.1.7: JavaScript and Css files concat for http optimization. Now with LESS support.

Copyright(c) Scrive 2012
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainermariusz@scrive.com
Stabilitydevelopment
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

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

LESS

LESS support. See http://lesscss.org/.

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.

Utils

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

Utils for getting specyfic parts of ResourceSet