From 2d228edde5249d6ef926df82ad2bd5057730094b Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Tue, 30 Jan 2024 15:52:12 +0100 Subject: [PATCH] Fix readme.md lint (#99) --- .github/workflows/npmpub.yml | 2 +- .github/workflows/tests.yml | 2 +- README.md | 14 +++++++------- angular.json | 2 -- package.json | 2 +- src/styles.css | 1 - 6 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 src/styles.css diff --git a/.github/workflows/npmpub.yml b/.github/workflows/npmpub.yml index 0938800..153dde2 100644 --- a/.github/workflows/npmpub.yml +++ b/.github/workflows/npmpub.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [20.x] + node-version: [21.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 41b137b..5bfda90 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [20.x] + node-version: [21.x] steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index 2b5187b..611d3d9 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,14 @@ Check out the live demo: [ng2-fittext Demo](https://stackblitz.com/edit/stackbli Install the library using npm: -``` -$ npm install --save ng2-fittext +```bash +npm install --save ng2-fittext ``` ### Usage 1. Import the module in your Angular application: -``` +```ts import { Ng2FittextModule } from "ng2-fittext"; @NgModule({ @@ -36,7 +36,7 @@ import { Ng2FittextModule } from "ng2-fittext"; ``` 2. Use the directive in your components: -``` +```ts import { Component } from '@angular/core'; @Component({ @@ -54,7 +54,7 @@ export class LabelComponent {} Fit to the parent element (works if you have a variable number of elements between your element and its parent): -``` +```ts import { Component } from '@angular/core'; @Component({ @@ -70,7 +70,7 @@ export class LabelComponent {} **NEW! Support for auto-resize input box:** -``` +```ts import { Component } from '@angular/core'; @Component({ @@ -86,7 +86,7 @@ export class InputBoxComponent {} **NEW! Support for maxFontSize:** -``` +```ts import { Component } from '@angular/core'; @Component({ diff --git a/angular.json b/angular.json index bad5a6c..3545a73 100644 --- a/angular.json +++ b/angular.json @@ -33,7 +33,6 @@ "src/assets" ], "styles": [ - "src/styles.css" ], "scripts": [] }, @@ -95,7 +94,6 @@ "src/assets" ], "styles": [ - "src/styles.scss" ], "scripts": [] } diff --git a/package.json b/package.json index c5a0600..68ebb58 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "node node_modules/@angular/cli/bin/ng build --configuration production", "test": "node node_modules/@angular/cli/bin/ng test", "test:headless": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadless", - "test:headless:singleRun": "node node_modules/@angular/cli/bin/ng test --no-watch --no-progress --browsers=ChromeHeadless", + "test:headless:singleRun": "node node_modules/@angular/cli/bin/ng test --no-watch --no-progress --browsers=ChromeHeadless lib", "release:minor": "cd ./projects/lib/ && npm version minor", "release:major": "cd ./projects/lib/ && npm version major", "release:patch": "cd ./projects/lib/ && npm version patch", diff --git a/src/styles.css b/src/styles.css deleted file mode 100644 index 90d4ee0..0000000 --- a/src/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* You can add global styles to this file, and also import other style files */