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
|
/.vscode
|
||||||
/.idea
|
/.idea
|
||||||
/public/assets
|
/public/assets
|
||||||
/docs
|
|
||||||
|
|
||||||
# Local Netlify folder
|
# Local Netlify folder
|
||||||
.netlify
|
.netlify
|
||||||
|
@ -47,3 +46,7 @@ public/packs-test
|
||||||
public/vite
|
public/vite
|
||||||
public/vite-dev
|
public/vite-dev
|
||||||
public/vite-test
|
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-prettier": "^4.0.0",
|
||||||
"eslint-plugin-react": "^7.30.0",
|
"eslint-plugin-react": "^7.30.0",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"netlify-cli": "^8.3.0",
|
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"typescript": "^4.7.3",
|
"typescript": "^4.7.3",
|
||||||
"vite": "^2.9.1",
|
"vite": "^2.9.1",
|
||||||
|
@ -75,20 +74,18 @@
|
||||||
"vite-plugin-ruby": "^3.0.9"
|
"vite-plugin-ruby": "^3.0.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx ./app/javascript",
|
||||||
"webpack:build": "NODE_ENV=production bin/webpack",
|
"webpack:build": "NODE_ENV=production bin/webpack",
|
||||||
"lint:types": "tsc",
|
"lint:types": "tsc",
|
||||||
"graphql:docs:build": "graphdoc --force",
|
"graphql:doc:build": "bin/rake graphql:schema:json && graphdoc --force",
|
||||||
"graphql:docs:deploy": "netlify deploy -d ./docs/graphql --prod",
|
|
||||||
"graphql:docs:publish": "yarn graphql:docs:build && yarn graphql:docs:deploy",
|
|
||||||
"postinstall": "patch-package"
|
"postinstall": "patch-package"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 16.*"
|
"node": ">= 16.*"
|
||||||
},
|
},
|
||||||
"graphdoc": {
|
"graphdoc": {
|
||||||
"endpoint": "https://www.demarches-simplifiees.fr/api/v2/graphql",
|
"schemaFile": "./app/graphql/schema.json",
|
||||||
"output": "./docs/graphql"
|
"output": "./public/graphql/schema"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue