@gxp-dev/tools 2.0.22 → 2.0.23
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
CHANGED
|
@@ -5,13 +5,13 @@ A development devtools for creating plugins for the GxP kiosk platform. This pac
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -g @
|
|
8
|
+
npm install -g @gxp-dev/tools
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Or use it as a dev dependency in your project:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install --save-dev @
|
|
14
|
+
npm install --save-dev @gxp-dev/tools
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
@@ -162,9 +162,9 @@ The platform emulator that wraps user plugins during development. It:
|
|
|
162
162
|
cd test-app
|
|
163
163
|
|
|
164
164
|
# Link to local devtools instead of npm version
|
|
165
|
-
rm -rf node_modules/@
|
|
165
|
+
rm -rf node_modules/@gxp-dev/tools
|
|
166
166
|
mkdir -p node_modules/@gramercytech
|
|
167
|
-
ln -s /path/to/gx-devtools node_modules/@
|
|
167
|
+
ln -s /path/to/gx-devtools node_modules/@gxp-dev/tools
|
|
168
168
|
|
|
169
169
|
npm run dev-http
|
|
170
170
|
```
|
|
@@ -147,11 +147,11 @@ async function publishCommand(argv) {
|
|
|
147
147
|
let content = fs.readFileSync(storeIndexPath, "utf-8");
|
|
148
148
|
// Match both old (config) and new (runtime) import paths
|
|
149
149
|
const oldImportPatterns = [
|
|
150
|
-
"import { useGxpStore } from '@
|
|
151
|
-
"import { useGxpStore } from '@
|
|
152
|
-
"import { useGxpStore } from '@
|
|
153
|
-
"import { useGxpStore } from '@
|
|
154
|
-
'import { useGxpStore } from "@
|
|
150
|
+
"import { useGxpStore } from '@gxp-dev/tools/config/stores/gxpPortalConfigStore.js';",
|
|
151
|
+
"import { useGxpStore } from '@gxp-dev/tools/config/stores/gxpPortalConfigStore';",
|
|
152
|
+
"import { useGxpStore } from '@gxp-dev/tools/runtime/stores/gxpPortalConfigStore.js';",
|
|
153
|
+
"import { useGxpStore } from '@gxp-dev/tools/runtime/stores/gxpPortalConfigStore';",
|
|
154
|
+
'import { useGxpStore } from "@gxp-dev/tools/runtime/stores/gxpPortalConfigStore";',
|
|
155
155
|
];
|
|
156
156
|
const newImport =
|
|
157
157
|
"import { useGxpStore } from './gxpPortalConfigStore.js';";
|
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GxP Plugin Project
|
|
2
2
|
|
|
3
|
-
This project was created with `@
|
|
3
|
+
This project was created with `@gxp-dev/tools` and includes the `@gramercytech/gx-componentkit` component library for rapid kiosk development.
|
|
4
4
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Import from package runtime directory by default
|
|
2
2
|
// To customize, run: gxdev publish gxpPortalConfigStore.js
|
|
3
3
|
// Then update this import to: import { useGxpStore } from './gxpPortalConfigStore.js';
|
|
4
|
-
import { useGxpStore } from "@
|
|
4
|
+
import { useGxpStore } from "@gxp-dev/tools/runtime/stores/gxpPortalConfigStore";
|
|
5
5
|
|
|
6
6
|
// Expose to window for platform compatibility and externalized imports
|
|
7
7
|
window.useGxpStore = useGxpStore;
|
package/template/vite.config.js
CHANGED
|
@@ -92,7 +92,7 @@ function getHttpsConfig(env) {
|
|
|
92
92
|
* Find the gx-devtools package directory (works for both local and global installs)
|
|
93
93
|
*/
|
|
94
94
|
function findToolkitPath() {
|
|
95
|
-
const packageName = "@
|
|
95
|
+
const packageName = "@gxp-dev/tools";
|
|
96
96
|
|
|
97
97
|
// Try local node_modules first
|
|
98
98
|
const localPath = path.resolve(process.cwd(), "node_modules", packageName);
|