@kano/es6-server
CLI built with connect to serve development files. Named modules in js and html files will be resolved against the `node_modules` directory and replaced with their relative path.
Last updated a year ago by paulvarache .
MIT · Original npm · Tarball · package.json
$ cnpm install @kano/es6-server 
SYNC missed versions from official npm registry.

ES6 Server

CLI built with connect to serve development files. Named modules in js and html files will be resolved against the node_modules directory and replaced with their relative path.

Example:

In source file:

import { add } from 'math-lib/index.js';

Will be sent by this server as:

import { add } from './node_modules/math-lib/index.js';

If the module cannot be resolved, it will be left as is and the browser will throw an error about the named module.

Usage

es6-server # Serves the current directory on port 4000
es6-server ./subdir # Serves the provided directory on port 4000
es6-server --port 7000 # Serves the current directory on port 7000
es6-server --port 0 # Serves the current directory on a randomized port

Current Tags

  • 1.0.3                                ...           latest (a year ago)

4 Versions

  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |