-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from xmlking/develop
master merge 1
- Loading branch information
Showing
48 changed files
with
2,863 additions
and
1,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Do-it-yourself step-by-step instructions to create this project structure from s | |
brew update | ||
brew install node | ||
#brew upgrade node | ||
# upgrade npm to at least 6.3.0 | ||
# upgrade npm to at least 6.x.x | ||
npm install -g npm | ||
``` | ||
|
||
|
@@ -52,14 +52,14 @@ bazel clean --expunge | |
npm remove -g @angular/cli | ||
npm remove -g @nrwl/schematics | ||
npm remove -g @nestjs/cli | ||
npm remove -g semantic-release-cli | ||
npm remove -g commitizen | ||
|
||
npm install -g @angular/cli | ||
npm install -g @nrwl/[email protected].1 | ||
npm install -g @nrwl/[email protected].3 | ||
npm install -g @nestjs/cli | ||
|
||
npm install -g ndb | ||
npm i -g semantic-release-cli | ||
npm i -g commitizen | ||
npm install -g semantic-release-cli | ||
npm install -g commitizen | ||
|
||
# verify globally installed packages | ||
npm list -g --depth=0 | ||
|
@@ -176,7 +176,7 @@ npm i -D tslint-config-prettier | |
npx tslint-config-prettier-check ./tslint.json | ||
|
||
# install testCafe for e2e testing and remove protractor | ||
npm i testcafe testcafe-angular-selectors testcafe-live | ||
npm i -D testcafe testcafe-angular-selectors testcafe-live | ||
|
||
# for CI/CD automation and release | ||
# first time semantic-release setup | ||
|
@@ -194,9 +194,9 @@ npm i -D lint-staged | |
```bash | ||
|
||
# generate `Lazy-loaded Feature Modules` | ||
ng g lib home --routing --lazy --prefix=ngx --parent-module=apps/webapp/src/app/app.module.ts --unit-test-runner=jest --tags=layout,entry-module | ||
ng g lib dashboard --routing --lazy --prefix=ngx --parent-module=apps/webapp/src/app/app.module.ts --unit-test-runner=jest --tags=layout,entry-module | ||
ng g lib NotFound --routing --lazy --prefix=ngx --parent-module=apps/webapp/src/app/app.module.ts --unit-test-runner=jest --tags=entry-module | ||
ng g lib home --routing --lazy --prefix=ngx --parent-module=apps/webapp/src/app/app.module.ts --unit-test-runner=jest --tags=layout,entry-module | ||
ng g lib dashboard --routing --lazy --prefix=ngx --parent-module=apps/webapp/src/app/app.module.ts --unit-test-runner=jest --tags=layout,entry-module | ||
ng g lib NotFound --routing --lazy --prefix=ngx --parent-module=apps/webapp/src/app/app.module.ts --unit-test-runner=jest --tags=entry-module | ||
ng g lib experiments --routing --lazy --prefix=ngx --parent-module=libs/dashboard/src/lib/dashboard.module.ts --unit-test-runner=jest --tags=child-module | ||
ng g lib widgets --routing --lazy --prefix=ngx --parent-module=libs/dashboard/src/lib/dashboard.module.ts --unit-test-runner=jest --tags=child-module | ||
ng g lib grid --routing --lazy --prefix=ngx --parent-module=libs/dashboard/src/lib/dashboard.module.ts --unit-test-runner=jest --tags=child-module | ||
|
@@ -385,14 +385,20 @@ ng g component containers/StickyTable --project=experiments --dry-run | |
ng g component containers/clapButton --project=experiments -s -t --spec=false --dry-run | ||
ng g component containers/knobDemo --project=experiments --dry-run | ||
ng g component containers/ledDemo --project=experiments --dry-run | ||
ng g component containers/ImageComp --project=experiments --dry-run | ||
|
||
# generate components for `ImageComparison` Module | ||
ng g lib ImageComparison --prefix=ngx --tags=public-module --spec=false --publishable=true --dry-run | ||
ng g component ImageComparison --project=image-comparison --export --flat --dry-run | ||
``` | ||
|
||
#### Workspace Schematics | ||
```bash | ||
# generate workspace-schematic `store` | ||
ng g workspace-schematic store | ||
# run workspace-schematic `store` | ||
npm run workspace-schematic store models/sumo -- --type=model --project=grid --dry-run | ||
# *** always delete ./dist folder when you change schematic implementation *** | ||
npm run workspace-schematic store models/sumoDemo -- --project=grid --dry-run | ||
``` | ||
|
||
### Install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
libs/experiments/src/lib/containers/image-comp/image-comp.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<ngx-image-comparison startPosition="70"> | ||
<img #comparisonImage src="assets/img/comp/1-before.jpg" alt="first image" data-label="first"> | ||
<img #comparisonImage src="assets/img/comp/1-after.jpg" alt="second image" data-label="second"> | ||
</ngx-image-comparison> | ||
<br/><br/> | ||
<ngx-image-comparison startPosition="40"> | ||
<img #comparisonImage src="assets/img/comp/2-before.jpg" alt="" data-label="1"> | ||
<img #comparisonImage src="assets/img/comp/2-after.jpg" alt="" data-label="2"> | ||
</ngx-image-comparison> | ||
<br/><br/> | ||
<ngx-image-comparison startPosition="60"> | ||
<img #comparisonImage src="assets/img/comp/3-before.jpg"> | ||
<img #comparisonImage src="assets/img/comp/3-after.jpg"> | ||
</ngx-image-comparison> |
5 changes: 5 additions & 0 deletions
5
libs/experiments/src/lib/containers/image-comp/image-comp.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:host { | ||
display: block; | ||
padding: 1.5%; | ||
position: relative; | ||
} |
24 changes: 24 additions & 0 deletions
24
libs/experiments/src/lib/containers/image-comp/image-comp.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ImageCompComponent } from './image-comp.component'; | ||
|
||
describe('ImageCompComponent', () => { | ||
let component: ImageCompComponent; | ||
let fixture: ComponentFixture<ImageCompComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ImageCompComponent], | ||
}).compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ImageCompComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
libs/experiments/src/lib/containers/image-comp/image-comp.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ngx-image-comp', | ||
templateUrl: './image-comp.component.html', | ||
styleUrls: ['./image-comp.component.scss'], | ||
}) | ||
export class ImageCompComponent implements OnInit { | ||
constructor() {} | ||
|
||
ngOnInit() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libs/grid/src/lib/components/account-edit/account-edit.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.