Media Picker
Media Picker is Atlassian's toolkit for getting your customer's files to the Media API.
Documentation
You can read documentation on this page.
Setup
Media Picker consists of two sub-projects that both need to be set up.
First, install the dependencies:
yarn install-all
Development
Link all the things:
1- Link mediapicker
~/mediapicker: yarn link
2- Link mediapicker inside popup
~/mediapicker/popup: yarn link mediapicker
3- Watch for changes and start the server:
yarn dev
4- Open the examples
open http://127.0.0.1:8081/example/popup.html
Open Chrome in unsafe
mode in order to override Access-Control-Allow-Origin
restrictions when using localhost
:
open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir
Testing
yarn test
Requires yarn build-local
to create the necessary config files.
Releasing
Manually bump the version in package.json
.
npm run release