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)