Build GraphQL docs

This commit is contained in:
Paul Chavard 2020-09-08 16:37:14 +02:00
parent c4eb2ee733
commit 45dc75c6b2
3 changed files with 4025 additions and 76 deletions

4
.gitignore vendored
View file

@ -34,3 +34,7 @@ vendor/*
/yarn-error.log
yarn-debug.log*
.yarn-integrity
/docs
# Local Netlify folder
.netlify

View file

@ -38,6 +38,7 @@
"whatwg-fetch": "^3.0.0"
},
"devDependencies": {
"@2fd/graphdoc": "^2.4.0",
"babel-eslint": "^10.1.0",
"eclint": "^2.8.1",
"eslint": "^7.0.0",
@ -45,6 +46,7 @@
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.2",
"netlify-cli": "^2.61.2",
"prettier": "^2.0.5",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-dev-server": "^3.11.0"
@ -52,9 +54,16 @@
"scripts": {
"lint:ec": "eclint check $({ git ls-files | grep -v app/graphql/schema.graphql ; find vendor -type f ; echo 'db/schema.rb' ; } | sort | uniq -u)",
"lint:js": "eslint ./app/javascript ./app/assets/javascripts ./config/webpack",
"webpack:build": "NODE_ENV=production bin/webpack"
"webpack:build": "NODE_ENV=production bin/webpack",
"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"
},
"engines": {
"node": ">= 12.*"
},
"graphdoc": {
"endpoint": "https://www.demarches-simplifiees.fr/api/v2/graphql",
"output": "./docs/graphql"
}
}

4086
yarn.lock

File diff suppressed because it is too large Load diff