Skip to content

Commit

Permalink
Added Jenkinsfile and build to copy readme etc. to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Kauranen committed Jan 30, 2020
1 parent a27895c commit 07ebd5e
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 26 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
library '[email protected]'

podTemplate(label: pod.label,
containers: pod.templates + [
containerTemplate(name: 'node', image: 'node:12', ttyEnabled: true, command: '/bin/sh -c', args: 'cat'),
]
) {
node(pod.label) {
stage('Checkout') {
checkout scm
}
stage('Build') {
container('node') {
sh """
npm ci
npm run build
"""
}
}
stage('Publish tag') {
dir("dist/ngx-resource-calenadar") {
publishTagToNpm()
}
}
}
}
117 changes: 116 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build": "npm run build:lib & npm run build:copyfiles",
"build:lib": "ng build ngx-resource-calendar",
"build:copyfiles": "copyfiles README.md LICENSE dist/ngx-resource-calendar",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand Down Expand Up @@ -39,6 +41,7 @@
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.0.0",
"copyfiles": "^2.2.0",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
Expand Down
24 changes: 0 additions & 24 deletions projects/ngx-resource-calendar/README.md

This file was deleted.

6 changes: 6 additions & 0 deletions projects/ngx-resource-calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@protacon/ngx-resource-calendar",
"version": "0.0.1",
"description": "Resource calendar for Angular",
"author": "Protacon",
"license": "MIT",
"bugs": {
"url": "https://github.com/protacon/ngx-resource-calendar/issues"
},
"peerDependencies": {
"@angular/common": ">=8.0.0 <10.0.0",
"@angular/core": ">=8.0.0 <10.0.0"
Expand Down

0 comments on commit 07ebd5e

Please sign in to comment.