mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 18:29:09 +00:00
Use parallelshell as to no longer require 2 open tabs
This commit is contained in:
parent
5a704af196
commit
df3ade435c
3 changed files with 9 additions and 18 deletions
|
|
@ -15,6 +15,7 @@
|
|||
"test:phantom": "zuul test/spec/upload.js --phantom",
|
||||
"test": "bin/test",
|
||||
"watch": "nodemon --watch src --ext scss,js -x \"npm run build && node website/update.js\"",
|
||||
"watch:all": "parallelshell \"npm run watch\" \"npm run web\"",
|
||||
"watch:css": "nodemon --watch src --ext scss -x \"npm run build && node website/update.js\"",
|
||||
"watch:examples": "cd website && node build-examples.js watch",
|
||||
"watch:js": "nodemon --watch src --ext js -x \"npm run build && node website/update.js\"",
|
||||
|
|
@ -57,6 +58,7 @@
|
|||
"zuul": "^3.7.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"parallelshell": "^2.0.0",
|
||||
"superagent": "^1.5.0",
|
||||
"tus-js-client": "^1.1.3"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@
|
|||
# Uppy versions, auto updated by update.js
|
||||
uppy_version: 0.0.1
|
||||
|
||||
uppy_dev_size: "78.96"
|
||||
uppy_min_size: "78.96"
|
||||
uppy_gz_size: "78.96"
|
||||
uppy_dev_size: "80.27"
|
||||
uppy_min_size: "80.27"
|
||||
uppy_gz_size: "80.27"
|
||||
|
||||
# Theme
|
||||
google_analytics: UA-63083-12
|
||||
|
|
|
|||
|
|
@ -31,23 +31,12 @@ It's recommended to exclude `./website/public/` from your editor if you want eff
|
|||
For local previews on http://127.0.0.1:4000 type:
|
||||
|
||||
```bash
|
||||
npm run web
|
||||
npm run watch:all
|
||||
```
|
||||
|
||||
If you want to work on Uppy itself, and see its changes reflected in the website, open a new tab and type:
|
||||
This will watch the website, as well as Uppy, as the examples, and rebuild everything and refresh your browser as files change.
|
||||
|
||||
```bash
|
||||
npm run watch
|
||||
# Or if you're only interested in one of these:
|
||||
npm run watch:js
|
||||
npm run watch:css
|
||||
```
|
||||
|
||||
For example, if you'd like to work on the Multipart Form example,
|
||||
|
||||
Run: `npm run watch` and in new tab: `npm run web`
|
||||
|
||||
Then:
|
||||
Then, to work on e.g. the Multipart example, you'd edit the following files:
|
||||
|
||||
```bash
|
||||
atom src/core/Core.js \
|
||||
|
|
@ -57,7 +46,7 @@ atom src/core/Core.js \
|
|||
website/src/examples/multipart/app.es6
|
||||
```
|
||||
|
||||
And open <http://0.0.0.0:4000/examples/multipart/index.html>
|
||||
And open <http://0.0.0.0:4000/examples/multipart/index.html> in your webbrowser.
|
||||
|
||||
## CSS Guidelines
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue