Skip to content

Commit

Permalink
Merge pull request #4288 from GordonSmith/V3_LAYOUT
Browse files Browse the repository at this point in the history
feat: Upgrade layout to v3
  • Loading branch information
GordonSmith authored Nov 12, 2024
2 parents ea6f502 + cbc463a commit 38248ea
Show file tree
Hide file tree
Showing 43 changed files with 1,083 additions and 334 deletions.
117 changes: 116 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"xpackages/form",
"packages/graph",
"packages/html",
"xpackages/layout",
"packages/layout",
"xpackages/leaflet-shim",
"xpackages/loader",
"xpackages/map",
Expand Down
3 changes: 2 additions & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/codemirror-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/codemirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
5 changes: 2 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
"types": "./types/index.d.ts",
"default": "./dist/index.js"
},
"./font-awesome": {
"*": "./font-awesome/*"
}
"./dist/*": "./dist/*",
"./font-awesome/*": "./font-awesome/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/dataflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"main": "./dist/index.js",
"types": "./types/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/dgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/dgrid2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/*": "./dist/*"
},
"module": "./dist/index.js",
"browser": "./dist/index.js",
Expand Down
47 changes: 47 additions & 0 deletions packages/layout/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "test-browser",
"type": "msedge",
"request": "launch",
"url": "http://localhost:8888",
"webRoot": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
],
},
{
"name": "test-node",
"type": "node",
"request": "launch",
"runtimeArgs": [
"run-script",
"test-node"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
],
},
{
"name": "index.html",
"request": "launch",
"type": "msedge",
"url": "file:///${workspaceFolder}/index.html",
"runtimeArgs": [
"--disable-web-security"
],
"webRoot": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
]
}
]
}
34 changes: 25 additions & 9 deletions packages/layout/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "gen-types-watch",
"type": "npm",
"script": "compile-umd-watch",
"group": {
"kind": "build",
"isDefault": true
},
"script": "gen-types-watch",
"problemMatcher": [
"$tsc-watch"
],
"label": "npm: compile-umd-watch",
"detail": "tsc --module umd --outDir ./lib-umd --watch"
"presentation": {
"group": "group-build"
}
},
{
"label": "bundle-watch",
"type": "npm",
"script": "bundle-watch",
"problemMatcher": [],
"presentation": {
"group": "group-build"
}
},
{
"label": "build",
"dependsOn": [
"gen-types-watch",
"bundle-watch",
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
29 changes: 29 additions & 0 deletions packages/layout/esbuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { browserTpl } from "@hpcc-js/esbuild-plugins";
import pkg from "./package.json" with { type: "json" };

// config ---
await Promise.all([
browserTpl("src/index.ts", "dist/index", {
keepNames: true,
alias: {
"d3-array": "@hpcc-js/common",
"d3-brush": "@hpcc-js/common",
"d3-collection": "@hpcc-js/common",
"d3-color": "@hpcc-js/common",
"d3-dispatch": "@hpcc-js/common",
"d3-drag": "@hpcc-js/common",
"d3-dsv": "@hpcc-js/common",
"d3-ease": "@hpcc-js/common",
"d3-format": "@hpcc-js/common",
"d3-interpolate": "@hpcc-js/common",
"d3-scale": "@hpcc-js/common",
"d3-selection": "@hpcc-js/common",
"d3-time-format": "@hpcc-js/common",
"d3-transition": "@hpcc-js/common",
"d3-zoom": "@hpcc-js/common"
},
external: [
...Object.keys(pkg.dependencies),
]
})
]);
Loading

0 comments on commit 38248ea

Please sign in to comment.