@nebula.js/cli-serve
Basic web development server for supernovas.
Last updated a day 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]
  --type             Generic object type                                [string]
  --build                                              [boolean] [default: true]
  --host                                                                [string]
  --port                                                                [number]
  --enigma.host                                                         [string]
  --enigma.port                                                  [default: 9076]
  --ACCEPT_EULA, -a                                   [boolean] [default: false]
  -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.1                                ...           latest (a day ago)
  • 0.1.0-alpha.32                                ...           next (8 days ago)

31 Versions

  • 0.1.1                                ...           a day ago
  • 0.1.0                                ...           3 days ago
  • 0.1.0-alpha.32                                ...           8 days ago
  • 0.1.0-alpha.31                                ...           10 days ago
  • 0.1.0-alpha.30                                ...           16 days ago
  • 0.1.0-alpha.29                                ...           24 days ago
  • 0.1.0-alpha.28                                ...           a month ago
  • 0.1.0-alpha.27                                ...           a month ago
  • 0.1.0-alpha.26                                ...           a month ago
  • 0.1.0-alpha.25                                ...           4 months ago
  • 0.1.0-alpha.24                                ...           4 months ago
  • 0.1.0-alpha.23                                ...           4 months ago
  • 0.1.0-alpha.22                                ...           4 months ago
  • 0.1.0-alpha.21                                ...           4 months ago
  • 0.1.0-alpha.20                                ...           5 months ago
  • 0.1.0-alpha.19                                ...           6 months ago
  • 0.1.0-alpha.18                                ...           6 months ago
  • 0.1.0-alpha.17                                ...           8 months ago
  • 0.1.0-alpha.16                                ...           8 months ago
  • 0.1.0-alpha.15                                ...           9 months ago
  • 0.1.0-alpha.14                                ...           9 months ago
  • 0.1.0-alpha.13                                ...           9 months ago
  • 0.1.0-alpha.12                                ...           10 months ago
  • 0.1.0-alpha.11                                ...           10 months ago
  • 0.1.0-alpha.10                                ...           10 months ago
  • 0.1.0-alpha.9                                ...           10 months ago
  • 0.1.0-alpha.8                                ...           10 months ago
  • 0.1.0-alpha.7                                ...           a year ago
  • 0.1.0-alpha.6                                ...           a year ago
  • 0.1.0-alpha.5                                ...           a year ago
  • 0.1.0-alpha.4                                ...           a year ago
Downloads
Today 1
This Week 32
This Month 118
Last Day 4
Last Week 46
Last Month 71
Dependencies (17)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |