wss-cli
Command line tools for wssio.
project, write and run an application with one single command!
Install
npm i --g wss-cli
Usage
wssio
offers a single command line interface for your wssio
project:
$ wss
Will print an help:
wss command line interface, available commands are:
* project project a new project
* plugin project a new plugin
* version the current wss-cli version
* help help about commands
Launch 'wss help [command]' to know more about the commands.
project
wss-cli
can also help with generating some project of your next wssio application. To use it:
wss project <yourapp>
cd yourapp
npm install
The sample code offers you four npm tasks:
npm start
- starts the applicationnpm dev
- dev the applicationnpm unit
- test and generate test reportnpm test
- runs the testsnpm build
- build the application
You will find three different folders:
plugins
: the folder where you will place all your custom pluginsservices
: the folder where you will declare all your endpointstest
: the folder where you will declare all your test
Finally there will be an app.ts
file, which is your entry point.
plugin
Create a basic plugin.
$ wss plugin <folder>/<name>