现代化的上传组件。 https://uppy.io/
|
преди 9 години | |
---|---|---|
bin | преди 9 години | |
examples | преди 9 години | |
src | преди 9 години | |
test | преди 9 години | |
website | преди 9 години | |
.babelrc | преди 9 години | |
.editorconfig | преди 9 години | |
.eslintrc | преди 9 години | |
.gitignore | преди 9 години | |
.travis.yml | преди 9 години | |
.zuul.yml | преди 9 години | |
CONTRIBUTING.md | преди 9 години | |
LICENSE | преди 9 години | |
Makefile | преди 9 години | |
README.md | преди 9 години | |
bs-config.js | преди 9 години | |
classes.es6 | преди 9 години | |
core.js | преди 9 години | |
package.json | преди 9 години | |
plugins.js | преди 9 години | |
uppy-core-plugins-architecture.jpg | преди 9 години |
A work in progress - nothing to see here.
Check open issues for our Minimum Viable Product.
First clone and install the project:
git clone git@github.com:transloadit/uppy.git
cd uppy
npm install
Now to get a sandbox environment set up, type:
npm run preview
This will npm run build
the project into ./build
, and then serve that
directory using a simple static http server.
We keep the uppyjs.io website in ./website
for so it's easy to keep docs & code in sync as we're still iterating at high velocity. For those reading this and screaming murder, HashiCorp does this for all their projects, and it working well for them on a scale vastly more impressive than ours.
The site is built with Hexo, and Travis automatically deploys this onto GitHub Pages (it overwrites the gh-pages
branch at every deploy).
Content is written in Markdown and located in ./website/src
. Pull requests welcome!
The website is currently a clone of Yuxi Evan You's Vue.js website (view license) - just so we can hit the ground rolling in terms of setting up Haxo etc. Obviously as soon as possible, we should start rolling out our own layout & content.
./website/update.js
is called during website builds to inject the Uppy versions & filesizes into the documentation. website
in an independent folder and so it cannot rely on anything from the root project, without update.js
explicitly making it available (copying).
It's recommended to exclude ./website/public/
from your editor if you want efficient searches.
For local previews on http://127.0.0.1:4000
type:
make website-preview
Travis should:
examples/*/