-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OD-15939 Moved api-docs to separate project
- Loading branch information
Showing
10 changed files
with
4,596 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apply plugin: 'com.github.node-gradle.node' | ||
|
||
node { | ||
version = '12.19.0' | ||
yarnVersion = '1.22.10' | ||
download = System.properties['os.name'] != "FreeBSD" // FreeBSD has no binaries this plugin can install | ||
workDir = file("${project.buildDir}/nodejs") | ||
} | ||
|
||
yarn.outputs.cacheIf { true } | ||
|
||
clean { | ||
delete "${projectDir}/node_modules" | ||
} | ||
|
||
task apiDoc(type: YarnTask, dependsOn: [':server-api:apiDocs_mergeSwagger', 'yarn']) { | ||
group = "documentation" | ||
args = ['build', | ||
'--env', | ||
'schema', | ||
tasks.getByPath(':server-api:apiDocs_mergeSwagger').outputs.files.first().toString()] | ||
} | ||
|
||
build.dependsOn(apiDoc) | ||
|
||
task packageApiDoc (type: Zip, dependsOn: apiDoc) { | ||
group = "documentation" | ||
from file("${buildDir}/api-docs") | ||
archiveClassifier = 'documentation' | ||
} | ||
|
||
publishing { | ||
publications { | ||
docs(MavenPublication) { | ||
artifact(packageApiDoc) { | ||
artifactId "apiDoc" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"scripts": { | ||
"build": "webpack --progress --node-env production --config webpack.api.doc.config.js", | ||
"start": "webpack serve --history-api-fallback --progress --open --node-env development --config webpack.api.doc.config.js --env schema ../server-api/build/swagger-merged/swagger.yaml " | ||
}, | ||
"devDependencies": { | ||
"buffer": "^6.0.3", | ||
"builtin-status-codes": "^3.0.0", | ||
"compression-webpack-plugin": "^7.1.2", | ||
"core-js": "^3.11.0", | ||
"file-loader": "^6.2.0", | ||
"html-webpack-plugin": "^5.3.1", | ||
"mini-css-extract-plugin": "^1.5.0", | ||
"os": "^0.1.1", | ||
"path": "^0.12.7", | ||
"terser-webpack-plugin": "^5.1.1", | ||
"to-arraybuffer": "^1.0.1", | ||
"ts-loader": "^9.1.1", | ||
"typescript": "^4.2.4", | ||
"webpack": "^5.36.0", | ||
"webpack-cli": "^4.6.0", | ||
"webpack-dev-server": "^3.11.2", | ||
"xtend": "^4.0.2" | ||
}, | ||
"dependencies": { | ||
"mobx": "^6.3.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"redoc": "^2.0.0-rc.53", | ||
"styled-components": "^5.2.3" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"compilerOptions": { | ||
"rootDirs": [ | ||
"src" | ||
], | ||
"baseUrl": ".", | ||
"allowSyntheticDefaultImports": true, | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"experimentalDecorators": true, | ||
"noImplicitAny": false, | ||
"noImplicitReturns": true, | ||
"strictNullChecks": false, | ||
"module": "esnext", | ||
"skipLibCheck": true, | ||
"target": "es2015", | ||
"jsx": "react", | ||
"lib": [ | ||
"dom", | ||
"esnext", | ||
"es5", | ||
"es6", | ||
"es7" | ||
] | ||
}, | ||
"compileOnSave": false, | ||
"exclude": [ | ||
"./node_modules*", | ||
"./build*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.