@tru_id/cli-plugin-dev-server
v0.0.8
Published
Runs a development server from the tru.ID CLI
Downloads
27
Keywords
Readme
@tru_id/cli-plugin-dev-server
Runs a development server from the tru.ID CLI
Installation
To install plugins you'll need the tru.ID CLI v0.8.0
or above.
npm install -g @tru_id/cli@canary
You can then install the plugin using:
$ tru plugins:install @tru_id/cli-plugin-dev-server
Commands
tru server
Runs a development server from the CLI
USAGE
$ tru server
OPTIONS
-h, --help show CLI help
-p, --port=port [default: 8080] The port the server should listen on
-s, --localtunnel-subdomain=localtunnel-subdomain The subdomain for the local tunnel
-t, --localtunnel Run a localtunnel to expose the server to the Internet
--project-dir=project-dir [default: .] The directory that contains the tru.json Project
configuration file
EXAMPLES
$ tru server
$ tru server -t -p 4000
See code: src/commands/server.ts
Releasing
CHANGELOG
Ensure the CHANGELOG.md
is updated:
yarn run changelog
Finesse the contents of CHANGELOG.md
and commit.
Tag
Tag the version that is being released with the version of the package and, optionally, the tag to be used in NPM:
git tag v{version}@{tag}
Push the update to the remote.
git push v{version}@{tag}
Publish to NPM
To release version run:
yarn run publish:latest
To release a canary version only run:
yarn run publish:canary