Fix readme.md lint

This commit is contained in:
Lorenzo Iovino 2024-01-30 15:28:22 +01:00
parent 7c20b83d33
commit 5e338c6928
6 changed files with 10 additions and 13 deletions

View file

@ -9,7 +9,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
node-version: [20.x] node-version: [21.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View file

@ -12,7 +12,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
node-version: [20.x] node-version: [21.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View file

@ -20,14 +20,14 @@ Check out the live demo: [ng2-fittext Demo](https://stackblitz.com/edit/stackbli
Install the library using npm: Install the library using npm:
``` ```bash
$ npm install --save ng2-fittext npm install --save ng2-fittext
``` ```
### Usage ### Usage
1. Import the module in your Angular application: 1. Import the module in your Angular application:
``` ```ts
import { Ng2FittextModule } from "ng2-fittext"; import { Ng2FittextModule } from "ng2-fittext";
@NgModule({ @NgModule({
@ -36,7 +36,7 @@ import { Ng2FittextModule } from "ng2-fittext";
``` ```
2. Use the directive in your components: 2. Use the directive in your components:
``` ```ts
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @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): 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'; import { Component } from '@angular/core';
@Component({ @Component({
@ -70,7 +70,7 @@ export class LabelComponent {}
**NEW! Support for auto-resize input box:** **NEW! Support for auto-resize input box:**
``` ```ts
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
@ -86,7 +86,7 @@ export class InputBoxComponent {}
**NEW! Support for maxFontSize:** **NEW! Support for maxFontSize:**
``` ```ts
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({

View file

@ -33,7 +33,6 @@
"src/assets" "src/assets"
], ],
"styles": [ "styles": [
"src/styles.css"
], ],
"scripts": [] "scripts": []
}, },
@ -95,7 +94,6 @@
"src/assets" "src/assets"
], ],
"styles": [ "styles": [
"src/styles.scss"
], ],
"scripts": [] "scripts": []
} }

View file

@ -7,7 +7,7 @@
"build": "node node_modules/@angular/cli/bin/ng build --configuration production", "build": "node node_modules/@angular/cli/bin/ng build --configuration production",
"test": "node node_modules/@angular/cli/bin/ng test", "test": "node node_modules/@angular/cli/bin/ng test",
"test:headless": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadless", "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:minor": "cd ./projects/lib/ && npm version minor",
"release:major": "cd ./projects/lib/ && npm version major", "release:major": "cd ./projects/lib/ && npm version major",
"release:patch": "cd ./projects/lib/ && npm version patch", "release:patch": "cd ./projects/lib/ && npm version patch",

View file

@ -1 +0,0 @@
/* You can add global styles to this file, and also import other style files */