mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
Ship a small webserver for local testing. Fixes #12
This commit is contained in:
parent
a3cab5cbe1
commit
a2428babfd
2 changed files with 23 additions and 2 deletions
19
README.md
19
README.md
|
|
@ -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 git@github.com: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.
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue