Initial commit
This commit is contained in:
24
projects/my-wallet-ds/README.md
Normal file
24
projects/my-wallet-ds/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# MyWalletDs
|
||||
|
||||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Run `ng generate component component-name --project my-wallet-ds` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-wallet-ds`.
|
||||
> Note: Don't forget to add `--project my-wallet-ds` or else it will be added to the default project in your `angular.json` file.
|
||||
|
||||
## Build
|
||||
|
||||
Run `ng build my-wallet-ds` to build the project. The build artifacts will be stored in the `dist/` directory.
|
||||
|
||||
## Publishing
|
||||
|
||||
After building your library with `ng build my-wallet-ds`, go to the dist folder `cd dist/my-wallet-ds` and run `npm publish`.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
Run `ng test my-wallet-ds` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||
|
||||
## Further help
|
||||
|
||||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
||||
7
projects/my-wallet-ds/ng-package.json
Normal file
7
projects/my-wallet-ds/ng-package.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"dest": "../../dist/my-wallet-ds",
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
12
projects/my-wallet-ds/package.json
Normal file
12
projects/my-wallet-ds/package.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "my-wallet-ds",
|
||||
"version": "0.0.1",
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^17.3.0",
|
||||
"@angular/core": "^17.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"sideEffects": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>paragraph works!</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ParagraphComponent } from './paragraph.component';
|
||||
|
||||
describe('ParagraphComponent', () => {
|
||||
let component: ParagraphComponent;
|
||||
let fixture: ComponentFixture<ParagraphComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ParagraphComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ParagraphComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'lib-paragraph',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './paragraph.component.html',
|
||||
styleUrl: './paragraph.component.css'
|
||||
})
|
||||
export class ParagraphComponent {
|
||||
|
||||
}
|
||||
23
projects/my-wallet-ds/src/lib/my-wallet-ds.component.spec.ts
Normal file
23
projects/my-wallet-ds/src/lib/my-wallet-ds.component.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MyWalletDsComponent } from './my-wallet-ds.component';
|
||||
|
||||
describe('MyWalletDsComponent', () => {
|
||||
let component: MyWalletDsComponent;
|
||||
let fixture: ComponentFixture<MyWalletDsComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [MyWalletDsComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(MyWalletDsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
16
projects/my-wallet-ds/src/lib/my-wallet-ds.component.ts
Normal file
16
projects/my-wallet-ds/src/lib/my-wallet-ds.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'lib-my-wallet-ds',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
template: `
|
||||
<p>
|
||||
my-wallet-ds works!
|
||||
</p>
|
||||
`,
|
||||
styles: ``
|
||||
})
|
||||
export class MyWalletDsComponent {
|
||||
|
||||
}
|
||||
16
projects/my-wallet-ds/src/lib/my-wallet-ds.service.spec.ts
Normal file
16
projects/my-wallet-ds/src/lib/my-wallet-ds.service.spec.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MyWalletDsService } from './my-wallet-ds.service';
|
||||
|
||||
describe('MyWalletDsService', () => {
|
||||
let service: MyWalletDsService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(MyWalletDsService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
9
projects/my-wallet-ds/src/lib/my-wallet-ds.service.ts
Normal file
9
projects/my-wallet-ds/src/lib/my-wallet-ds.service.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class MyWalletDsService {
|
||||
|
||||
constructor() { }
|
||||
}
|
||||
6
projects/my-wallet-ds/src/public-api.ts
Normal file
6
projects/my-wallet-ds/src/public-api.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
* Public API Surface of my-wallet-ds
|
||||
*/
|
||||
|
||||
export * from './lib/my-wallet-ds.service';
|
||||
export * from './lib/my-wallet-ds.component';
|
||||
14
projects/my-wallet-ds/tsconfig.lib.json
Normal file
14
projects/my-wallet-ds/tsconfig.lib.json
Normal file
@@ -0,0 +1,14 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/lib",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"inlineSources": true,
|
||||
"types": []
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
10
projects/my-wallet-ds/tsconfig.lib.prod.json
Normal file
10
projects/my-wallet-ds/tsconfig.lib.prod.json
Normal file
@@ -0,0 +1,10 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "./tsconfig.lib.json",
|
||||
"compilerOptions": {
|
||||
"declarationMap": false
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"compilationMode": "partial"
|
||||
}
|
||||
}
|
||||
14
projects/my-wallet-ds/tsconfig.spec.json
Normal file
14
projects/my-wallet-ds/tsconfig.spec.json
Normal file
@@ -0,0 +1,14 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/spec",
|
||||
"types": [
|
||||
"jasmine"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.d.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user