Skip to content

Commit 0b8832f

Browse files
committed
refactor: merge the nodeplotlib files into one library
1 parent 724b565 commit 0b8832f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+695
-816
lines changed

angular.json

+13-98
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,6 @@
11
{
22
"version": 1,
33
"projects": {
4-
"core": {
5-
"root": "libs/core",
6-
"sourceRoot": "libs/core/src",
7-
"projectType": "library",
8-
"architect": {
9-
"build": {
10-
"builder": "@nrwl/node:package",
11-
"outputs": ["{options.outputPath}"],
12-
"options": {
13-
"outputPath": "dist/libs/core",
14-
"tsConfig": "libs/core/tsconfig.lib.json",
15-
"packageJson": "libs/core/package.json",
16-
"main": "libs/core/src/index.ts",
17-
"assets": ["libs/core/*.md"]
18-
}
19-
},
20-
"lint": {
21-
"builder": "@nrwl/linter:eslint",
22-
"outputs": ["{options.outputFile}"],
23-
"options": {
24-
"lintFilePatterns": ["libs/core/**/*.ts"]
25-
}
26-
},
27-
"test": {
28-
"builder": "@nrwl/jest:jest",
29-
"outputs": ["coverage/libs/core"],
30-
"options": {
31-
"jestConfig": "libs/core/jest.config.js",
32-
"passWithNoTests": true
33-
}
34-
}
35-
}
36-
},
374
"dev-server": {
385
"root": "apps/dev-server",
396
"sourceRoot": "apps/dev-server/src",
@@ -92,91 +59,39 @@
9259
}
9360
}
9461
},
95-
"interfaces": {
96-
"root": "libs/interfaces",
97-
"sourceRoot": "libs/interfaces/src",
62+
"nodeplotlib": {
63+
"root": "libs/nodeplotlib",
64+
"sourceRoot": "libs/nodeplotlib/src",
9865
"projectType": "library",
9966
"architect": {
10067
"build": {
10168
"builder": "@nrwl/node:package",
10269
"outputs": ["{options.outputPath}"],
10370
"options": {
104-
"outputPath": "dist/libs/interfaces",
105-
"tsConfig": "libs/interfaces/tsconfig.lib.json",
106-
"packageJson": "libs/interfaces/package.json",
107-
"main": "libs/interfaces/src/index.ts",
108-
"assets": ["libs/interfaces/*.md"]
71+
"outputPath": "dist/libs/nodeplotlib",
72+
"tsConfig": "libs/nodeplotlib/tsconfig.lib.json",
73+
"packageJson": "libs/nodeplotlib/package.json",
74+
"main": "libs/nodeplotlib/src/index.ts",
75+
"assets": ["libs/nodeplotlib/*.md"]
10976
}
11077
},
11178
"lint": {
11279
"builder": "@nrwl/linter:eslint",
11380
"outputs": ["{options.outputFile}"],
11481
"options": {
115-
"lintFilePatterns": ["libs/interfaces/**/*.ts"]
82+
"lintFilePatterns": ["libs/nodeplotlib/**/*.ts"]
11683
}
11784
},
11885
"test": {
11986
"builder": "@nrwl/jest:jest",
120-
"outputs": ["coverage/libs/interfaces"],
87+
"outputs": ["coverage/libs/nodeplotlib"],
12188
"options": {
122-
"jestConfig": "libs/interfaces/jest.config.js",
89+
"jestConfig": "libs/nodeplotlib/jest.config.js",
12390
"passWithNoTests": true
12491
}
12592
}
126-
}
127-
},
128-
"nodeplotlib": {
129-
"root": "apps/nodeplotlib",
130-
"sourceRoot": "apps/nodeplotlib/src",
131-
"projectType": "application",
132-
"architect": {
133-
"build": {
134-
"builder": "@nrwl/node:build",
135-
"outputs": ["{options.outputPath}"],
136-
"options": {
137-
"outputPath": "dist/apps/nodeplotlib",
138-
"main": "apps/nodeplotlib/src/main.ts",
139-
"tsConfig": "apps/nodeplotlib/tsconfig.app.json",
140-
"assets": ["apps/nodeplotlib/src/package.json"],
141-
"externalDendencies": "none",
142-
"webpackConfig": "apps/nodeplotlib/webpack.config.js"
143-
},
144-
"configurations": {
145-
"production": {
146-
"optimization": true,
147-
"extractLicenses": true,
148-
"inspect": false,
149-
"fileReplacements": [
150-
{
151-
"replace": "apps/nodeplotlib/src/environments/environment.ts",
152-
"with": "apps/nodeplotlib/src/environments/environment.prod.ts"
153-
}
154-
]
155-
}
156-
}
157-
},
158-
"serve": {
159-
"builder": "@nrwl/node:execute",
160-
"options": {
161-
"buildTarget": "nodeplotlib:build"
162-
}
163-
},
164-
"lint": {
165-
"builder": "@nrwl/linter:eslint",
166-
"outputs": ["{options.outputFile}"],
167-
"options": {
168-
"lintFilePatterns": ["apps/nodeplotlib/**/*.ts"]
169-
}
170-
},
171-
"test": {
172-
"builder": "@nrwl/jest:jest",
173-
"outputs": ["coverage/apps/nodeplotlib"],
174-
"options": {
175-
"jestConfig": "apps/nodeplotlib/jest.config.js",
176-
"passWithNoTests": true
177-
}
178-
}
179-
}
93+
},
94+
"tags": []
18095
},
18196
"web": {
18297
"projectType": "application",

apps/dev-server/src/data/2d-histogram.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Layout, Plot } from '@npl/interfaces';
1+
import { Layout, Plot } from '@npl/nodeplotlib';
22

33
function normal() {
44
let x = 0,

apps/dev-server/src/data/bar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plot } from '@npl/interfaces';
1+
import { Plot } from '@npl/nodeplotlib';
22

33
export const data: Plot[] = [
44
{

apps/dev-server/src/data/candlestick.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plot } from '@npl/interfaces';
1+
import { Plot } from '@npl/nodeplotlib';
22

33
const trace1 = {
44
x: [

apps/dev-server/src/data/line-stream.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plot } from '@npl/interfaces';
1+
import { Plot } from '@npl/nodeplotlib';
22
import { interval, Observable } from 'rxjs';
33
import { map } from 'rxjs/operators';
44

apps/dev-server/src/data/sankey.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plot } from '@npl/interfaces';
1+
import { Plot } from '@npl/nodeplotlib';
22

33
export const data = [
44
{

apps/dev-server/src/data/scatter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plot } from '@npl/interfaces';
1+
import { Plot } from '@npl/nodeplotlib';
22

33
const trace1: Plot = {
44
x: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],

apps/dev-server/src/data/table.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plot } from '@npl/interfaces';
1+
import { Plot } from '@npl/nodeplotlib';
22

33
const values = [
44
['Salaries', 'Office', 'Merchandise', 'Legal', '<b>TOTAL</b>'],

apps/dev-server/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This is only a minimal backend to get started.
44
*/
55

6-
import { plot } from '@npl/core';
6+
import { plot } from '@npl/nodeplotlib';
77
import {
88
data as histogram,
99
layout as histogramLayout,

apps/nodeplotlib/jest.config.js

-15
This file was deleted.

apps/nodeplotlib/src/assets/.gitkeep

Whitespace-only changes.

apps/nodeplotlib/src/environments/environment.prod.ts

-3
This file was deleted.

apps/nodeplotlib/src/environments/environment.ts

-3
This file was deleted.

apps/nodeplotlib/src/main.d.ts

-7
This file was deleted.

apps/nodeplotlib/src/main.ts

-1
This file was deleted.

apps/nodeplotlib/src/package.json

-18
This file was deleted.

apps/nodeplotlib/tsconfig.app.json

-10
This file was deleted.

apps/nodeplotlib/tsconfig.json

-13
This file was deleted.

apps/nodeplotlib/tsconfig.spec.json

-9
This file was deleted.

apps/nodeplotlib/webpack.config.js

-15
This file was deleted.

apps/web/src/app/components/plot/plot.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
SimpleChanges,
99
ViewChild,
1010
} from '@angular/core';
11-
import { PlotData } from '@npl/interfaces';
11+
import { PlotData } from '@npl/nodeplotlib';
1212

1313
// eslint-disable-next-line
1414
declare const Plotly: any;

apps/web/src/app/components/plots/plots.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
22
import { ComponentFixture, TestBed } from '@angular/core/testing';
33
import { By } from '@angular/platform-browser';
4-
import { PlotData } from '@npl/interfaces';
4+
import { PlotData } from '@npl/nodeplotlib';
55
import { Subject } from 'rxjs';
66
import { PlotsService } from '../../services/plots.service';
77
import { PlotsComponent } from './plots.component';

apps/web/src/app/components/plots/plots.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
2-
import { PlotData } from '@npl/interfaces';
2+
import { PlotData } from '@npl/nodeplotlib';
33
import { PlotsService } from '../../services/plots.service';
44

55
@Component({

apps/web/src/app/services/plots.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable } from '@angular/core';
2-
import { PlotData } from '@npl/interfaces';
2+
import { PlotData } from '@npl/nodeplotlib';
33
import { BehaviorSubject } from 'rxjs';
44
import { SocketService } from './socket.service';
55
import { map } from 'rxjs/operators';

libs/core/.eslintrc.json

-18
This file was deleted.

0 commit comments

Comments
 (0)