fileable-component-clear
![fileable logo](./static/docs/logo.png)
Last updated 6 months ago by johnhenry .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fileable-component-clear 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.5                                ...           latest (6 months ago)

5 Versions

  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           6 months ago
  • 0.0.1                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |