0.0.6 • Published 5 years ago

fileable-component-clear v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago