Skip to content

Commit 408786c

Browse files
authored
fix: packaging (#25)
1 parent c077f08 commit 408786c

File tree

12 files changed

+233
-32
lines changed

12 files changed

+233
-32
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
working-directory: dist/ng-mat-components
4040
run: |
4141
npm version ${{ needs.create_release.outputs.version }}
42-
npm set registry https://registry.npmjs.org/
42+
npm set registry https://registry.npmjs.org/@fullstack-devops
4343
npm publish
4444
env:
4545
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ testem.log
4848
.DS_Store
4949
Thumbs.db
5050
.yarnrc
51-
package-lock.json
51+
package-lock.json
52+
projects/ng-mat-components/README.md

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@angular/platform-browser-dynamic": "~13.3.11",
3434
"@angular/router": "~13.3.11",
3535
"date-fns": "^2.29.3",
36+
"material-icons": "^1.13.1",
3637
"postcss": "^8.4.20",
3738
"rxjs": "~7.5.6",
3839
"tailwindcss": "^3.2.4",
@@ -66,4 +67,4 @@
6667
"sass": "^1.57.1",
6768
"typescript": "~4.5.2"
6869
}
69-
}
70+
}

projects/lib-workspace/src/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<base href="." />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />
9-
<link rel="preconnect" href="https://fonts.gstatic.com" />
10-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" />
11-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
129
</head>
1310

1411
<body class="mat-typography">

projects/lib-workspace/src/styles.scss

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
@use '@angular/material' as mat;
22
@use '../../ng-mat-components' as fsc;
3-
@use './palettes';
3+
@use './styling/palettes';
44

5-
@include mat.core();
5+
@import 'material-icons/iconfont/material-icons.scss';
6+
@import './styling/roboto.scss';
67

8+
@include mat.core();
79
@include fsc.normalize();
810
@include fsc.core();
911

12+
13+
$my-typography: mat.define-typography-config($font-family: 'Roboto-local');
14+
1015
mat.$theme-ignore-duplication-warnings: true;
1116

1217
// Define a dark theme
1318
$dark-theme: mat.define-dark-theme((color: (primary: mat.define-palette(palettes.$md-primary),
1419
accent: mat.define-palette(palettes.$md-accent),
1520
),
1621
// Only include `typography` and `density` in the default dark theme.
17-
typography: mat.define-typography-config(),
22+
typography: $my-typography,
1823
density: 0,
1924
));
2025

@@ -37,4 +42,8 @@ $light-theme: mat.define-light-theme((color: (primary: mat.define-palette(palett
3742
}
3843

3944
@tailwind components;
40-
@tailwind utilities;
45+
@tailwind utilities;
46+
47+
html * {
48+
font-family: 'Roboto-local';
49+
}

projects/lib-workspace/src/styling/roboto.scss

Lines changed: 95 additions & 0 deletions
Large diffs are not rendered by default.

projects/ng-mat-components/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ Components for @angular/material
44

55
## Installation
66

7-
add to your local `.npmrc` the following line to be able to use this package:
8-
9-
```javascript
10-
@fullstack-devops:registry=https://npm.pkg.github.com
11-
```
12-
13-
And install it:
14-
157
- yarn
16-
```javascript
8+
```shell
179
yarn add @fullstack-devops/ng-mat-components
1810
```
1911
- npm
20-
```javascript
12+
```shell
2113
npm install @fullstack-devops/ng-mat-components
2214
```
2315

16+
### Installation via GitHub packages
17+
18+
add to your local `.npmrc` the following line to be able to use this package:
19+
20+
```shell
21+
@fullstack-devops:registry=https://npm.pkg.github.com
22+
```
23+
2424
## Documentation
2525

26-
Live Demo with all current modules at https://fullstack-devops.github.io/ng-mat-components (still in dev)
26+
Live Demo with all current modules at https://fullstack-devops.github.io/ng-mat-components
2727

2828
Api Documentation: https://fullstack-devops.github.io/libraries/ng-mat-components.
2929

projects/ng-mat-components/assets/fonts/roboto.scss

Lines changed: 95 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)