forked from supermodel/starwars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
21 lines (21 loc) · 956 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "starwars",
"version": "1.0.0",
"description": "Supermodel.io Demo",
"main": "index.js",
"repository": "https://github.com/supermodel/starwars.git",
"author": "Zdenek Nemec",
"license": "MIT",
"private": false,
"devDependencies": {
"@supermodel/cli": "^0.46.24"
},
"scripts": {
"test": "supermodel schema validate ./supermodel/starwars/",
"build-oas2": "mkdir -p ./build && cp ./starwars-api.oas2.yaml ./build/ && supermodel schema oas2 ./supermodel/starwars/core -o ./build/starwars-api.oas2.yaml",
"build-avro": "mkdir -p ./build && supermodel schema avro ./supermodel/starwars/avro/FilmTopic.yaml > ./build/film-topic.json",
"build-graphql": "mkdir -p ./build && supermodel schema graphql ./supermodel/starwars/core > ./build/starwars-api.graphql",
"build": "yarn build-oas2 && yarn build-avro && yarn build-graphql",
"supermodel-publish": "cd ./supermodel/starwars/ && supermodel push"
}
}