diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 13923a3..fdfc711 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,6 +25,9 @@ jobs: run: | bun i bun run build:lib + - name: Setup npm token + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.npm_token }}" > dist/ngx-loader-indicator-lib/.npmrc - name: Publish library run: bun run publish:lib env: @@ -32,8 +35,8 @@ jobs: - name: Extract version id: get_version run: | - VERSION=$(node -p "require('./dist/ngx-mask-lib/package.json').version") - echo "version=$VERSION" >> $GITHUB_OUTPUT + VERSION=$(node -p "require('./dist/ngx-loader-indicator-lib/package.json').version") + echo "version=$VERSION" >> $GITHUB_OUTPUT slack_notification: needs: diff --git a/angular.json b/angular.json index d5ba06f..ab7ffdd 100644 --- a/angular.json +++ b/angular.json @@ -29,6 +29,7 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { + "security": { "autoCsp": true }, "outputPath": "dist/angular-loader", "browser": "src/main.ts", "index": "src/index.html", @@ -39,7 +40,9 @@ "src/styles.scss" ], "scripts": [], - "namedChunks": true + "namedChunks": true, + "sourceMap": true, + "optimization": false }, "configurations": { "production": { diff --git a/src/app/cards/cards.component.ts b/src/app/cards/cards.component.ts index 02c658d..070d554 100644 --- a/src/app/cards/cards.component.ts +++ b/src/app/cards/cards.component.ts @@ -1,28 +1,18 @@ import { Component, effect, ElementRef, inject, input, viewChildren } from '@angular/core'; import { NgOptimizedImage } from '@angular/common'; import { HighlightModule } from 'ngx-highlightjs'; -import { NgxLoaderIndicatorDirective } from 'ngx-loader-indicator'; import { CardItem } from './cards.type'; import { ScrollService } from '@open-source/scroll/scroll.service'; import { AssetPipe } from '@libraries/asset/asset.pipe'; import { CustomLoaderComponent } from '../custom-loader/custom-loader.component'; import { FormComponent } from '../shared/form/form.component'; -import { InputComponent } from '@libraries/input/input.component'; import { OpenSourcePath } from '@open-source/path/open-source.path'; import { toSignal } from '@angular/core/rxjs-interop'; @Component({ selector: 'jsdaddy-open-source-cards', standalone: true, - imports: [ - NgOptimizedImage, - HighlightModule, - NgxLoaderIndicatorDirective, - AssetPipe, - CustomLoaderComponent, - FormComponent, - InputComponent, - ], + imports: [NgOptimizedImage, HighlightModule, AssetPipe, CustomLoaderComponent, FormComponent], providers: [ScrollService], templateUrl: './cards.component.html', styleUrls: ['./cards.component.scss'], diff --git a/src/libraries b/src/libraries index 44bebdf..158eddb 160000 --- a/src/libraries +++ b/src/libraries @@ -1 +1 @@ -Subproject commit 44bebdfba90c6534af67bf84d5f90f8f1b0b343b +Subproject commit 158eddb9ea79ca05967268021029ecdf096c23bb diff --git a/tsconfig.json b/tsconfig.json index 04ea4e5..e6aca42 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -47,7 +47,7 @@ "checks": { "invalidBananaInBox": "error", "nullishCoalescingNotNullable": "warning", - "unusedStandaloneImports": "suppress" + "unusedStandaloneImports": "error" }, "defaultCategory": "suppress" }