Task for emptying the dist folder
yarn add --exact @coderesque/task-empty-dist
Add the task to a task runner.
import taskEmptyDist from '@coderesque/task-empty-dist'; import TaskRunner from '@coderesque/task-runner'; const runner = new TaskRunner('build-scripts'); runner.add('empty-dist', taskEmptyDist());
This will add the empty dist task to the build scripts.
> build-scripts empty-dist
This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.