Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit b359568

Browse files
authored
upgrade to ng 13 (#39)
1 parent 4c6cb94 commit b359568

Some content is hidden

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

53 files changed

+7226
-24993
lines changed

.github/workflows/Release.yaml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,40 @@ on:
1313
- '.github/PULL_REQUEST_TEMPLATE.md'
1414

1515
jobs:
16+
create_release:
17+
uses: fullstack-devops/actions/.github/workflows/create-release.yml@main
18+
secrets:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
1621
build:
1722
runs-on: ubuntu-latest
23+
needs: create_release
1824
steps:
1925
- name: Checkout code
2026
uses: actions/checkout@v2
27+
- name: Setup awesome-ci
28+
uses: fullstack-devops/awesome-ci-action@main
2129
- name: Setup node
2230
uses: actions/setup-node@v2
2331
with:
24-
node-version: '14.x'
25-
- name: Setup awesome-ci
26-
run: |
27-
wget https://github.com/fullstack-devops/awesome-ci/releases/download/0.7.5/awesome-ci
28-
chmod +x awesome-ci
29-
- name: install npm packages
32+
node-version: '16.x'
33+
34+
- name: install packages
35+
run: yarn
36+
- name: build applikation
37+
run: yarn run build
38+
39+
- name: dryrun publish
40+
working-directory: dist/material-calendar
3041
run: |
31-
# Retry 3 times before the steps actually fails
32-
(echo "===== NPM Install Attempt: 1 ====" && npm ci) || \
33-
(echo "===== NPM Install Attempt: 2 ====" && npm ci) || \
34-
(echo "===== NPM Install Attempt: 3 ====" && npm ci) || \
35-
(echo "==== NPM Install Step Failed ====" && exit 1)
36-
- name: package Applikation
37-
run: npm run build
38-
- name: set publish config
39-
shell: bash
40-
run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
41-
env:
42-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
- name: Create Release and Publish
44-
run: ./awesome-ci createRelease -publishNpm dist/material-calendar/
42+
npm version ${{ needs.generate_infos.outputs.version }}
43+
npm publish -dry-run
44+
45+
- name: Publish release
46+
run: awesome-ci release publish -releaseid "${{ needs.generate_infos.outputs.releaseid }}"
4547
env:
4648
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
- name: set publish config
51+
shell: bash
52+
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_PUBLISH_TOKEN }}

.github/workflows/branchPR.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ on:
99
- '.github/PULL_REQUEST_TEMPLATE.md'
1010

1111
jobs:
12+
generate_infos:
13+
uses: fullstack-devops/actions/.github/workflows/generate-build-infos.yml@main
14+
secrets:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
1217
build:
1318
runs-on: ubuntu-latest
19+
needs: generate_infos
1420
steps:
1521
- name: Checkout code
1622
uses: actions/checkout@v2
1723
- name: Setup node
1824
uses: actions/setup-node@v2
1925
with:
20-
node-version: '14.x'
21-
- name: Setup awesome-ci
22-
run: |
23-
wget https://github.com/fullstack-devops/awesome-ci/releases/download/0.7.5/awesome-ci
24-
chmod +x awesome-ci
25-
- name: install npm packages
26+
node-version: '16.x'
27+
28+
- name: install packages
29+
run: yarn
30+
- name: build applikation
31+
run: yarn run build
32+
33+
- name: dryrun publish
34+
working-directory: dist/material-calendar
2635
run: |
27-
# Retry 3 times before the steps actually fails
28-
(echo "===== NPM Install Attempt: 1 ====" && npm ci) || \
29-
(echo "===== NPM Install Attempt: 2 ====" && npm ci) || \
30-
(echo "===== NPM Install Attempt: 3 ====" && npm ci) || \
31-
(echo "==== NPM Install Step Failed ====" && exit 1)
32-
- name: package Applikation
33-
run: npm run build
34-
- name: Dry-Run release
35-
run: ./awesome-ci createRelease -patchLevel bugfix -dry-run
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
npm version ${{ needs.generate_infos.outputs.version }}
37+
npm publish -dry-run

.gitignore

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,43 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
11+
npm-debug.log
12+
yarn-error.log
1613

1714
# IDEs and editors
18-
/.idea
15+
.idea/
1916
.project
2017
.classpath
2118
.c9/
2219
*.launch
2320
.settings/
2421
*.sublime-workspace
2522

26-
# IDE - VSCode
23+
# Visual Studio Code
2724
.vscode/*
2825
!.vscode/settings.json
2926
!.vscode/tasks.json
3027
!.vscode/launch.json
3128
!.vscode/extensions.json
3229
.history/*
3330

34-
# misc
35-
/.sass-cache
31+
# Miscellaneous
32+
/.angular
33+
.sass-cache/
3634
/connect.lock
3735
/coverage
3836
/libpeerconnection.log
39-
npm-debug.log
40-
yarn-error.log
4137
testem.log
4238
/typings
4339

44-
# System Files
40+
# System files
4541
.DS_Store
4642
Thumbs.db
43+
projects/material-calendar/README.md

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "pwa-chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)