@mindfiredigital/textigniter-angular 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +62 -15
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mindfiredigital/textigniter-angular
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Merge pull request #186 from mindfiredigital/dev
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Merge pull request #183 from mindfiredigital/dev
|
|
14
|
+
|
|
3
15
|
## 1.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TextIgniter
|
|
2
2
|
|
|
3
|
-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.
|
|
4
|
-
|
|
5
|
-
## Development server
|
|
6
|
-
|
|
7
|
-
To start a local development server, run:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
ng serve
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
|
|
14
4
|
|
|
15
5
|
## Code scaffolding
|
|
16
6
|
|
|
@@ -28,13 +18,27 @@ ng generate --help
|
|
|
28
18
|
|
|
29
19
|
## Building
|
|
30
20
|
|
|
31
|
-
To build the
|
|
21
|
+
To build the library, run:
|
|
32
22
|
|
|
33
23
|
```bash
|
|
34
|
-
ng build
|
|
24
|
+
ng build text-igniter
|
|
35
25
|
```
|
|
36
26
|
|
|
37
|
-
This will compile your project and
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/text-igniter
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
38
42
|
|
|
39
43
|
## Running unit tests
|
|
40
44
|
|
|
@@ -57,3 +61,46 @@ Angular CLI does not come with an end-to-end testing framework by default. You c
|
|
|
57
61
|
## Additional Resources
|
|
58
62
|
|
|
59
63
|
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
64
|
+
|
|
65
|
+
```javascript
|
|
66
|
+
//app.component.ts
|
|
67
|
+
import { Component } from '@angular/core';
|
|
68
|
+
import { RouterOutlet } from '@angular/router';
|
|
69
|
+
import { TextIgniterModule } from 'text-igniter';
|
|
70
|
+
|
|
71
|
+
@Component({
|
|
72
|
+
selector: 'app-root',
|
|
73
|
+
imports: [RouterOutlet, TextIgniterModule],
|
|
74
|
+
templateUrl: './app.component.html',
|
|
75
|
+
styleUrl: './app.component.css'
|
|
76
|
+
})
|
|
77
|
+
export class AppComponent {
|
|
78
|
+
title = 'demo-app';
|
|
79
|
+
config = {
|
|
80
|
+
showToolbar: true,
|
|
81
|
+
features: [
|
|
82
|
+
'bold',
|
|
83
|
+
'italic',
|
|
84
|
+
'underline',
|
|
85
|
+
'hyperlink',
|
|
86
|
+
'fontFamily',
|
|
87
|
+
'fontSize',
|
|
88
|
+
'alignLeft',
|
|
89
|
+
'alignCenter',
|
|
90
|
+
'alignRight',
|
|
91
|
+
'unorderedList',
|
|
92
|
+
'orderedList',
|
|
93
|
+
'image',
|
|
94
|
+
'fontColor',
|
|
95
|
+
'bgColor',
|
|
96
|
+
'getHtmlContent',
|
|
97
|
+
'loadHtmlContent'
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```html
|
|
104
|
+
<!--app.component.html-->
|
|
105
|
+
<ngx-text-igniter [config]="config"></ngx-text-igniter>
|
|
106
|
+
```
|
package/package.json
CHANGED