fix dependencies and build destination
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
||||||
"dest": "../../dist/nls-guilloche",
|
"dest": "../../dist/nls-guilloche-dev",
|
||||||
"deleteDestPath": false,
|
"deleteDestPath": false,
|
||||||
"lib": {
|
"lib": {
|
||||||
"entryFile": "src/public_api.ts"
|
"entryFile": "src/public_api.ts"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
||||||
"dest": "../../dist/nls",
|
"dest": "../../dist/nls-guilloche",
|
||||||
"lib": {
|
"lib": {
|
||||||
"entryFile": "src/public_api.ts"
|
"entryFile": "src/public_api.ts"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,11 +26,9 @@
|
|||||||
"url": "https://dailysh.it"
|
"url": "https://dailysh.it"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
|
||||||
"d3": "^5.3.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^6.0.0-rc.0 || ^6.0.0",
|
"@angular/common": "^6.0.0-rc.0 || ^6.0.0",
|
||||||
"@angular/core": "^6.0.0-rc.0 || ^6.0.0"
|
"@angular/core": "^6.0.0-rc.0 || ^6.0.0",
|
||||||
|
"d3": "^5.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
30
projects/nls-guilloche/src/nls/nls-guilloche.module.ts
Normal file
30
projects/nls-guilloche/src/nls/nls-guilloche.module.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
|
import { NlsGraphsComponent } from './components/graphs.component';
|
||||||
|
import { NlsGuillocheDirective } from './directives/guilloche.directive';
|
||||||
|
import { NlsHistoryService } from './services/history.service';
|
||||||
|
import { NlsCanvasService } from './services/canvas.service';
|
||||||
|
import { NlsMathService } from './services/math.service';
|
||||||
|
import { NlsGraphService } from './services/graph.service';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BrowserModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
NlsGraphsComponent,
|
||||||
|
NlsGuillocheDirective
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
NlsHistoryService,
|
||||||
|
NlsCanvasService,
|
||||||
|
NlsMathService,
|
||||||
|
NlsGraphService,
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
NlsGraphsComponent,
|
||||||
|
NlsGuillocheDirective
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NlsGuillocheModule {}
|
||||||
@@ -13,3 +13,4 @@ export * from './nls/services/canvas.service';
|
|||||||
export * from './nls/services/graph.service';
|
export * from './nls/services/graph.service';
|
||||||
export * from './nls/services/history.service';
|
export * from './nls/services/history.service';
|
||||||
export * from './nls/services/math.service';
|
export * from './nls/services/math.service';
|
||||||
|
export * from './nls/nls-guilloche.module';
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import 'moment/min/locales';
|
|||||||
|
|
||||||
import { environment as env } from '../environments/environment';
|
import { environment as env } from '../environments/environment';
|
||||||
import { NlsHistoryService } from 'projects/nls-guilloche/src/public_api';
|
import { NlsHistoryService } from 'projects/nls-guilloche/src/public_api';
|
||||||
import { NlsGraphsComponent } from 'projects/nls-guilloche/src/public_api';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
|||||||
@@ -20,30 +20,20 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|||||||
import { MomentModule } from 'ngx-moment';
|
import { MomentModule } from 'ngx-moment';
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { NlsGraphsComponent } from 'projects/nls-guilloche/src/public_api';
|
import { NlsGuillocheModule } from 'projects/nls-guilloche/src/public_api';
|
||||||
import { NlsHistoryService } from 'projects/nls-guilloche/src/public_api';
|
|
||||||
import { NlsCanvasService } from 'projects/nls-guilloche/src/public_api';
|
|
||||||
import { NlsMathService } from 'projects/nls-guilloche/src/public_api';
|
|
||||||
import { NlsGraphService } from 'projects/nls-guilloche/src/public_api';
|
|
||||||
import { NlsGuillocheDirective } from 'projects/nls-guilloche/src/public_api';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
NlsGraphsComponent,
|
|
||||||
NlsGuillocheDirective,
|
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
MomentModule,
|
MomentModule,
|
||||||
|
NlsGuillocheModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
NlsHistoryService,
|
|
||||||
NlsCanvasService,
|
|
||||||
NlsMathService,
|
|
||||||
NlsGraphService,
|
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"dom"
|
"dom"
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"NlsGuilloche": [
|
"nls-guilloche": [
|
||||||
"dist/nls-guilloche"
|
"dist/nls-guilloche"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user