@nebula.js/cli-serve
Basic web development server for supernovas.
Last updated 3 months ago by mm85dk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nebula.js/cli-serve 
SYNC missed versions from official npm registry.

@nebula.js/cli-serve

Basic web development server for supernovas.

Install

npm install @nebula.js/cli@next -g

Usage

CLI

nebula serve -h

Dev server

Options:
  --version      Show version number                                   [boolean]
  --entry        File entrypoint                                        [string]
  --build                                              [boolean] [default: true]
  --host                                                                [string]
  --port                                                                [number]
  --enigma.host                                                         [string]
  --enigma.port                                                  [default: 9076]
  -h, --help     Show help                                             [boolean]

Example

Start the server and connect to enigma on port 9077

nebula serve --enigma.port 9077

node.js API

const serve = require('@nebula.js/cli-serve');

serve({
  port: 3000,
  entry: path.resolve(__dirname, 'sn.js') // custom entrypoint
  enigma: {
    port: 9077
  }
}).then(s => {
  s.url; // serve url
  s.close(); // close the server
});

Current Tags

  • 0.1.0-alpha.14                                ...           latest (3 months ago)
  • 0.1.0-alpha.17                                ...           next (a month ago)

14 Versions

  • 0.1.0-alpha.17                                ...           a month ago
  • 0.1.0-alpha.16                                ...           a month ago
  • 0.1.0-alpha.15                                ...           2 months ago
  • 0.1.0-alpha.14                                ...           3 months ago
  • 0.1.0-alpha.13                                ...           3 months ago
  • 0.1.0-alpha.12                                ...           3 months ago
  • 0.1.0-alpha.11                                ...           3 months ago
  • 0.1.0-alpha.10                                ...           3 months ago
  • 0.1.0-alpha.9                                ...           4 months ago
  • 0.1.0-alpha.8                                ...           4 months ago
  • 0.1.0-alpha.7                                ...           5 months ago
  • 0.1.0-alpha.6                                ...           5 months ago
  • 0.1.0-alpha.5                                ...           5 months ago
  • 0.1.0-alpha.4                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 85
Dependencies (10)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |