diff --git a/.angular-cli.json b/.angular-cli.json
deleted file mode 100644
index 6c819ab..0000000
--- a/.angular-cli.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "$schema": "./node_modules/@nrwl/schematics/src/schema.json",
- "project": {
- "name": "angular-star-rating-workspace",
- "npmScope": "angular-star-rating-workspace",
- "latestMigration": "20180313-add-tags"
- },
- "e2e": {
- "protractor": {
- "config": "./protractor.conf.js"
- }
- },
- "lint": [
- {
- "project": "./tsconfig.spec.json",
- "exclude": "**/node_modules/**"
- },
- {
- "project": "apps/angular5-example/src/tsconfig.app.json",
- "exclude": "**/node_modules/**"
- },
- {
- "project": "apps/angular5-example/e2e/tsconfig.e2e.json",
- "exclude": "**/node_modules/**"
- }
- ],
- "test": {
- "karma": {
- "config": "./karma.conf.js"
- }
- },
- "apps": [
- {
- "name": "angular5-example",
- "root": "apps/angular5-example/src",
- "outDir": "dist/apps/angular5-example",
- "assets": [
- "assets",
- "favicon.ico"
- ],
- "index": "index.html",
- "main": "main.ts",
- "polyfills": "polyfills.ts",
- "test": "../../../test.js",
- "tsconfig": "tsconfig.app.json",
- "testTsconfig": "../../../tsconfig.spec.json",
- "prefix": "app",
- "styles": [
- "styles.scss"
- ],
- "scripts": [],
- "environmentSource": "environments/environment.ts",
- "environments": {
- "dev": "environments/environment.ts",
- "prod": "environments/environment.prod.ts"
- },
- "tags": []
- },
- {
- "name": "angular5-example-packaged",
- "root": "apps/angular5-example/src",
- "outDir": "dist/apps/angular5-example-packaged",
- "assets": [
- "assets",
- "favicon.ico"
- ],
- "index": "index.html",
- "main": "main.ts",
- "polyfills": "polyfills.ts",
- "test": "../../../test.js",
- "tsconfig": "tsconfig.packaged.json",
- "testTsconfig": "../../../tsconfig.spec.json",
- "prefix": "app",
- "styles": [
- "styles.scss"
- ],
- "scripts": [],
- "environmentSource": "environments/environment.ts",
- "environments": {
- "dev": "environments/environment.ts",
- "prod": "environments/environment.prod.ts"
- },
- "tags": []
- },
- {
- "name": "angular-star-rating",
- "root": "libs/angular-star-rating/src",
- "test": "../../../test.js",
- "appRoot": "",
- "tags": []
- },
- {
- "name": "$workspaceRoot",
- "root": ".",
- "appRoot": ""
- }
- ],
- "defaults": {
- "schematics": {
- "collection": "@nrwl/schematics"
- },
- "styleExt": "scss",
- "component": {}
- },
- "warnings": {
- "typescriptMismatch": false
- }
-}
diff --git a/.prettierrc b/.prettierrc
index 92cde39..f6397ae 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,3 +1,7 @@
{
- "singleQuote": true
-}
\ No newline at end of file
+ "singleQuote": true,
+ "useTabs": false,
+ "tabWidth": 2,
+ "semi": true,
+ "bracketSpacing": true
+}
diff --git a/.travis.yml b/.travis.yml
index d3b60fa..720710b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
language: node_js
sudo: false
node_js:
-- '6.11.0'
+- '16.13.1'
cache:
directories:
diff --git a/angular.json b/angular.json
index 6cdec54..fa1c87f 100644
--- a/angular.json
+++ b/angular.json
@@ -27,26 +27,26 @@
}
}
},
- "angular5-example": {
- "root": "apps/angular5-example",
- "sourceRoot": "apps/angular5-example/src",
+ "demos": {
+ "root": "apps/demos",
+ "sourceRoot": "apps/demos/src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
- "outputPath": "dist/apps/angular5-example",
- "index": "apps/angular5-example/src/index.html",
- "main": "apps/angular5-example/src/main.ts",
- "polyfills": "apps/angular5-example/src/polyfills.ts",
- "tsConfig": "apps/angular5-example/tsconfig.app.json",
+ "outputPath": "dist/apps/demos",
+ "index": "apps/demos/src/index.html",
+ "main": "apps/demos/src/main.ts",
+ "polyfills": "apps/demos/src/polyfills.ts",
+ "tsConfig": "apps/demos/tsconfig.app.json",
"assets": [
- "apps/angular5-example/src/favicon.ico",
- "apps/angular5-example/src/assets",
- "apps/angular5-example/src/assets/images",
- "apps/angular5-example/src/assets/fontawesome"
+ "apps/demos/src/favicon.ico",
+ "apps/demos/src/assets",
+ "apps/demos/src/assets/images",
+ "apps/demos/src/assets/fontawesome"
],
- "styles": ["apps/angular5-example/src/styles.scss"],
+ "styles": ["apps/demos/src/styles.scss"],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
@@ -66,8 +66,8 @@
],
"fileReplacements": [
{
- "replace": "apps/angular5-example/src/environments/environment.ts",
- "with": "apps/angular5-example/src/environments/environment.prod.ts"
+ "replace": "apps/demos/src/environments/environment.ts",
+ "with": "apps/demos/src/environments/environment.prod.ts"
}
],
"optimization": true,
@@ -88,8 +88,8 @@
],
"fileReplacements": [
{
- "replace": "apps/angular5-example/src/environments/environment.ts",
- "with": "apps/angular5-example/src/environments/environment.prod.ts"
+ "replace": "apps/demos/src/environments/environment.ts",
+ "with": "apps/demos/src/environments/environment.prod.ts"
}
],
"optimization": true,
@@ -128,40 +128,40 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
- "browserTarget": "angular5-example:build"
+ "browserTarget": "demos:build"
},
"configurations": {
"production": {
- "browserTarget": "angular5-example:build:production"
+ "browserTarget": "demos:build:production"
},
"test": {
- "browserTarget": "angular5-example:build:test"
+ "browserTarget": "demos:build:test"
},
"development": {
- "browserTarget": "angular5-example:build:development"
+ "browserTarget": "demos:build:development"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
- "browserTarget": "angular5-example:build"
+ "browserTarget": "demos:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
- "main": "apps/angular5-example/src/test.ts",
- "polyfills": "apps/angular5-example/src/polyfills.ts",
- "tsConfig": "apps/angular5-example/tsconfig.spec.json",
- "karmaConfig": "apps/angular5-example/karma.conf.js",
+ "main": "apps/demos/src/test.ts",
+ "polyfills": "apps/demos/src/polyfills.ts",
+ "tsConfig": "apps/demos/tsconfig.spec.json",
+ "karmaConfig": "apps/demos/karma.conf.js",
"codeCoverage": true,
"browsers": "ChromeHeadlessNoSandbox",
- "styles": ["apps/angular5-example/src/styles.scss"],
+ "styles": ["apps/demos/src/styles.scss"],
"scripts": [],
"assets": [
- "apps/angular5-example/src/favicon.ico",
- "apps/angular5-example/src/assets"
+ "apps/demos/src/favicon.ico",
+ "apps/demos/src/assets"
]
}
},
@@ -169,8 +169,8 @@
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
- "apps/angular5-example/**/*.ts",
- "apps/angular5-example/**/*.html"
+ "apps/demos/**/*.ts",
+ "apps/demos/**/*.html"
]
}
}
diff --git a/apps/angular5-example/e2e/app.e2e-spec.ts b/apps/angular5-example/e2e/app.e2e-spec.ts
deleted file mode 100644
index c6b7e3e..0000000
--- a/apps/angular5-example/e2e/app.e2e-spec.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { AppPage } from './app.po';
-
-describe('angular5-example App', () => {
- let page: AppPage;
-
- beforeEach(() => {
- page = new AppPage();
- });
-
- it('should display welcome message', () => {
- page.navigateTo();
- expect(page.text()).toContain('Welcome');
- });
-});
diff --git a/apps/angular5-example/e2e/app.po.ts b/apps/angular5-example/e2e/app.po.ts
deleted file mode 100644
index 531c349..0000000
--- a/apps/angular5-example/e2e/app.po.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { browser, by, element } from 'protractor';
-
-export class AppPage {
- navigateTo() {
- return browser.get('/');
- }
-
- text() {
- return browser.findElement(by.css('body')).getText();
- }
-}
diff --git a/apps/angular5-example/e2e/tsconfig.e2e.json b/apps/angular5-example/e2e/tsconfig.e2e.json
deleted file mode 100644
index 09da4be..0000000
--- a/apps/angular5-example/e2e/tsconfig.e2e.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "extends": "../../../tsconfig.json",
- "compilerOptions": {
- "outDir": "../../../dist/out-tsc/e2e/angular5-example",
- "module": "commonjs",
- "target": "es5",
- "types": [
- "jasmine",
- "jasminewd2",
- "node"
- ]
- },
- "include": [
- "../**/*.ts"
- /* add all lazy-loaded libraries here: "../../../libs/my-lib/index.ts" */
-
- , "../../../libs/mymodule/index.ts"
-],
- "exclude": [
- "**/*.spec.ts"
- ]
-}
diff --git a/apps/angular5-example/src/app/components/custom-style/custom-style.component.ts b/apps/angular5-example/src/app/components/custom-style/custom-style.component.ts
deleted file mode 100644
index 5f74f74..0000000
--- a/apps/angular5-example/src/app/components/custom-style/custom-style.component.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import {Component, OnInit, ViewEncapsulation} from '@angular/core';
-
-@Component({
- selector: 'app-custom-style',
- template: `
- Custom Style
- `,
- styleUrls: ['./custom-style.component.scss'],
- //encapsulation: ViewEncapsulation.None
-})
-export class CustomStyleComponent { }
diff --git a/apps/angular5-example/src/app/app.component.html b/apps/demos/src/app/app.component.html
similarity index 76%
rename from apps/angular5-example/src/app/app.component.html
rename to apps/demos/src/app/app.component.html
index 30e105c..60cfe95 100644
--- a/apps/angular5-example/src/app/app.component.html
+++ b/apps/demos/src/app/app.component.html
@@ -1,21 +1,19 @@
-
- `
+ `,
})
export class FormControlStarRatingComponent {
form = new FormGroup({
- ratingInput: new FormControl('')
+ ratingInput: new FormControl(''),
});
rating = 0;
diff --git a/apps/angular5-example/src/app/components/property-bindings/property-bindings.component.html b/apps/demos/src/app/components/property-bindings/property-bindings.component.html
similarity index 87%
rename from apps/angular5-example/src/app/components/property-bindings/property-bindings.component.html
rename to apps/demos/src/app/components/property-bindings/property-bindings.component.html
index 87cdfa2..8a2af6d 100644
--- a/apps/angular5-example/src/app/components/property-bindings/property-bindings.component.html
+++ b/apps/demos/src/app/components/property-bindings/property-bindings.component.html
@@ -2,8 +2,7 @@
Property Bindings
- Property Bindings
[getColor]="bindingsForm.get('getColor').value"
[getHalfStarVisible]="bindingsForm.get('getHalfStarVisible').value"
(onHoverRatingChange)="onHoverRatingChange($event)"
- (onClick)="onClick($event)"
- (onRatingChange)="onRatingChange($event)"
- >
+ (onClick)="onClick($event)" (onRatingChange)="onRatingChange($event)">
+
@@ -48,8 +46,7 @@ Property Bindings
-
@@ -69,8 +66,7 @@ Property Bindings
-
@@ -82,8 +78,7 @@ Property Bindings
-