1.0.2 • Published 3 years ago

@js-primer/local-server v1.0.2

Weekly downloads
38
License
MIT
Repository
github
Last release
3 years ago

@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

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago