Awesome
Fileable Component: Clear
Fileable template component used to delete files and folders
Wrapping components within a Clear component removes all files from a given folder context before writing.
import {Clear} from 'fileable-components';
const template = ()=><Clear><File name='empty_file' /></Clear>;
Attributes
target
Target specific files via glob pattern.
import {Clear} from 'fileable-components';
const template = ()=><Clear target='**/*.md'><File name='readme.md' /></Clear>;
Patterns can be negated using "!".
import {Clear} from 'fileable-components';
const template = ()=><Clear target='!**/*.js'><File name='readme.md' /></Clear>;
API
Table of contents
Todo
- remove unnecessary dependencies
- add proper typescript typeings