Merge pull request #7519 from tchak/chore-graphql-doc
chore(graphql): build doc
This commit is contained in:
commit
f1f55c3e81
3 changed files with 78 additions and 7314 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -27,7 +27,6 @@ yarn-debug.log*
|
|||
/.vscode
|
||||
/.idea
|
||||
/public/assets
|
||||
/docs
|
||||
|
||||
# Local Netlify folder
|
||||
.netlify
|
||||
|
@ -47,3 +46,7 @@ public/packs-test
|
|||
public/vite
|
||||
public/vite-dev
|
||||
public/vite-test
|
||||
|
||||
|
||||
app/graphql/schema.json
|
||||
public/graphql/schema
|
||||
|
|
11
package.json
11
package.json
|
@ -67,7 +67,6 @@
|
|||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-react": "^7.30.0",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"netlify-cli": "^8.3.0",
|
||||
"prettier": "^2.7.1",
|
||||
"typescript": "^4.7.3",
|
||||
"vite": "^2.9.1",
|
||||
|
@ -75,20 +74,18 @@
|
|||
"vite-plugin-ruby": "^3.0.9"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "del tmp public/packs public/packs-test public/vite public/vite-dev public/vite-test node_modules/.vite",
|
||||
"clean": "del tmp public/packs public/packs-test public/vite public/vite-dev public/vite-test node_modules/.vite public/graphql",
|
||||
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx ./app/javascript",
|
||||
"webpack:build": "NODE_ENV=production bin/webpack",
|
||||
"lint:types": "tsc",
|
||||
"graphql:docs:build": "graphdoc --force",
|
||||
"graphql:docs:deploy": "netlify deploy -d ./docs/graphql --prod",
|
||||
"graphql:docs:publish": "yarn graphql:docs:build && yarn graphql:docs:deploy",
|
||||
"graphql:doc:build": "bin/rake graphql:schema:json && graphdoc --force",
|
||||
"postinstall": "patch-package"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 16.*"
|
||||
},
|
||||
"graphdoc": {
|
||||
"endpoint": "https://www.demarches-simplifiees.fr/api/v2/graphql",
|
||||
"output": "./docs/graphql"
|
||||
"schemaFile": "./app/graphql/schema.json",
|
||||
"output": "./public/graphql/schema"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue