smash-cli

smash-cli

  • Documentation
  • Examples
  • Blog
  • GitHub

›Middlewares

Getting Started

  • What is smash-cli?
  • Installation
  • Command Line Usage

Middlewares

  • smash-middleware-clean
  • smash-middleware-copy
  • smash-middleware-eslint
  • smash-middleware-helloworld
  • smash-middleware-jest
  • smash-middleware-shell
  • smash-middleware-webpack-v4

Templates

  • smash-template-react
  • smash-template-react-component
  • smash-template-revealjs

Programmatic APIs

  • smash-cli
  • smash-init
  • smash-dowload
  • smash-install
  • smash-run
  • smash-helper-logger
  • smash-helper-task-finder
  • smash-helper-middleware-installer
Edit

smash-middleware-clean

npm

Directory cleaner.

Usage

Add the following configuration to .smash/task.yml :

empty:
  - name: smash-middleware-clean
    dirs:
      - ./dist
      - ./build
remove:
  - name: smash-middleware-clean
    remove: true
    dirs:
      - ./dist
      - ./build

Run the tasks:

# empty directory dist and build
$ smash run empty

# remove directory dist and build
$ smash run remove
← Command Line Usagesmash-middleware-copy →
  • Usage
smash-cli
Documentation
Getting StartedMiddlewaresTemplatesProgrammatic APIs
Examples
UsageContribute
Community
HelpUser ShowcaseIssuesYuque
More
BlogStar
Facebook Open Source
Copyright © 2020 www.smash-cli.com
粤ICP备18035177号-2 | 粤公网安备 44011302002170号