Skip to content

Commit 651c42b

Browse files
committed
fix: copy web files to nodeplotlib build
1 parent 0b8832f commit 651c42b

File tree

7 files changed

+429
-960
lines changed

7 files changed

+429
-960
lines changed

package-lock.json

Lines changed: 419 additions & 951 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "nodeplotlib",
3-
"version": "0.8.0-rc0",
3+
"version": "1.0.0-rc0",
44
"license": "MIT",
55
"scripts": {
66
"ng": "nx",
77
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main",
88
"format:write": "nx format:write",
99
"build": "nx build",
10+
"build:prod": "nx run web:build && nx run nodeplotlib:build && ts-node ./tools/util/copy-files.ts",
1011
"demo": "node ./tools/demo/candlestick.js"
1112
},
1213
"private": true,
@@ -73,13 +74,13 @@
7374
"eslint-config-prettier": "8.1.0",
7475
"eslint-plugin-cypress": "^2.10.3",
7576
"eslint-plugin-ngrx": "^1.0.0",
77+
"fs-extra": "^10.0.0",
7678
"jest": "27.2.3",
7779
"jest-preset-angular": "11.0.0",
7880
"plotly.js-dist": "^2.5.1",
7981
"prettier": "^2.3.1",
8082
"request": "^2.88.2",
8183
"ts-jest": "27.0.5",
82-
"typescript": "4.4.4",
83-
"zx": "^4.2.0"
84+
"typescript": "4.4.4"
8485
}
8586
}

tools/copy-files.mjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

tools/demo/candlestick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const npl = require('../../dist/apps/nodeplotlib');
1+
const npl = require('../../dist/libs/nodeplotlib');
22

33
const trace1 = {
44
x: [

tools/demo/scatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const npl = require('../../dist/apps/nodeplotlib/main');
1+
const npl = require('../../dist/libs/nodeplotlib/main');
22
npl.plot([{ x: [0], y: [1], type: 'scatter' }]);

tools/demo/scatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { plot } from '../../dist/apps/nodeplotlib';
1+
import { plot } from '../../dist/libs/nodeplotlib';
22

33
plot([{ x: [0, 1], y: [1, 1], type: 'scatter' }]);

tools/util/copy-files.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { copySync } from 'fs-extra';
2+
3+
copySync('dist/apps/web', 'dist/libs/nodeplotlib/src/lib/web/server');

0 commit comments

Comments
 (0)