c3-dev-webserver

1.0.6 • Public • Published

c3-dev-webserver

This is an NPM package that allow C3 developers to run the dev server easly

Prerequisites

  • OpenSSL (needed to generate the SSL certificate)
  • Nodejs 6.1 or newer (8.1 is recommended)

Installation

npm install -g c3-dev-webserver

Usage

c3-webserver [options] <dir>
 
  Options:
 
    -v, --version             output the version number
    -p, --port <port>         Set the HTTPwebserver Port, Default=8080
    -s, --https-port <hport>  Set the HTTPS webserver Port, Default=4430
    -c, --certs <certs>       Set where to save the SSL certs, Default="~/.diptox/c3-dev-webserver/"
    -h, --help                output usage information

<dir> is the directory that contains your addons

Example

~  
├── ...  
├── diptox  
│   ├── addons          # <==== The path of this directory must be set as ```<dir>```   
│      ├── behaviors  
│      ├── effects  
│      ├── plugins  
│         ├── TransitionLayout  
└── ...  

I am going to develop a new plugin called TransitionLayout
~/diptox/addons/plugins is the parent directory of TransitionLayout

My command will be

c3-webserver -p 8000 ~/diptox/addons/

then in C3 the Url of your plugin addon.json will be

http://localhost:8000/plugins/TransitionLayout/addon.json

Package Sidebar

Install

npm i c3-dev-webserver

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

5.97 kB

Total Files

3

Last publish

Collaborators

  • roonie007