0.2.0 • Published 4 years ago

@espeo/create-espeo-app-cli v0.2.0

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

Create-espeo-app CLI

Installation

$ npm i -g @espeo/create-espeo-app-cli
$ yarn add @espeo/create-espeo-app-cli --global

Available commands

Initialize new project

espeo init <folderName>

or via alias

espeo i <folderName>

This command will create a clean copy of Create-espeo-app boilerplate in folderName folder and install all NPM dependencies using Yarn or NPM (depending on the choices made during initialization). Also, depending on the choices made, Cypress configuration and dependencies may be added or not.

Generate new files

espeo generate <type> <name>

or via alias

espeo g <type> <name>

Examples:

  • class component
    espeo g component exampleComponent
  • functional component
    espeo g component exampleComponent -f
  • container
    espeo g container exampleContainer
  • store- create folder with selected name and with action, reducer and selector files (also specs) and update root-store.ts file in project directory (providing it's in the upper directory tree)
    espeo g store exampleStore
  • You can generate scaffold under given path
    espeo g component /src/app/components/exampleComponent
    espeo g component ./src/app/components/exampleComponent
    espeo g store /src/exampleStore
    espeo g store ./src/exampleStore

Developer Guide

To deploy new version just use:

yarn version <newversion>

This will update package version and push your code with --follow-tags option.