Skip to content

Commit 6cccb97

Browse files
committed
update: new library for a assets
1 parent 6708512 commit 6cccb97

File tree

21 files changed

+162
-8
lines changed

21 files changed

+162
-8
lines changed

libs/assets/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# assets
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Running unit tests
6+
7+
Run `nx test assets` to execute the unit tests.

libs/assets/jest.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
name: 'assets',
3+
preset: '../../jest.config.js',
4+
coverageDirectory: '../../coverage/libs/assets',
5+
snapshotSerializers: [
6+
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
7+
'jest-preset-angular/build/AngularSnapshotSerializer.js',
8+
'jest-preset-angular/build/HTMLCommentSerializer.js',
9+
],
10+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
11+
globals: {
12+
'ts-jest': {
13+
tsConfig: '<rootDir>/tsconfig.spec.json',
14+
stringifyContentPathRegex: '\\.(html|svg)$',
15+
astTransformers: [
16+
'jest-preset-angular/build/InlineFilesTransformer',
17+
'jest-preset-angular/build/StripStylesTransformer',
18+
],
19+
},
20+
},
21+
};

libs/assets/src/assets/logo.png

17.1 KB
Loading

libs/assets/src/index.ts

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// import { async, TestBed } from '@angular/core/testing';
2+
// import { GreeterModule } from './assets.module';
3+
4+
// describe('GreeterModule', () => {
5+
// beforeEach(async(() => {
6+
// TestBed.configureTestingModule({
7+
// imports: [GreeterModule],
8+
// }).compileComponents();
9+
// }));
10+
11+
// it('should create', () => {
12+
// expect(GreeterModule).toBeDefined();
13+
// });
14+
// });
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// import { NgModule } from '@angular/core';
2+
// import { CommonModule } from '@angular/common';
3+
// import { GreeterComponent } from './assets/greeter.component';
4+
5+
// @NgModule({
6+
// imports: [CommonModule],
7+
// declarations: [GreeterComponent],
8+
// exports: [GreeterComponent],
9+
// })
10+
// export class GreeterModule {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- <h1>Greetings from Nrwl 👋</h1>
2+
3+
<img height="30" width="98" src="/assets/greeter/nrwl-logo.svg" /> -->

libs/assets/src/lib/assets/assets.component.scss

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
// import { GreeterComponent } from './greeter.component';
4+
5+
// describe('GreeterComponent', () => {
6+
// let component: GreeterComponent;
7+
// let fixture: ComponentFixture<GreeterComponent>;
8+
9+
// beforeEach(async(() => {
10+
// TestBed.configureTestingModule({
11+
// declarations: [ GreeterComponent ]
12+
// })
13+
// .compileComponents();
14+
// }));
15+
16+
// beforeEach(() => {
17+
// fixture = TestBed.createComponent(GreeterComponent);
18+
// component = fixture.componentInstance;
19+
// fixture.detectChanges();
20+
// });
21+
22+
// it('should create', () => {
23+
// expect(component).toBeTruthy();
24+
// });
25+
// });
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// import { Component, OnInit } from '@angular/core';
2+
3+
// @Component({
4+
// selector: 'libswithassets-greeter',
5+
// templateUrl: './greeter.component.html',
6+
// styleUrls: ['./greeter.component.scss']
7+
// })
8+
// export class GreeterComponent implements OnInit {
9+
10+
// constructor() { }
11+
12+
// ngOnInit(): void {
13+
// }
14+
15+
// }

0 commit comments

Comments
 (0)