@js-primer/local-server
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@js-primer/local-server

Local Server for JavaScript Primer.

Requirements

  • Node.js 10+
    • It contains npm 5.3.0>=
    • It contains npx command

Usage

npxコマンドを使い直接ダウンロードと実行ができます。

Usage
  $ npx @js-primer/local-server [<directory>]

Options:
  --port  TCP port at which the files will be served

サーバを起動する(ベースディレクトリは現在ディレクトリ)

npx @js-primer/local-server

指定したディレクトリをベースにサーバを起動する

npx @js-primer/local-server ./docs

指定したポート番号でサーバを起動する

npx @js-primer/local-server --port 8000

起動したローカルサーバは、コマンドラインでCtrl+Cのショートカットを押下することで終了できます。

Usage for old Node.js

Node.js 8.2未満の場合はnpmでインストールすることで利用できます。

npm install local-server --global
$ js-primer-local-server

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Package Sidebar

Install

npm i @js-primer/local-server

Weekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

17.1 kB

Total Files

13

Last publish

Collaborators

  • azu
  • lacolaco