C# (CSharp) MoreInternals.Compiler.Tasks Namespace

Classes

Name Description
AutoPrefix For every property that has a vendor prefix equivalent, generate that equivalent. Informs if we encounter a prefixed property we could generate, ignores those we aren't aware of. While the order of rules that aren't getting prefixed doesn't matter, the this task guarantees that rules which are prefixed appear before their equivalent unprefixed version. This is important for future proofing, as initial browser implementation vagaries shouldn't override the final (hopefully) compliant implementation.
CacheBreak Finds all references to external resources and adds automagic cache breakers to them. The rules are essentially: - if we can *find* the resource, hash it and use that - if we can't find it, generate a reference that won't collide
Minify This task re-writes values so that they take as little space as possible. This includes coercing units (if the inch version is smaller than the centimeter it will be used, and so on) and choosing ideal color versions (hex triples when possible, dropping alpha when not needed, and so on).
ResetIncludes This task takes all @reset() or @reset(selector) properties and goes off to find any matches, copying those properties as if they were selector includes. However, @reset() will *only* copy those properties defined on classes that are in @reset{} blocks, copy on the sub-block level, and don't override *any* rules of the same name. Copying on the sub-block level means that given: @reset{ div { a:b; } } that .class { c:d; div { @reset(); e:f; } } evaluates to .class { c:d; } .class div { a:b; e:f;} Naturally, @reset(selector) will match on the actual select passed.
Sprite This task handles rendering @sprite blocks. When it returns, there will be no more SpriteBlock blocks.
UnrollNestedMedia This task converts all nested media properties into stand alone media blocks.
UnrollVerify Task that confirms that there are no remaining nested selector or media blocks left. Any remaining ones are indicative of logic (if not syntax) errors.
Using Resolves all @using directives. After this has run, we'll have a single flat collection of all more blocks and what not in a collection; while @imports persist (and will be written to disk) no more @usings will be found once this has returned.
Verify Task which does all sorts of "post CSS generation" checks for correctness. This checks that media-queries make sense, and that cycle() doesn't violate some constraints. In the future, this may come to mean all sorts of "property x should be of type y" sorts of checks.
WriteSprites Writes all the sprites that have been generated and stored on Current to disk.