Skip to content

Commit 5cf6da9

Browse files
authored
Merge pull request #41 from MaxxtonGroup/development
Development
2 parents 258e33a + 24f24ae commit 5cf6da9

6,773 files changed

Lines changed: 48533 additions & 921194 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*
22
!microdocs-server/dist
3+
!microdocs-server/package.json
34
!microdocs-server/config.yml
45
!microdocs-ui/dist

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313

1414
/microdocs-server/data/reports
1515
/microdocs-server/data/database
16-
!/docs/**/dist
16+
!/docs/**/dist
17+
/docs/src/bower_components
18+
/npm-cache/conf/storage
19+
/npm-cache/local_storage
20+
/npm-cache/storage
21+
/microdocs-server/npm-debug.log

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Dockerfile.dev

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:6
2+
EXPOSE 3000
3+
WORKDIR /microdocs/microdocs-server
4+
RUN npm set registry http://192.168.252.165:4873/
5+
RUN echo @maxxton:registry=https://npm.maxxton.com > .npmrc
6+
ADD microdocs-server/config.yml .
7+
ADD microdocs-server/package.json .
8+
RUN npm install --prod && npm install nodemon
9+
CMD ./node_modules/.bin/nodemon --watch dist dist/index.js

Jenkinsfile

Lines changed: 17 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,42 @@
1+
def tag = input message: 'Tag', parameters: [string(defaultValue: '', description: 'Tag', name: 'TAG')]
12
node {
23
stage('Checkout Git'){
3-
git url: 'git@github.com:MaxxtonGroup/microdocs.git', branch: 'development'
4-
stash name: 'source'
5-
}
6-
stage('Build microdocs-core'){
7-
unstash 'source'
8-
dir ('microdocs-core-ts'){
9-
sh 'echo "Installing npm dependencies"'
10-
sh 'npm version $TAG'
11-
sh 'npm install'
12-
sh 'echo "Publishing to private NPM registry"'
13-
sh 'npm run prepublish'
14-
dir ('dist'){
15-
stash name: 'microdocs-core-dist'
16-
}
17-
}
18-
}
19-
stage('Publish microdocs-core'){
20-
unstash 'microdocs-core-dist'
21-
dir ('microdocs-core-ts'){
22-
try{
23-
sh 'npm unpublish @maxxton/microdocs-core@$TAG'
24-
}catch(Exception e){}
25-
sh 'npm publish dist'
26-
}
27-
}
28-
stage('Build microdocs-cli'){
29-
unstash 'source'
30-
dir ('microdocs-cli'){
31-
sh 'echo "Installing npm dependencies"'
32-
sh 'npm version $TAG'
33-
sh 'npm install --save @maxxton/microdocs-core@$TAG'
34-
sh 'npm install'
35-
sh 'echo "Publishing to private NPM registry"'
36-
sh 'npm run prepublish'
37-
dir ('dist'){
38-
stash name: 'microdocs-cli-dist'
39-
}
40-
}
41-
}
42-
stage('Publish microdocs-cli'){
43-
unstash 'microdocs-cli-dist'
44-
dir ('microdocs-cli') {
45-
try{
46-
sh 'npm unpublish @maxxton/microdocs-cli@$TAG'
47-
}catch(Exception e){}
48-
sh 'npm publish'
49-
}
4+
git url: 'git@github.com:MaxxtonGroup/microdocs.git', branch: 'master'
505
}
516
stage('Build microdocs-server'){
52-
unstash 'source'
537
dir ('microdocs-server'){
54-
sh 'echo "Installing npm dependencies"'
55-
sh 'npm version $TAG'
56-
sh 'npm install --save @maxxton/microdocs-core@$TAG'
578
sh 'npm install'
58-
sh 'echo "Publishing to private NPM registry"'
59-
sh 'npm run package-distribution'
9+
sh 'npm version ' + tag
10+
sh 'npm run prepublish'
6011
sh 'cp .npmrc dist/.npmrc'
6112
dir ('dist'){
6213
sh 'npm install --prod'
63-
stash name: 'microdocs-server-dist'
6414
}
6515
}
6616
}
6717
stage('Build microdocs-ui'){
68-
unstash 'source'
6918
dir ('microdocs-ui'){
70-
sh 'echo "Installing npm dependencies"'
71-
sh 'npm version $TAG'
72-
sh 'npm install --save @maxxton/microdocs-core@$TAG'
73-
sh 'npm install @maxxton/gulp-builder@2.3.3 --save-dev'
7419
sh 'npm install'
75-
sh 'echo "Publishing to private NPM registry"'
76-
sh 'npm run package-distribution'
77-
dir ('dist'){
78-
stash name: 'microdocs-ui-dist'
79-
}
20+
sh 'npm version ' + tag
21+
sh './node_modules/.bin/ng build --prod'
22+
}
23+
}
24+
stage('Build microdocs-ui'){
25+
dir ('microdocs-ui'){
26+
sh 'npm install'
27+
sh 'npm version ' + tag
28+
sh 'ng build --prod'
8029
}
8130
}
8231
stage('Build docker image'){
83-
unstash 'source'
84-
unstash 'microdocs-server-dist'
85-
unstash 'microdocs-ui-dist'
86-
sh 'bash docker rmi maxxton/microdocs:$TAG || true'
32+
sh 'bash docker rmi maxxton/microdocs:' + tag + ' || true'
8733
sh 'bash docker rmi maxxton/microdocs:latest || true'
88-
sh 'docker build --tag=maxxton/microdocs:$TAG --no-cache .'
34+
sh 'docker build --tag=maxxton/microdocs:' + tag + ' --no-cache .'
8935
}
9036
stage('Public docker image'){
9137
sh 'docker login --email $DOCKERHUB_EMAIL --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD'
92-
sh 'docker push maxxton/microdocs:$TAG'
93-
sh 'docker tag maxxton/microdocs:$TAG maxxton/microdocs:latest'
38+
sh 'docker push maxxton/microdocs:' + tag;
39+
sh 'docker tag maxxton/microdocs:' + tag + ' maxxton/microdocs:latest'
9440
sh 'docker push maxxton/microdocs:latest'
9541
}
9642
}

docker-compose-npm-cache.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '2'
2+
services:
3+
npm-registry:
4+
image: verdaccio/verdaccio
5+
volumes:
6+
- ./npm-cache/conf:/verdaccio/conf
7+
- ./npm-cache/storage:/verdaccio/storage
8+
- ./npm-cache/local_storage :/verdaccio/local_storage
9+
ports:
10+
- 4873:4873
11+
networks:
12+
- 'microdocs-server'
13+
14+
networks:
15+
microdocs-server:
16+
external:
17+
name: 'microdocs-server'

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '2'
2+
services:
3+
microdocs-server:
4+
container_name: microdocs-dev
5+
image: microdocs:dev
6+
build:
7+
dockerfile: Dockerfile.dev
8+
context: .
9+
ports:
10+
- 3000:3000
11+
volumes:
12+
- ./microdocs-server/dist:/microdocs/microdocs-server/dist
13+
- ./microdocs-server/data:/microdocs/microdocs-server/data
14+
- ./microdocs-ui/dist:/microdocs/microdocs-ui/dist
15+
- ../microdocs-core/dist:/microdocs/microdocs-server/dist/node_modules/@maxxton/microdocs-core
16+
networks:
17+
- 'microdocs-server'
18+
19+
networks:
20+
microdocs-server:
21+
external:
22+
name: 'microdocs-server'

docs/.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "src/bower_components"
3+
}

docs/assets/css/main.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Header */
2-
#head { background:#2196F3; background-size: cover; min-height:520px; text-align: center; padding-top:240px; color:white; font-family:"Open sans", Helvetica, Arial; font-weight:300; }
2+
.navbar{box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px 0px, rgba(0, 0, 0, 0.117647) 0px 1px 6px 0px;}
3+
#head { background:#2196F3; background-size: cover; min-height:420px; text-align: center; padding-top:140px; color:white; font-family:"Open sans", Helvetica, Arial; font-weight:300; }
34
#head.secondary { height:100px; min-height: 100px; padding-top:0px; }
45
#head .row { position: relative}
56
#head .row img{ position: absolute; opacity: 0.5; height: 350px;}
@@ -110,7 +111,7 @@ img.pull-left { margin-right: 10px; }
110111

111112
.preview code{
112113
color: white;
113-
background: #000;
114+
background: #263238;
114115
padding: 10PX 30px;
115116
box-shadow: rgba(0, 0, 0, 0.227451) 0px 3px 10px 0px, rgba(0, 0, 0, 0.156863) 0px 3px 10px 0px;
116117

@@ -163,4 +164,14 @@ img.pull-left { margin-right: 10px; }
163164
display: inline-block;
164165
overflow: auto;
165166
}
166-
}
167+
}
168+
169+
my-app{
170+
display: block;
171+
}
172+
173+
@media (min-width: 1200px) {
174+
.container {
175+
width: 100%;
176+
}
177+
}
8.95 KB
Loading

0 commit comments

Comments
 (0)