Skip to content

Commit 55daf61

Browse files
feat(ref: no-ref): enhancement
feat(ref: no-ref): enhancement
2 parents a535a41 + 8a565df commit 55daf61

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

.github/workflows/publish.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ jobs:
2525
run: |
2626
bun i
2727
bun run build:lib
28+
- name: Setup npm token
29+
run: |
30+
echo "//registry.npmjs.org/:_authToken=${{ secrets.npm_token }}" > dist/ngx-loader-indicator-lib/.npmrc
2831
- name: Publish library
2932
run: bun run publish:lib
3033
env:
3134
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3235
- name: Extract version
3336
id: get_version
3437
run: |
35-
VERSION=$(node -p "require('./dist/ngx-mask-lib/package.json').version")
36-
echo "version=$VERSION" >> $GITHUB_OUTPUT
38+
VERSION=$(node -p "require('./dist/ngx-loader-indicator-lib/package.json').version")
39+
echo "version=$VERSION" >> $GITHUB_OUTPUT
3740
3841
slack_notification:
3942
needs:

angular.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"build": {
3030
"builder": "@angular-devkit/build-angular:application",
3131
"options": {
32+
"security": { "autoCsp": true },
3233
"outputPath": "dist/angular-loader",
3334
"browser": "src/main.ts",
3435
"index": "src/index.html",
@@ -39,7 +40,9 @@
3940
"src/styles.scss"
4041
],
4142
"scripts": [],
42-
"namedChunks": true
43+
"namedChunks": true,
44+
"sourceMap": true,
45+
"optimization": false
4346
},
4447
"configurations": {
4548
"production": {

src/app/cards/cards.component.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
import { Component, effect, ElementRef, inject, input, viewChildren } from '@angular/core';
22
import { NgOptimizedImage } from '@angular/common';
33
import { HighlightModule } from 'ngx-highlightjs';
4-
import { NgxLoaderIndicatorDirective } from 'ngx-loader-indicator';
54
import { CardItem } from './cards.type';
65
import { ScrollService } from '@open-source/scroll/scroll.service';
76
import { AssetPipe } from '@libraries/asset/asset.pipe';
87
import { CustomLoaderComponent } from '../custom-loader/custom-loader.component';
98
import { FormComponent } from '../shared/form/form.component';
10-
import { InputComponent } from '@libraries/input/input.component';
119
import { OpenSourcePath } from '@open-source/path/open-source.path';
1210
import { toSignal } from '@angular/core/rxjs-interop';
1311

1412
@Component({
1513
selector: 'jsdaddy-open-source-cards',
1614
standalone: true,
17-
imports: [
18-
NgOptimizedImage,
19-
HighlightModule,
20-
NgxLoaderIndicatorDirective,
21-
AssetPipe,
22-
CustomLoaderComponent,
23-
FormComponent,
24-
InputComponent,
25-
],
15+
imports: [NgOptimizedImage, HighlightModule, AssetPipe, CustomLoaderComponent, FormComponent],
2616
providers: [ScrollService],
2717
templateUrl: './cards.component.html',
2818
styleUrls: ['./cards.component.scss'],

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"checks": {
4848
"invalidBananaInBox": "error",
4949
"nullishCoalescingNotNullable": "warning",
50-
"unusedStandaloneImports": "suppress"
50+
"unusedStandaloneImports": "error"
5151
},
5252
"defaultCategory": "suppress"
5353
}

0 commit comments

Comments
 (0)