lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 75 forks source link

Autoload PostCSS config #284

Closed lukeed closed 6 years ago

lukeed commented 7 years ago

When no options are passed, the @taskr/postcss plugin will now look for & respect configs found within: ~(arranged by preference):~

As for usage, all options are available:

// send options (current)
yield task.source(...).postcss({
  plugins: [], 
  options: {}
}).target(...);

// run autoload checks (any of above)
yield task.source(...).postcss().target(...);

An error will be emitted, forcing the plugin to stop, if the final/parsed options is not an Object.

~TODO: Add autoload-config tests.~

Closes #283

lukeed commented 7 years ago

Thanks @hzlmn! Were you able to actually try it out locally, or are you just eyeballing it 👀 😜

hzlmn commented 7 years ago

Both, also I checked it locally with current project, everything works fine. Probably, can just manually test all common configurations... as addition

lukeed commented 7 years ago

No need to do extra checks, unless you really want to. 😄

hzlmn commented 7 years ago

Are there any blockers to merge it? 🤓

lukeed commented 7 years ago

Nope! Going to make some other package changes tonight before pushing a 1.1.0