https://github.com/xapphire13/proto-launch
Small tool to host JavaScript prototypes on a local server
https://github.com/xapphire13/proto-launch
javascript local prototype server testing
Last synced: about 2 months ago
JSON representation
Small tool to host JavaScript prototypes on a local server
- Host: GitHub
- URL: https://github.com/xapphire13/proto-launch
- Owner: Xapphire13
- License: mit
- Created: 2018-03-28T06:17:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T00:14:26.000Z (over 8 years ago)
- Last Synced: 2025-03-18T12:24:34.516Z (over 1 year ago)
- Topics: javascript, local, prototype, server, testing
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proto-launch
Small tool to host javascript prototypes on a local server.
## Installation
```sh
npm install -g proto-launch
```
Optionally, you can install `proto-launch` locally.
```sh
npm install --save-dev proto-launch
```
## Usage
From within your project, simply run `proto-launch` and a URL to your prototype will be printed to the command line.
e.g.
> Project live at http://127.0.0.1:36990
If you have installed locally, in your `package.json` you can refer to `proto-launch` in your package scripts, example:
```json
"scripts": {
"launch": "proto-launch"
},
```
## Configuration
Currently `proto-launch` isn't configurable, it simply launches a small website with a webpage wrapping the script pointed to by `main` in your `package.json`.
In the future I may add Webpack support to save you from having to bundle your project beforehand (contributions before I get to this are more than welcome).