mnussbaumer / cssex

An Elixir based and opinionated way to write CSS
MIT License
20 stars 0 forks source link

Tasks #13

Closed mnussbaumer closed 3 years ago

mnussbaumer commented 3 years ago

Support for parsing files with a mix task.

# as it says on the tin
mix cssex.parser --e /original/file/path.cssex=/destination/file/path.css

# output in the same folder dir, with same name, but .css extension
mix cssex.parser --e /original/file/path.cssex

# relative to an application path
mix cssex.parser --e priv/static/path.cssex=priv/static/path.css --a myweb_app

# same but outputs in same dir
mix cssex.parser --e priv/static/path.cssex --a myweb_app

# using the config values for a given app, set under the CSSEx keys (as the file watcher)
mix cssex.parser --c myweb_app