@geosynk/vertigis-web-sdk 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -8
- package/package.json +1 -1
- package/scripts/create.js +48 -0
- package/template/webpack.config.js +11 -1
- package/template-custom/webpack.config.js +22 -6
package/README.md
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://geosynk.com.au
|
|
3
|
-
<
|
|
2
|
+
<a href="https://geosynk.com.au" target="_blank" rel="noopener noreferrer">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://geosynk.com.au/images/logo/LOGO_MAIN1_DARK.svg">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg">
|
|
6
|
+
<img src="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg" alt="Geosynk" width="380" />
|
|
7
|
+
</picture>
|
|
4
8
|
</a>
|
|
5
9
|
</p>
|
|
10
|
+
<p align="center">
|
|
11
|
+
<strong><em>Unifying Spatial Data with Enterprise Intelligence</em></strong>
|
|
12
|
+
</p>
|
|
6
13
|
|
|
7
14
|
# VertiGIS Studio Web SDK (Enterprise Edition)
|
|
8
15
|
|
|
9
16
|
[](https://geosynk.com.au/)
|
|
10
17
|
[](https://www.npmjs.com/package/@geosynk/vertigis-web-sdk)
|
|
18
|
+
[](https://github.com/geosynk-lab/vertigis-web-sdk/actions/workflows/ci-cd.yml)
|
|
11
19
|
[](https://github.com/vertigis/vertigis-web-sdk)
|
|
12
20
|
[](#enterprise-architectural-features)
|
|
13
21
|
[](#1-centralized-design-token-subsystem)
|
|
@@ -286,17 +294,32 @@ Or run the parent batch synchronizer:
|
|
|
286
294
|
|
|
287
295
|
## About Geosynk
|
|
288
296
|
|
|
289
|
-
[Geosynk](https://geosynk.com.au/) is
|
|
297
|
+
[Geosynk](https://geosynk.com.au/) is a certified GIS technical integration consultancy founded by Davood Kazemi, engineering high-performance spatial automation pipelines, bespoke VertiGIS applications, and resilient enterprise GIS architecture.
|
|
298
|
+
|
|
299
|
+
> *"We don't just implement technology; we engineer business value. Digital transformation in infrastructure is a safeguard against project waste and operational risk."*
|
|
300
|
+
|
|
301
|
+
### Core Philosophy
|
|
290
302
|
|
|
291
|
-
|
|
303
|
+
| Principle | Impact | How We Deliver It |
|
|
304
|
+
| :--- | :--- | :--- |
|
|
305
|
+
| **Radically Simple** | *Reduces Overhead* | Complexity is the enemy of adoption. Clear interfaces reduce training costs and eliminate decision fatigue. |
|
|
306
|
+
| **Frictionless Efficiency** | *Accelerates Velocity* | Automating repetitive data flows recovers thousands of engineering hours annually. |
|
|
307
|
+
| **Deeply Integrated** | *Prevents Rework* | Connected systems establish a single source of truth across CAD, BIM, GIS, and ERP. |
|
|
308
|
+
|
|
309
|
+
### Core Capabilities & Offerings
|
|
292
310
|
|
|
293
311
|
- **VertiGIS Studio Engineering**: Turnkey Web SDK components, custom Workflow activities, accessible form elements, report templates, and automated printing services.
|
|
312
|
+
- **FME Advanced Automation**: End-to-end spatial ETL pipelines, Python SDK custom transformers, FME Form & Flow (Server), and CAD/BIM/GIS synchronization.
|
|
294
313
|
- **Esri ArcGIS Enterprise**: End-to-end cloud and on-premises architecture, Enterprise Geodatabase design, Utility Network migrations, and ArcGIS Experience Builder extensions.
|
|
295
|
-
- **
|
|
296
|
-
- **
|
|
314
|
+
- **Custom Spatial Development**: High-performance React, TypeScript, and Python GIS tooling engineered for unique operational requirements.
|
|
315
|
+
- **Enterprise Orchestration**: Unifying Trimble, Bentley, Autodesk, and GIS into a cohesive enterprise framework.
|
|
297
316
|
|
|
298
317
|
### Connect with Geosynk
|
|
299
|
-
|
|
300
|
-
- **
|
|
318
|
+
|
|
319
|
+
- 🌐 **Website**: [geosynk.com.au](https://geosynk.com.au/)
|
|
320
|
+
- 💼 **LinkedIn**: [Geosynk Company](https://www.linkedin.com/company/ggeosynk)
|
|
321
|
+
- ✉️ **Email**: [info@geosynk.com.au](mailto:info@geosynk.com.au) / [Davood Kazemi](mailto:dave.kazemi@gmail.com)
|
|
322
|
+
- 📅 **Consultation**: [Book a 1-on-1 Session](https://geosynk.com.au#contact)
|
|
323
|
+
|
|
301
324
|
|
|
302
325
|
|
package/package.json
CHANGED
package/scripts/create.js
CHANGED
|
@@ -82,6 +82,54 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
// Ensure custom layout namespace matches between app/layout.xml and src/index.ts
|
|
86
|
+
const cryptoMod = await import("node:crypto");
|
|
87
|
+
const randomNamespace = `custom.${cryptoMod.randomBytes(4).toString("hex")}`;
|
|
88
|
+
const filesToUpdate = [
|
|
89
|
+
path.join(targetPath, "app/layout.xml"),
|
|
90
|
+
path.join(targetPath, "src/index.ts"),
|
|
91
|
+
];
|
|
92
|
+
for (const fileToUpdate of filesToUpdate) {
|
|
93
|
+
if (fs.existsSync(fileToUpdate)) {
|
|
94
|
+
try {
|
|
95
|
+
const contents = fs.readFileSync(fileToUpdate, { encoding: "utf8" });
|
|
96
|
+
const newContents = contents.replace(/custom\.foo/g, randomNamespace);
|
|
97
|
+
fs.writeFileSync(fileToUpdate, newContents, "utf-8");
|
|
98
|
+
} catch {
|
|
99
|
+
// Ignore replacement failure
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 2.1 Ensure @vertigis/web-sdk resolves in node_modules even when installed as @geosynk/vertigis-web-sdk
|
|
105
|
+
const nodeModulesDir = path.join(targetPath, "node_modules");
|
|
106
|
+
const vertigisScope = path.join(nodeModulesDir, "@vertigis");
|
|
107
|
+
const vertigisSdk = path.join(vertigisScope, "web-sdk");
|
|
108
|
+
const geosynkSdk = path.join(nodeModulesDir, "@geosynk", "vertigis-web-sdk");
|
|
109
|
+
|
|
110
|
+
if (fs.existsSync(geosynkSdk) && !fs.existsSync(vertigisSdk)) {
|
|
111
|
+
try {
|
|
112
|
+
if (!fs.existsSync(vertigisScope)) {
|
|
113
|
+
fs.mkdirSync(vertigisScope, { recursive: true });
|
|
114
|
+
}
|
|
115
|
+
fs.symlinkSync(geosynkSdk, vertigisSdk, "junction");
|
|
116
|
+
console.log("[ENTERPRISE] Linked @vertigis/web-sdk -> @geosynk/vertigis-web-sdk");
|
|
117
|
+
} catch (e) {
|
|
118
|
+
console.warn("[WARN] Could not link @vertigis/web-sdk:", e);
|
|
119
|
+
}
|
|
120
|
+
} else if (fs.existsSync(vertigisSdk) && !fs.existsSync(geosynkSdk)) {
|
|
121
|
+
try {
|
|
122
|
+
const geosynkScope = path.join(nodeModulesDir, "@geosynk");
|
|
123
|
+
if (!fs.existsSync(geosynkScope)) {
|
|
124
|
+
fs.mkdirSync(geosynkScope, { recursive: true });
|
|
125
|
+
}
|
|
126
|
+
fs.symlinkSync(vertigisSdk, geosynkSdk, "junction");
|
|
127
|
+
console.log("[ENTERPRISE] Linked @geosynk/vertigis-web-sdk -> @vertigis/web-sdk");
|
|
128
|
+
} catch (e) {
|
|
129
|
+
console.warn("[WARN] Could not link @geosynk/vertigis-web-sdk:", e);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
85
133
|
// 3. Merge enterprise dependencies into package.json
|
|
86
134
|
const pkgPath = path.join(targetPath, "package.json");
|
|
87
135
|
if (fs.existsSync(pkgPath)) {
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
let defaultWebpackConfig, merge;
|
|
2
|
+
try {
|
|
3
|
+
const mod = await import("@vertigis/web-sdk/config/webpack.config.js");
|
|
4
|
+
defaultWebpackConfig = mod.default;
|
|
5
|
+
merge = mod.merge;
|
|
6
|
+
} catch {
|
|
7
|
+
const mod = await import("@geosynk/vertigis-web-sdk/config/webpack.config.js");
|
|
8
|
+
defaultWebpackConfig = mod.default;
|
|
9
|
+
merge = mod.merge;
|
|
10
|
+
}
|
|
2
11
|
|
|
3
12
|
export default merge(defaultWebpackConfig, {
|
|
4
13
|
// Add custom webpack configuration for your project here.
|
|
5
14
|
});
|
|
15
|
+
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import https from "node:https";
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
let defaultWebpackConfig, merge;
|
|
6
|
+
try {
|
|
7
|
+
const mod = await import("@vertigis/web-sdk/config/webpack.config.js");
|
|
8
|
+
defaultWebpackConfig = mod.default;
|
|
9
|
+
merge = mod.merge;
|
|
10
|
+
} catch {
|
|
11
|
+
const mod = await import("@geosynk/vertigis-web-sdk/config/webpack.config.js");
|
|
12
|
+
defaultWebpackConfig = mod.default;
|
|
13
|
+
merge = mod.merge;
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
|
|
6
17
|
/**
|
|
7
18
|
* Starts a lightweight zero-dependency dual-port forwarder on port 3000 forwarding to port 3001.
|
|
@@ -94,13 +105,16 @@ function setupDualPortBridge(targetPort = 3001, bridgePort = 3000) {
|
|
|
94
105
|
}
|
|
95
106
|
}
|
|
96
107
|
|
|
108
|
+
const typeIndex = process.argv.indexOf("--type");
|
|
109
|
+
const isHttp = typeIndex !== -1 && process.argv[typeIndex + 1] === "http";
|
|
110
|
+
|
|
97
111
|
export default merge(defaultWebpackConfig, {
|
|
98
112
|
devServer: {
|
|
99
113
|
allowedHosts: "all",
|
|
100
114
|
host: "0.0.0.0",
|
|
101
115
|
port: 3001,
|
|
102
|
-
server: "https",
|
|
103
|
-
open: "https://localtest.me:3001/",
|
|
116
|
+
server: isHttp ? "http" : "https",
|
|
117
|
+
open: isHttp ? "http://localhost:3001/" : "https://localtest.me:3001/",
|
|
104
118
|
headers: {
|
|
105
119
|
"Access-Control-Allow-Origin": "*",
|
|
106
120
|
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
|
|
@@ -109,10 +123,10 @@ export default merge(defaultWebpackConfig, {
|
|
|
109
123
|
},
|
|
110
124
|
client: {
|
|
111
125
|
webSocketURL: {
|
|
112
|
-
hostname: "localtest.me",
|
|
126
|
+
hostname: isHttp ? "localhost" : "localtest.me",
|
|
113
127
|
pathname: "/ws",
|
|
114
128
|
port: 3001,
|
|
115
|
-
protocol: "wss",
|
|
129
|
+
protocol: isHttp ? "ws" : "wss",
|
|
116
130
|
},
|
|
117
131
|
},
|
|
118
132
|
setupMiddlewares: (middlewares, devServer) => {
|
|
@@ -144,7 +158,9 @@ export default merge(defaultWebpackConfig, {
|
|
|
144
158
|
return middlewares;
|
|
145
159
|
},
|
|
146
160
|
onListening: function () {
|
|
147
|
-
|
|
161
|
+
if (!isHttp) {
|
|
162
|
+
setupDualPortBridge(3001, 3000);
|
|
163
|
+
}
|
|
148
164
|
},
|
|
149
165
|
},
|
|
150
166
|
});
|