Skip to content

Commit

Permalink
Ship a small webserver for local testing. Fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Nov 17, 2015
1 parent a3cab5c commit a2428ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,22 @@ A work in progress - nothing to see here.
- Themable UI with a beautiful default. UI is opt-out if people want to use just tus for instance

Check [open issues](https://github.com/transloadit/transloadit-js-client/milestones/Minimum%20Viable%20Product) for our Minimum Viable Product.

## Local Development

First clone and install the project:

```bash
git clone [email protected]:transloadit/transloadit-js-client.git
cd transloadit-js-client
npm install
```

Now to get a sandbox environment set up, type:

```bash
npm run preview
```

This will `npm run build` the project into `./build`, and then serve that
directory using a simple static http server.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"watch": "npm run watch:js & npm run watch:css",
"watch:js": "watchify js/lib/transloadit-js-client.js -do build/transloadit-js-client.js",
"watch:css": "nodemon -e scss -x \"npm run build:css\"",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"preview": "npm run build & http-server ./build -d -o "
},
"repository": {
"type": "git",
Expand All @@ -27,6 +28,7 @@
"browserify": "^12.0.1",
"node-sass": "^3.4.2",
"nodemon": "^1.8.1",
"watchify": "^3.6.1"
"watchify": "^3.6.1",
"http-server": "^0.8.5"
}
}

0 comments on commit a2428ba

Please sign in to comment.