From 75189502745db7f7c0710337364e787385735631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Fri, 24 Jun 2022 16:43:42 +0800 Subject: [PATCH] release: 14.0.0 (#32) --- .github/workflows/ci.yml | 10 ++--- lib/package.json | 9 +++-- package.json | 70 ++++++++++++++++----------------- src/app/app.component.ts | 3 ++ src/app/app.module.ts | 2 + src/app/standalone.component.ts | 16 ++++++++ tsconfig.json | 2 +- 7 files changed, 67 insertions(+), 45 deletions(-) create mode 100644 src/app/standalone.component.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d78ad5..11396bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install @@ -23,7 +23,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install @@ -40,7 +40,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install @@ -54,13 +54,13 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install - name: build run: | - node --max_old_space_size=5120 ./node_modules/@angular/cli/bin/ng build --prod --base-href /ngx-tinymce/ + node --max_old_space_size=5120 ./node_modules/@angular/cli/bin/ng build --base-href /ngx-tinymce/ cp ./dist/index.html ./dist/404.html ls ./dist diff --git a/lib/package.json b/lib/package.json index b6813d8..a4a6053 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,12 +1,13 @@ { "name": "ngx-tinymce", - "version": "13.0.0", + "version": "14.0.0", "description": "Angular for tinymce", "keywords": [ "angular-tinymce", "ngx-tinymce", "ng-tinymce", - "tinymce" + "tinymce", + "angular standalone library" ], "author": "cipchk ", "license": "MIT", @@ -19,7 +20,7 @@ }, "homepage": "https://cipchk.github.io/ngx-tinymce/", "dependencies": { - "@ng-util/lazy": "^13.0.0", - "@ng-util/util": "^13.0.0" + "@ng-util/lazy": "^14.0.0", + "@ng-util/util": "^14.0.0" } } diff --git a/package.json b/package.json index f86d80e..70dd744 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "ngx-tinymce", - "version": "13.0.0", + "version": "14.0.0", "description": "Angular for tinymce", "keywords": [ "angular-tinymce", "ngx-tinymce", "ng-tinymce", - "tinymce" + "tinymce", + "angular standalone library" ], "license": "MIT", "author": "cipchk ", @@ -20,51 +21,50 @@ "homepage": "https://cipchk.github.io/ngx-tinymce/", "scripts": { "analyze": "ng b --stats-json --source-map", - "lint": "ng l", + "lint": "ng lint", "test": "ng t --no-progress --browsers=ChromeHeadlessCI --code-coverage --no-watch", "build": "node scripts/build.js", "release:next": "npm run build && cd publish && npm publish --access public --tag next", "release": "npm run build && cd publish && npm publish --access public" }, "dependencies": { - "@angular/animations": "~13.1.1", - "@angular/common": "~13.1.1", - "@angular/compiler": "~13.1.1", - "@angular/core": "~13.1.1", - "@angular/forms": "~13.1.1", - "@angular/platform-browser": "~13.1.1", - "@angular/platform-browser-dynamic": "~13.1.1", - "@angular/router": "~13.1.1", - "rxjs": "~7.4.0", - "tslib": "^2.3.1", + "@angular/animations": "^14.0.0", + "@angular/common": "^14.0.0", + "@angular/compiler": "^14.0.0", + "@angular/core": "^14.0.0", + "@angular/forms": "^14.0.0", + "@angular/platform-browser": "^14.0.0", + "@angular/platform-browser-dynamic": "^14.0.0", + "@angular/router": "^14.0.0", + "rxjs": "~7.5.0", + "tslib": "^2.3.0", "zone.js": "~0.11.4", "bootstrap": "^5.1.3", - "@ng-util/lazy": "^13.0.0", - "@ng-util/util": "^13.0.0", - "ngx-highlight-js": "^13.0.0" + "@ng-util/lazy": "^14.0.0", + "@ng-util/util": "^14.0.0", + "ngx-highlight-js": "^14.0.0" }, "devDependencies": { - "@angular-devkit/build-angular": "~13.1.2", - "@angular/cli": "~13.1.2", - "@angular/compiler-cli": "~13.1.0", - "@types/jasmine": "~3.10.0", - "@types/node": "^12.11.1", - "jasmine-core": "~3.10.0", + "@angular-devkit/build-angular": "^14.0.3", + "@angular/cli": "~14.0.3", + "@angular/compiler-cli": "^14.0.0", + "@types/jasmine": "~4.0.0", + "jasmine-core": "~4.1.0", "karma": "~6.3.0", - "karma-chrome-launcher": "~3.1.0", - "karma-coverage": "~2.1.0", - "karma-jasmine": "~4.0.0", + "karma-chrome-launcher": "~3.1.1", + "karma-coverage": "~2.2.0", + "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~1.7.0", - "typescript": "~4.5.2", - "@angular-eslint/builder": "^13.0.1", - "@angular-eslint/eslint-plugin": "^13.0.1", - "@angular-eslint/eslint-plugin-template": "^13.0.1", - "@angular-eslint/schematics": "^13.0.1", - "@angular-eslint/template-parser": "^13.0.1", - "@typescript-eslint/eslint-plugin": "^5.8.1", - "@typescript-eslint/parser": "^5.8.1", + "typescript": "~4.7.4", + "@angular-eslint/builder": "^14.0.0", + "@angular-eslint/eslint-plugin": "^14.0.0", + "@angular-eslint/eslint-plugin-template": "^14.0.0", + "@angular-eslint/schematics": "^14.0.0", + "@angular-eslint/template-parser": "^14.0.0", + "@typescript-eslint/eslint-plugin": "^5.29.0", + "@typescript-eslint/parser": "^5.29.0", "codecov": "^3.8.3", - "eslint": "^8.5.0", - "ng-packagr": "^13.1.2" + "eslint": "^8.18.0", + "ng-packagr": "^14.0.2" } } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4cc90ca..60fa1c6 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -27,6 +27,9 @@ import { Component, ViewEncapsulation } from '@angular/core'; + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 21403b3..59352db 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -11,6 +11,7 @@ import { AppComponent } from './app.component'; import { HomeComponent } from './home/home.component'; import { OtherComponent } from './other/other.component'; import { InlineComponent } from './inline/inline.component'; +import { StandaloneDemoComponent } from './standalone.component'; @NgModule({ declarations: [AppComponent, HomeComponent, OtherComponent, InlineComponent], @@ -25,6 +26,7 @@ import { InlineComponent } from './inline/inline.component'; { path: '', component: HomeComponent }, { path: 'other', component: OtherComponent }, { path: 'inline', component: InlineComponent }, + { path: 'standalone', component: StandaloneDemoComponent }, ], { useHash: true }, ), diff --git a/src/app/standalone.component.ts b/src/app/standalone.component.ts new file mode 100644 index 0000000..4fbd23d --- /dev/null +++ b/src/app/standalone.component.ts @@ -0,0 +1,16 @@ +import { Component } from '@angular/core'; +import { FormsModule } from '@angular/forms'; +import { NgxTinymceModule } from 'ngx-tinymce'; + +@Component({ + selector: 'standalone-demo', + template: ` `, + standalone: true, + imports: [FormsModule, NgxTinymceModule], +}) +export class StandaloneDemoComponent { + html = `HTMLS`; + config = { + height: 350, + }; +} diff --git a/tsconfig.json b/tsconfig.json index a40b087..9ac1261 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "es2017", + "target": "es2020", "module": "es2020", "lib": [ "es2020",