spaz-cli
v1.0.0-rc4
Published
CLI for scaffolding a Spaz App - Web App Microframework for building React SPA's with Express API backends
Downloads
3
Readme
spaz-cli
CLI for scaffolding a Spaz App.
Spaz is a Web App Microframework for building React SPA's with Express API backends.
Spaz App Architecture
- Single-Page client using React, Redux, and Middle-router
- Express API backend
- Webpack + Webpack Dev Server configuration
- ES6 Code transpiled with Babel (ES5 for client; latest Node.js for server)
Installation
npm install -g spaz-cli
Commands
spaz new <project>
Scaffolds a base spaz project in a directory named after the supplied project name.
The following are some useful npm
commands in the scaffolded spaz project:
npm start
Run the Node.js server. Should be used for running in production.
npm run build
Copy static assets and run a production webpack build.
npm run dev
Run the Node.js server in development mode and the webpack-dev-server
.
npm run watch
Run only the webpack-dev-server
.
npm run lint
Run eslint.
npm run clean
Clear out the assets folder.