app.json
Version:
Create, validate, and render Heroku app.json manifests
63 lines (43 loc) • 1.14 kB
Markdown
# Contibuting to app.json
### Clone
Fork the repo, or clone the canonical one:
```sh
git clone https://github.com/heroku/app.json
cd app.json
```
### Test
```
npm install
npm test
```
### Develop
To use the CLI from your local code instead of an installed node package:
```sh
npm remove app.json -g
cd ~/my/copy/of/app.json
npm link
```
Now when you run `app.json` in the shell, you're using your local code. To
install the "real" thing later:
```sh
npm remove app.json -g
npm install app.json -g
```
### Bundle
To prepare a browser-ready bundle, run the following:
```sh
npm run build
# Wrote dist/app.js
# Wrote dist/app.min.js
```
### Schema Documentation
The schema documentation is generated from these two files:
- [templates/schema.mustache.html](/templates/schema.mustache.html)
- [lib/schema.js](/lib/schema.js)
Use the command below to genarate human-friendly docs from the schema and copy the markdown to the system
clipboard. Then paste the updated schema doc into the [app-json-schema Dev Center
article](https://devcenter.heroku.com/admin/articles/edit/2061).
```sh
npm run docs
cat dist/schema.md | pbcopy
```