Skip to content

Half way through v1.0!

Choose a tag to compare

@anodynos anodynos released this 09 Aug 22:30
· 175 commits to master since this release

A revamp of bundle: resources & Resource Converters - they are much more usefull and stable as an in-memory conversion pipeline.

Breaking from 0.4.2 in ResourceConverter declarations :

ResourceConverter convert() is called with just the resource instance as 1st argument and context (value of this). The instance holds all sorts of useful information about its self.

Helpers copy, save & requireUncached are available on the resource instances (passed to convert()). Also added srcRealpath & dstRealpath for requireing nodejs modules without worrying about relative paths.

isTerminal:false as default (instead of true) - use "|" flag for true.

isModule flag is gone - now type handle all types of Resource Converters

dstFilename(filename) changed to convFilename(dstFilename, srcFilename). The resource still holds a dstFilename as the result of convFilename().

Can search for registered RCs by name on bundle:resources, either as a plain string or a function that has the search function as its context (this).