docs: generate docs and publish them on gitlab pages

Closes #38
This commit is contained in:
Jovan Krunić
2019-03-04 11:55:30 +01:00
parent 584878d950
commit 11be564c8a
4 changed files with 1808 additions and 53 deletions

2
.gitignore vendored
View File

@@ -33,3 +33,5 @@ dist/
.DS_Store .DS_Store
Thumbs.db Thumbs.db
UserInterfaceState.xcuserstate UserInterfaceState.xcuserstate
docs

View File

@@ -4,6 +4,7 @@ stages:
- setup - setup
- build - build
- test - test
- docs
setup: setup:
image: registry.gitlab.com/openstapps/projectmanagement/builder image: registry.gitlab.com/openstapps/projectmanagement/builder
@@ -31,8 +32,6 @@ build:
paths: paths:
- node_modules - node_modules
- www - www
tags:
- docker
unit: unit:
stage: test stage: test
@@ -41,19 +40,24 @@ unit:
artifacts: artifacts:
paths: paths:
- coverage - coverage
tags:
- docker
e2e: e2e:
stage: test stage: test
script: script:
- npm run e2e - npm run e2e
tags:
- docker
audit: audit:
stage: test stage: test
script: script:
- npm audit - npm audit
tags:
- docker pages:
stage: docs
script:
- npm run documentation
- mv docs public
only:
- master
artifacts:
paths:
- public

1833
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,14 +11,15 @@
], ],
"scripts": { "scripts": {
"build": "ng build", "build": "ng build",
"e2e": "ng e2e",
"docker:build": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm install && npm run build\"", "docker:build": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"npm install && npm run build\"",
"docker:enter": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash", "docker:enter": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash",
"docker:fresh": "sudo docker pull registry.gitlab.com/openstapps/app", "docker:fresh": "sudo docker pull registry.gitlab.com/openstapps/app",
"docker:serve": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"ionic serve\"", "docker:serve": "sudo docker run -p 8100:8100 -p 35729:35729 -p 53703:53703 -v $PWD:/app -it registry.gitlab.com/openstapps/app bash -c \"ionic serve\"",
"pree2e": "webdriver-manager update --gecko false", "documentation": "compodoc -p tsconfig.json -d docs",
"e2e": "ng e2e",
"lint": "ng lint", "lint": "ng lint",
"ng": "ng", "ng": "ng",
"pree2e": "webdriver-manager update --gecko false",
"start": "ng serve", "start": "ng serve",
"test": "ng test" "test": "ng test"
}, },
@@ -64,6 +65,7 @@
"@angular/compiler": "6.1.10", "@angular/compiler": "6.1.10",
"@angular/compiler-cli": "6.1.10", "@angular/compiler-cli": "6.1.10",
"@angular/language-service": "6.1.1", "@angular/language-service": "6.1.1",
"@compodoc/compodoc": "1.1.8",
"@ionic/ng-toolkit": "1.1.0", "@ionic/ng-toolkit": "1.1.0",
"@ionic/schematics-angular": "1.0.7", "@ionic/schematics-angular": "1.0.7",
"@types/jasmine": "2.8.6", "@types/jasmine": "2.8.6",