Skip to content

Commit

Permalink
Clean up NPM dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <steinlink@gmail.com>
  • Loading branch information
texodus committed Sep 23, 2024
1 parent a9b9258 commit e75ad4f
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 78 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"clsx": "^2.0.0",
"mkdirp": "3",
"prism-react-renderer": "^1.3.3",
"puppeteer": "22.10.0",
"puppeteer": "^23",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"superstore-arrow": "3.0.0"
Expand Down
3 changes: 1 addition & 2 deletions examples/webpack-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"html-webpack-plugin": "^5.1.0",
"style-loader": "^0.18.2",
"webpack": "^5.14.0",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.11.1"
"webpack-cli": "^4.7.0"
}
}
12 changes: 12 additions & 0 deletions examples/workspace/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
body {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
overflow: hidden;
}
6 changes: 4 additions & 2 deletions examples/workspace/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ import "@finos/perspective-viewer";
import "@finos/perspective-viewer-datagrid";
import "@finos/perspective-viewer-d3fc";

import "./index.less";
import "./index.css";
import "@finos/perspective-workspace/dist/css/pro.css";
import "@finos/perspective-viewer/dist/css/themes.css";

const datasource = async () => {
const req = fetch("./superstore.lz4.arrow");
const resp = await req;
const buffer = await resp.arrayBuffer();
const worker = perspective.worker();
const worker = await perspective.worker();
return await worker.table(buffer);
};

Expand Down
27 changes: 0 additions & 27 deletions examples/workspace/src/index.less

This file was deleted.

13 changes: 2 additions & 11 deletions examples/workspace/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,8 @@ module.exports = {
module: {
rules: [
{
test: /\.js$/,
enforce: "pre",
use: ["source-map-loader"],
},
{
test: /\.less$/,
use: [
{ loader: "style-loader" },
{ loader: "css-loader" },
{ loader: "less-loader" },
],
test: /\.css$/,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
},
{
test: /\.(png|jpe?g|gif)$/i,
Expand Down
32 changes: 5 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@finos/perspective-viewer-openlayers": "workspace:^",
"@finos/perspective-workspace": "workspace:^",
"@fontsource/roboto-mono": "4.5.10",
"@playwright/test": "1.37.1",
"@playwright/test": "^1.47",
"@types/ws": "^7.2.2",
"@zip.js/zip.js": "^2.7.27",
"auto-changelog": "^2.4.0",
Expand All @@ -57,42 +57,27 @@
"dotenv": "^8.1.0",
"esbuild": "^0.14.54",
"fs-extra": "^8.1.0",
"glob": "^7.2.0",
"glob": "^11",
"glob-gitignore": "^1.0.14",
"html-webpack-plugin": "^5.1.0",
"husky": "^7.0.4",
"inquirer": "^7.0.0",
"jsdoc-to-markdown": "^8.0.0",
"less": "^4.1.3",
"less-loader": "^7.2.1",
"minimatch": "^5.1.2",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"npm-pack-here": "^1.2.0",
"npm-run-all": "^4.1.3",
"octokit": "^1.7.2",
"prettier": "^2.7.1",
"pretty-error": "^4.0.0",
"puppeteer": "^13.1.3",
"rimraf": "^2.6.2",
"sinon": "^7.3.1",
"puppeteer": "^23",
"rimraf": "^6",
"stoppable": "^1.1.0",
"style-loader": "^3.3.1",
"superstore-arrow": "3.0.0",
"tar": "^6.1.13",
"term-img": "^4.1.0",
"timezone-mock": "^1.3.6",
"tiny-glob": "^0.2.9",
"ts-loader": "^6.2.0",
"ts-node": "^10.9.2",
"tsx": "^4.7.1",
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^3.15.4",
"typedoc-plugin-no-inherit": "^1.4.0",
"typescript": "5.1.6",
"webpack": "^5.60.0",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.11.1"
"webpack-cli": "^4.7.0"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down Expand Up @@ -123,12 +108,5 @@
"fix": "node tools/perspective-scripts/fix.mjs",
"version": "node tools/perspective-scripts/version.mjs",
"jlab_link": "pip3 install ./python/perspective --no-build-isolation"
},
"dependencies": {
"canvas": "^2.11.2",
"fast-xml-parser": "^4.4.0",
"gif-encoder-2": "^1.0.5",
"gifencoder": "^2.0.1",
"svg-parser": "^2.0.4"
}
}
2 changes: 1 addition & 1 deletion packages/perspective-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"@finos/perspective-viewer-openlayers": "workspace:^",
"@finos/perspective-workspace": "workspace:^",
"commander": "^2.19.0",
"puppeteer": "^13.1.3"
"puppeteer": "^23"
}
}
2 changes: 1 addition & 1 deletion rust/perspective-js/test/js/constructors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ let arrow_lists_data = {
],
float_arr: [
"[]",
"[3.14,3.141592653589793,6.283185307179586,1.4142135623730951]",
"[3.14,3.141592653589793,6.283185307179586,1.4142135623730952]",
"[12.00001]",
"[100000000.0,100000000.0,100000000.0,100000000.0]",
],
Expand Down
2 changes: 1 addition & 1 deletion tools/perspective-scripts/lint_cpp.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import sh from "./sh.mjs";
import * as fs from "fs";
import * as url from "url";
import * as os from "os";
import glob from "glob";
import * as glob from "glob";
import { execSync } from "child_process";
import * as dotenv from "dotenv";

Expand Down
2 changes: 1 addition & 1 deletion tools/perspective-scripts/sh_perspective.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as dotenv from "dotenv";
import * as _path from "path";
import * as fs from "fs";
import fse from "fs-extra";
import rimraf from "rimraf";
import * as rimraf from "rimraf";
import { createRequire } from "node:module";
import sh from "./sh.mjs";
import * as url from "url";
Expand Down
2 changes: 1 addition & 1 deletion tools/perspective-scripts/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

import fs from "fs";
import glob from "glob";
import * as glob from "glob";
import { Octokit } from "octokit";
import { parseReleases } from "auto-changelog/src/releases.js";
import { fetchTags } from "auto-changelog/src/tags.js";
Expand Down
2 changes: 1 addition & 1 deletion tools/perspective-test/src/js/global_teardown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import tar from "tar";
import fs from "fs";
import glob from "glob";
import * as glob from "glob";
import path from "path";
import url from "node:url";

Expand Down
4 changes: 2 additions & 2 deletions tools/perspective-test/src/js/simple_viewer_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

import { test } from "@playwright/test";
import { getSvgContentString, compareContentsToSnapshot } from "./utils";
import { getSvgContentString, compareContentsToSnapshot } from "./utils.ts";
import { test } from "./index.js";
import type { PerspectiveViewerConfig } from "@finos/perspective-viewer";

export type ContentExtractor = (page: any) => Promise<string>;
Expand Down

0 comments on commit e75ad4f

Please sign in to comment.