First of all, I removed the watcher hack where we just run process.exit() on the watcher when there's no --watch flag included.
Now, we have a compiler class which handles our cache and takes in a file, extracts the utilities, recaches the utilities, and writes it to a file. The watcher just runs chokidar and sends the file name to compiler so it's much more manageable than last time.
API change
Now, there's a major API change. The config remained the same but by renaming everything semantically, it's much easier to understand. builder.generateStyles() to emmet.expand(). Yeah, much more sensible.
Documentation
Well this was a long time coming. We finally have a pretty decent documentation, I need to refer Emmet Cheat Sheet from there I guess.
Version 1.0 is here!
Compiler and the Watcher Hack
First of all, I removed the
watcher
hack where we just runprocess.exit()
on the watcher when there's no--watch
flag included.Now, we have a compiler class which handles our cache and takes in a file, extracts the utilities, recaches the utilities, and writes it to a file. The watcher just runs
chokidar
and sends the file name to compiler so it's much more manageable than last time.API change
Now, there's a major API change. The config remained the same but by renaming everything semantically, it's much easier to understand.
builder.generateStyles()
toemmet.expand()
. Yeah, much more sensible.Documentation
Well this was a long time coming. We finally have a pretty decent documentation, I need to refer Emmet Cheat Sheet from there I guess.