smash-cli

smash-cli

  • Documentation
  • Examples
  • Blog
  • GitHub

›Programmatic APIs

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-run

npm

Task executor for smash-cli.

Installation

$ npm install smash-run

Usage

Create task.yml

Create {cwd}/.smash/task.yml:

task-helloworld:
  - name: smash-middleware-helloworld
  - name: smash-middleware-helloworld

Run task

const smashRun = require('smash-run');

smashRun('task-helloworld');
// helloworld
// helloworld
← smash-installsmash-helper-logger →
  • Installation
  • Usage
    • Create task.yml
    • Run task
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号