-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,449 additions
and
174 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 |
---|---|---|
@@ -1,96 +1,42 @@ | ||
def tag = input message: 'Tag', parameters: [string(defaultValue: '', description: 'Tag', name: 'TAG')] | ||
node { | ||
stage('Checkout Git'){ | ||
git url: '[email protected]:MaxxtonGroup/microdocs.git', branch: 'development' | ||
stash name: 'source' | ||
} | ||
stage('Build microdocs-core'){ | ||
unstash 'source' | ||
dir ('microdocs-core-ts'){ | ||
sh 'echo "Installing npm dependencies"' | ||
sh 'npm version $TAG' | ||
sh 'npm install' | ||
sh 'echo "Publishing to private NPM registry"' | ||
sh 'npm run prepublish' | ||
dir ('dist'){ | ||
stash name: 'microdocs-core-dist' | ||
} | ||
} | ||
} | ||
stage('Publish microdocs-core'){ | ||
unstash 'microdocs-core-dist' | ||
dir ('microdocs-core-ts'){ | ||
try{ | ||
sh 'npm unpublish @maxxton/microdocs-core@$TAG' | ||
}catch(Exception e){} | ||
sh 'npm publish dist' | ||
} | ||
} | ||
stage('Build microdocs-cli'){ | ||
unstash 'source' | ||
dir ('microdocs-cli'){ | ||
sh 'echo "Installing npm dependencies"' | ||
sh 'npm version $TAG' | ||
sh 'npm install --save @maxxton/microdocs-core@$TAG' | ||
sh 'npm install' | ||
sh 'echo "Publishing to private NPM registry"' | ||
sh 'npm run prepublish' | ||
dir ('dist'){ | ||
stash name: 'microdocs-cli-dist' | ||
} | ||
} | ||
} | ||
stage('Publish microdocs-cli'){ | ||
unstash 'microdocs-cli-dist' | ||
dir ('microdocs-cli') { | ||
try{ | ||
sh 'npm unpublish @maxxton/microdocs-cli@$TAG' | ||
}catch(Exception e){} | ||
sh 'npm publish' | ||
} | ||
git url: '[email protected]:MaxxtonGroup/microdocs.git', branch: 'master' | ||
} | ||
stage('Build microdocs-server'){ | ||
unstash 'source' | ||
dir ('microdocs-server'){ | ||
sh 'echo "Installing npm dependencies"' | ||
sh 'npm version $TAG' | ||
sh 'npm install --save @maxxton/microdocs-core@$TAG' | ||
sh 'npm install' | ||
sh 'echo "Publishing to private NPM registry"' | ||
sh 'npm run package-distribution' | ||
sh 'npm version ' + tag | ||
sh 'npm run prepublish' | ||
sh 'cp .npmrc dist/.npmrc' | ||
dir ('dist'){ | ||
sh 'npm install --prod' | ||
stash name: 'microdocs-server-dist' | ||
} | ||
} | ||
} | ||
stage('Build microdocs-ui'){ | ||
unstash 'source' | ||
dir ('microdocs-ui'){ | ||
sh 'echo "Installing npm dependencies"' | ||
sh 'npm version $TAG' | ||
sh 'npm install --save @maxxton/microdocs-core@$TAG' | ||
sh 'npm install @maxxton/[email protected] --save-dev' | ||
sh 'npm install' | ||
sh 'echo "Publishing to private NPM registry"' | ||
sh 'npm run package-distribution' | ||
dir ('dist'){ | ||
stash name: 'microdocs-ui-dist' | ||
} | ||
sh 'npm version ' + tag | ||
sh './node_modules/.bin/ng build --prod' | ||
} | ||
} | ||
stage('Build microdocs-ui'){ | ||
dir ('microdocs-ui'){ | ||
sh 'npm install' | ||
sh 'npm version ' + tag | ||
sh 'ng build --prod' | ||
} | ||
} | ||
stage('Build docker image'){ | ||
unstash 'source' | ||
unstash 'microdocs-server-dist' | ||
unstash 'microdocs-ui-dist' | ||
sh 'bash docker rmi maxxton/microdocs:$TAG || true' | ||
sh 'bash docker rmi maxxton/microdocs:' + tag + ' || true' | ||
sh 'bash docker rmi maxxton/microdocs:latest || true' | ||
sh 'docker build --tag=maxxton/microdocs:$TAG --no-cache .' | ||
sh 'docker build --tag=maxxton/microdocs:' + tag + ' --no-cache .' | ||
} | ||
stage('Public docker image'){ | ||
sh 'docker login --email $DOCKERHUB_EMAIL --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD' | ||
sh 'docker push maxxton/microdocs:$TAG' | ||
sh 'docker tag maxxton/microdocs:$TAG maxxton/microdocs:latest' | ||
sh 'docker push maxxton/microdocs:' + tag; | ||
sh 'docker tag maxxton/microdocs:' + tag + ' maxxton/microdocs:latest' | ||
sh 'docker push maxxton/microdocs:latest' | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
module.exports.default = { | ||
info: { | ||
color: 'pink' | ||
}, | ||
dependencies: { | ||
'{dependencyTitle}': { | ||
paths: { | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
"author": "Steven Hermans ([email protected])", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@maxxton/microdocs-core": "1.7.0", | ||
"@maxxton/microdocs-core": "1.7.1", | ||
"body-parser": "^1.15.2", | ||
"express": "^4.14.0", | ||
"express-handlebars": "^3.0.0", | ||
|
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
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
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
14 changes: 7 additions & 7 deletions
14
microdocs-ui/src/app/components/dashboard/dashboard.component.html
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<div class="grid-container page-content"> | ||
<template [ngIf]="empty"> | ||
<!--<welcome-panel></welcome-panel>--> | ||
<div class="page-content"> | ||
<template [ngIf]="empty && !loading"> | ||
<welcome></welcome> | ||
</template> | ||
<template [ngIf]="!empty"> | ||
<!--<card title="Projects Overview" [sectionClass]="'card-section content'" [canHide]="true">--> | ||
<!--<dependency-graph [nodes]="nodes" [env]="env"></dependency-graph>--> | ||
<!--</card>--> | ||
<template [ngIf]="!empty && !loading"> | ||
<simple-card text="Projects Overview" [paper]="true"> | ||
<dependency-graph [nodes]="nodes" [env]="env"></dependency-graph> | ||
</simple-card> | ||
</template> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
microdocs-ui/src/app/components/dashboard/dashboard.component.scss
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,5 @@ | ||
.page-content{ | ||
margin: 2rem auto 0 8rem; | ||
width: auto !important; | ||
max-width: 1200px !important; | ||
} |
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,7 @@ | ||
declare module 'd3'{ | ||
export const select:any; | ||
export const behavior:any; | ||
export const layout:any; | ||
export const values:any; | ||
export const event:any; | ||
} |
27 changes: 27 additions & 0 deletions
27
microdocs-ui/src/app/components/dependency-graph/dependency-graph.component.html
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,27 @@ | ||
<div class="graph" [class.small]="small"> | ||
<div class="container" (window:resize)="onResize($event)"></div> | ||
<div class="option-bar" *ngIf="showOptionBar"> | ||
<div class="dropdown" [class.expanded]="dropdownExpanded"> | ||
<div class="dropdown-header" (click)="dropdownExpanded = !dropdownExpanded"> | ||
<md-icon>keyboard_arrow_up</md-icon> | ||
<span>Groups</span> | ||
</div> | ||
<div class="overlay-wrapper"> | ||
<div class="overlay"> | ||
<div class="overlay-item" *ngFor="let group of groupToggles" (click)="toggleGroup(group)"> | ||
<md-icon>{{group.visible ? 'check_box' : 'check_box_outline_blank'}}</md-icon> | ||
<span class="title">{{group.name}}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="show-versions-button option-button" [class.selected]="showVersions" (click)="toggleShowVersions()"> | ||
<md-icon>{{showVersions ? 'call_split' : 'call_merge'}}</md-icon> | ||
<span>Show different used versions</span> | ||
</div> | ||
<div class="show-inherit-button option-button" [class.selected]="!showInheritance" (click)="toggleShowInheritance()"> | ||
<md-icon>{{'device_hub' }}</md-icon> | ||
<span>Combine inheritance into one node</span> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.