initial
This commit is contained in:
		
							parent
							
								
									7d04e25b22
								
							
						
					
					
						commit
						3efc179756
					
				
							
								
								
									
										35
									
								
								angular.json
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								angular.json
									
									
									
									
									
								
							| @ -124,6 +124,41 @@ | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "@poweredsoft/ngx-data": { | ||||
|       "projectType": "library", | ||||
|       "root": "projects/poweredsoft/ngx-data", | ||||
|       "sourceRoot": "projects/poweredsoft/ngx-data/src", | ||||
|       "prefix": "lib", | ||||
|       "architect": { | ||||
|         "build": { | ||||
|           "builder": "@angular-devkit/build-ng-packagr:build", | ||||
|           "options": { | ||||
|             "tsConfig": "projects/poweredsoft/ngx-data/tsconfig.lib.json", | ||||
|             "project": "projects/poweredsoft/ngx-data/ng-package.json" | ||||
|           } | ||||
|         }, | ||||
|         "test": { | ||||
|           "builder": "@angular-devkit/build-angular:karma", | ||||
|           "options": { | ||||
|             "main": "projects/poweredsoft/ngx-data/src/test.ts", | ||||
|             "tsConfig": "projects/poweredsoft/ngx-data/tsconfig.spec.json", | ||||
|             "karmaConfig": "projects/poweredsoft/ngx-data/karma.conf.js" | ||||
|           } | ||||
|         }, | ||||
|         "lint": { | ||||
|           "builder": "@angular-devkit/build-angular:tslint", | ||||
|           "options": { | ||||
|             "tsConfig": [ | ||||
|               "projects/poweredsoft/ngx-data/tsconfig.lib.json", | ||||
|               "projects/poweredsoft/ngx-data/tsconfig.spec.json" | ||||
|             ], | ||||
|             "exclude": [ | ||||
|               "**/node_modules/**" | ||||
|             ] | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     }}, | ||||
|   "defaultProject": "ngx-data" | ||||
| } | ||||
							
								
								
									
										999
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										999
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -19,12 +19,14 @@ | ||||
|     "@angular/platform-browser": "~8.2.4", | ||||
|     "@angular/platform-browser-dynamic": "~8.2.4", | ||||
|     "@angular/router": "~8.2.4", | ||||
|     "@poweredsoft/data": "0.0.11", | ||||
|     "rxjs": "~6.4.0", | ||||
|     "tslib": "^1.10.0", | ||||
|     "zone.js": "~0.9.1" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@angular-devkit/build-angular": "~0.803.3", | ||||
|     "@angular-devkit/build-ng-packagr": "~0.803.3", | ||||
|     "@angular/cli": "~8.3.3", | ||||
|     "@angular/compiler-cli": "~8.2.4", | ||||
|     "@angular/language-service": "~8.2.4", | ||||
| @ -39,8 +41,10 @@ | ||||
|     "karma-coverage-istanbul-reporter": "~2.0.1", | ||||
|     "karma-jasmine": "~2.0.1", | ||||
|     "karma-jasmine-html-reporter": "^1.4.0", | ||||
|     "ng-packagr": "^5.4.0", | ||||
|     "protractor": "~5.4.0", | ||||
|     "ts-node": "~7.0.0", | ||||
|     "tsickle": "^0.37.0", | ||||
|     "tslint": "~5.15.0", | ||||
|     "typescript": "~3.5.3" | ||||
|   } | ||||
|  | ||||
							
								
								
									
										24
									
								
								projects/poweredsoft/ngx-data/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								projects/poweredsoft/ngx-data/README.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,24 @@ | ||||
| # NgxData | ||||
| 
 | ||||
| This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.4. | ||||
| 
 | ||||
| ## Code scaffolding | ||||
| 
 | ||||
| Run `ng generate component component-name --project ngx-data` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-data`. | ||||
| > Note: Don't forget to add `--project ngx-data` or else it will be added to the default project in your `angular.json` file.  | ||||
| 
 | ||||
| ## Build | ||||
| 
 | ||||
| Run `ng build ngx-data` to build the project. The build artifacts will be stored in the `dist/` directory. | ||||
| 
 | ||||
| ## Publishing | ||||
| 
 | ||||
| After building your library with `ng build ngx-data`, go to the dist folder `cd dist/ngx-data` and run `npm publish`. | ||||
| 
 | ||||
| ## Running unit tests | ||||
| 
 | ||||
| Run `ng test ngx-data` 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 README](https://github.com/angular/angular-cli/blob/master/README.md). | ||||
							
								
								
									
										32
									
								
								projects/poweredsoft/ngx-data/karma.conf.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								projects/poweredsoft/ngx-data/karma.conf.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| // Karma configuration file, see link for more information
 | ||||
| // https://karma-runner.github.io/1.0/config/configuration-file.html
 | ||||
| 
 | ||||
| module.exports = function (config) { | ||||
|   config.set({ | ||||
|     basePath: '', | ||||
|     frameworks: ['jasmine', '@angular-devkit/build-angular'], | ||||
|     plugins: [ | ||||
|       require('karma-jasmine'), | ||||
|       require('karma-chrome-launcher'), | ||||
|       require('karma-jasmine-html-reporter'), | ||||
|       require('karma-coverage-istanbul-reporter'), | ||||
|       require('@angular-devkit/build-angular/plugins/karma') | ||||
|     ], | ||||
|     client: { | ||||
|       clearContext: false // leave Jasmine Spec Runner output visible in browser
 | ||||
|     }, | ||||
|     coverageIstanbulReporter: { | ||||
|       dir: require('path').join(__dirname, '../../../coverage/poweredsoft/ngx-data'), | ||||
|       reports: ['html', 'lcovonly', 'text-summary'], | ||||
|       fixWebpackSourcePaths: true | ||||
|     }, | ||||
|     reporters: ['progress', 'kjhtml'], | ||||
|     port: 9876, | ||||
|     colors: true, | ||||
|     logLevel: config.LOG_INFO, | ||||
|     autoWatch: true, | ||||
|     browsers: ['Chrome'], | ||||
|     singleRun: false, | ||||
|     restartOnFileChange: true | ||||
|   }); | ||||
| }; | ||||
							
								
								
									
										7
									
								
								projects/poweredsoft/ngx-data/ng-package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								projects/poweredsoft/ngx-data/ng-package.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", | ||||
|   "dest": "../../../dist/poweredsoft/ngx-data", | ||||
|   "lib": { | ||||
|     "entryFile": "src/public-api.ts" | ||||
|   } | ||||
| } | ||||
							
								
								
									
										8
									
								
								projects/poweredsoft/ngx-data/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								projects/poweredsoft/ngx-data/package.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| { | ||||
|   "name": "@poweredsoft/ngx-data", | ||||
|   "version": "0.0.1", | ||||
|   "peerDependencies": { | ||||
|     "@angular/common": "^8.2.4", | ||||
|     "@angular/core": "^8.2.4" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,25 @@ | ||||
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||||
| 
 | ||||
| import { NgxDataComponent } from './ngx-data.component'; | ||||
| 
 | ||||
| describe('NgxDataComponent', () => { | ||||
|   let component: NgxDataComponent; | ||||
|   let fixture: ComponentFixture<NgxDataComponent>; | ||||
| 
 | ||||
|   beforeEach(async(() => { | ||||
|     TestBed.configureTestingModule({ | ||||
|       declarations: [ NgxDataComponent ] | ||||
|     }) | ||||
|     .compileComponents(); | ||||
|   })); | ||||
| 
 | ||||
|   beforeEach(() => { | ||||
|     fixture = TestBed.createComponent(NgxDataComponent); | ||||
|     component = fixture.componentInstance; | ||||
|     fixture.detectChanges(); | ||||
|   }); | ||||
| 
 | ||||
|   it('should create', () => { | ||||
|     expect(component).toBeTruthy(); | ||||
|   }); | ||||
| }); | ||||
							
								
								
									
										19
									
								
								projects/poweredsoft/ngx-data/src/lib/ngx-data.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								projects/poweredsoft/ngx-data/src/lib/ngx-data.component.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| import { Component, OnInit } from '@angular/core'; | ||||
| 
 | ||||
| @Component({ | ||||
|   selector: 'lib-ngx-data', | ||||
|   template: ` | ||||
|     <p> | ||||
|       ngx-data works! | ||||
|     </p> | ||||
|   `,
 | ||||
|   styles: [] | ||||
| }) | ||||
| export class NgxDataComponent implements OnInit { | ||||
| 
 | ||||
|   constructor() { } | ||||
| 
 | ||||
|   ngOnInit() { | ||||
|   } | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										12
									
								
								projects/poweredsoft/ngx-data/src/lib/ngx-data.module.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								projects/poweredsoft/ngx-data/src/lib/ngx-data.module.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| import { NgModule } from '@angular/core'; | ||||
| import { NgxDataComponent } from './ngx-data.component'; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @NgModule({ | ||||
|   declarations: [NgxDataComponent], | ||||
|   imports: [ | ||||
|   ], | ||||
|   exports: [NgxDataComponent] | ||||
| }) | ||||
| export class NgxDataModule { } | ||||
| @ -0,0 +1,12 @@ | ||||
| import { TestBed } from '@angular/core/testing'; | ||||
| 
 | ||||
| import { NgxDataService } from './ngx-data.service'; | ||||
| 
 | ||||
| describe('NgxDataService', () => { | ||||
|   beforeEach(() => TestBed.configureTestingModule({})); | ||||
| 
 | ||||
|   it('should be created', () => { | ||||
|     const service: NgxDataService = TestBed.get(NgxDataService); | ||||
|     expect(service).toBeTruthy(); | ||||
|   }); | ||||
| }); | ||||
| @ -0,0 +1,9 @@ | ||||
| import { Injectable } from '@angular/core'; | ||||
| 
 | ||||
| @Injectable({ | ||||
|   providedIn: 'root' | ||||
| }) | ||||
| export class NgxDataService { | ||||
| 
 | ||||
|   constructor() { } | ||||
| } | ||||
							
								
								
									
										7
									
								
								projects/poweredsoft/ngx-data/src/public-api.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								projects/poweredsoft/ngx-data/src/public-api.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| /* | ||||
|  * Public API Surface of ngx-data | ||||
|  */ | ||||
| 
 | ||||
| export * from './lib/ngx-data.service'; | ||||
| export * from './lib/ngx-data.component'; | ||||
| export * from './lib/ngx-data.module'; | ||||
							
								
								
									
										21
									
								
								projects/poweredsoft/ngx-data/src/test.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								projects/poweredsoft/ngx-data/src/test.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| // This file is required by karma.conf.js and loads recursively all the .spec and framework files
 | ||||
| 
 | ||||
| import 'zone.js/dist/zone'; | ||||
| import 'zone.js/dist/zone-testing'; | ||||
| import { getTestBed } from '@angular/core/testing'; | ||||
| import { | ||||
|   BrowserDynamicTestingModule, | ||||
|   platformBrowserDynamicTesting | ||||
| } from '@angular/platform-browser-dynamic/testing'; | ||||
| 
 | ||||
| declare const require: any; | ||||
| 
 | ||||
| // First, initialize the Angular testing environment.
 | ||||
| getTestBed().initTestEnvironment( | ||||
|   BrowserDynamicTestingModule, | ||||
|   platformBrowserDynamicTesting() | ||||
| ); | ||||
| // Then we find all the tests.
 | ||||
| const context = require.context('./', true, /\.spec\.ts$/); | ||||
| // And load the modules.
 | ||||
| context.keys().map(context); | ||||
							
								
								
									
										26
									
								
								projects/poweredsoft/ngx-data/tsconfig.lib.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								projects/poweredsoft/ngx-data/tsconfig.lib.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| { | ||||
|   "extends": "../../../tsconfig.json", | ||||
|   "compilerOptions": { | ||||
|     "outDir": "../../../out-tsc/lib", | ||||
|     "target": "es2015", | ||||
|     "declaration": true, | ||||
|     "inlineSources": true, | ||||
|     "types": [], | ||||
|     "lib": [ | ||||
|       "dom", | ||||
|       "es2018" | ||||
|     ] | ||||
|   }, | ||||
|   "angularCompilerOptions": { | ||||
|     "annotateForClosureCompiler": true, | ||||
|     "skipTemplateCodegen": true, | ||||
|     "strictMetadataEmit": true, | ||||
|     "fullTemplateTypeCheck": true, | ||||
|     "strictInjectionParameters": true, | ||||
|     "enableResourceInlining": true | ||||
|   }, | ||||
|   "exclude": [ | ||||
|     "src/test.ts", | ||||
|     "**/*.spec.ts" | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										17
									
								
								projects/poweredsoft/ngx-data/tsconfig.spec.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								projects/poweredsoft/ngx-data/tsconfig.spec.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| { | ||||
|   "extends": "../../../tsconfig.json", | ||||
|   "compilerOptions": { | ||||
|     "outDir": "../../../out-tsc/spec", | ||||
|     "types": [ | ||||
|       "jasmine", | ||||
|       "node" | ||||
|     ] | ||||
|   }, | ||||
|   "files": [ | ||||
|     "src/test.ts" | ||||
|   ], | ||||
|   "include": [ | ||||
|     "**/*.spec.ts", | ||||
|     "**/*.d.ts" | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										17
									
								
								projects/poweredsoft/ngx-data/tslint.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								projects/poweredsoft/ngx-data/tslint.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| { | ||||
|   "extends": "../../../tslint.json", | ||||
|   "rules": { | ||||
|     "directive-selector": [ | ||||
|       true, | ||||
|       "attribute", | ||||
|       "lib", | ||||
|       "camelCase" | ||||
|     ], | ||||
|     "component-selector": [ | ||||
|       true, | ||||
|       "element", | ||||
|       "lib", | ||||
|       "kebab-case" | ||||
|     ] | ||||
|   } | ||||
| } | ||||
| @ -17,10 +17,18 @@ | ||||
|     "lib": [ | ||||
|       "es2018", | ||||
|       "dom" | ||||
|     ] | ||||
|     ], | ||||
|     "paths": { | ||||
|       "@poweredsoft/ngx-data": [ | ||||
|         "dist/poweredsoft/ngx-data" | ||||
|       ], | ||||
|       "@poweredsoft/ngx-data/*": [ | ||||
|         "dist/poweredsoft/ngx-data/*" | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   "angularCompilerOptions": { | ||||
|     "fullTemplateTypeCheck": true, | ||||
|     "strictInjectionParameters": true | ||||
|   } | ||||
| } | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user