Skip to content

johnhenry/fileable-component-clear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fileable logo

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published