Skip to content

Commit

Permalink
feat(ref: no-ref): enhancement
Browse files Browse the repository at this point in the history
feat(ref: no-ref): enhancement
  • Loading branch information
andriikamaldinov1 authored Nov 29, 2024
2 parents a535a41 + 8a565df commit 55daf61
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ 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:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- 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:
Expand Down
5 changes: 4 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -39,7 +40,9 @@
"src/styles.scss"
],
"scripts": [],
"namedChunks": true
"namedChunks": true,
"sourceMap": true,
"optimization": false
},
"configurations": {
"production": {
Expand Down
12 changes: 1 addition & 11 deletions src/app/cards/cards.component.ts
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"checks": {
"invalidBananaInBox": "error",
"nullishCoalescingNotNullable": "warning",
"unusedStandaloneImports": "suppress"
"unusedStandaloneImports": "error"
},
"defaultCategory": "suppress"
}
Expand Down

0 comments on commit 55daf61

Please sign in to comment.