@eclipse-docks/create-app 0.7.88 → 0.7.89
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/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Then open the URL shown in the terminal (e.g. https://localhost:5173/).
|
|
|
23
23
|
|
|
24
24
|
## Extensions
|
|
25
25
|
|
|
26
|
-
Add `@
|
|
26
|
+
Add packages named `extension-*` or `@your-scope/extension-*` to `packages/app/package.json`, then list them in `packages/app/src/main.ts` (`registerApp({ extensions: [...] })`). Vite loads their side-effect entry points automatically via `resolveDepVersionsPlugin()` in `vite.config.ts` (no separate `extensions.ts` file). Pass `extensionSideEffects: false` if you need to disable that.
|
|
27
27
|
|
|
28
28
|
## PWA
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { appLoaderService, contributionRegistry, type HTMLContribution, TOOLBAR_MAIN } from '@eclipse-docks/core';
|
|
2
2
|
|
|
3
|
-
/** Which extensions the shell offers; keep in sync with `@
|
|
3
|
+
/** Which extensions the shell offers; keep in sync with `extension-*` / `@scope/extension-*` entries in package.json (auto side-effect-imported via resolveDepVersionsPlugin). */
|
|
4
4
|
contributionRegistry.registerContribution(TOOLBAR_MAIN, {
|
|
5
5
|
label: 'Brand',
|
|
6
6
|
slot: 'start',
|
|
@@ -22,7 +22,7 @@ export default defineConfig({
|
|
|
22
22
|
},
|
|
23
23
|
plugins: [
|
|
24
24
|
appSplashPlugin(),
|
|
25
|
-
/** Side-effect-imports every `@
|
|
25
|
+
/** Side-effect-imports every `extension-*` / `@scope/extension-*` direct dependency from package.json (virtual module before main). */
|
|
26
26
|
resolveDepVersionsPlugin(),
|
|
27
27
|
localAliasesPlugin({
|
|
28
28
|
useSrcInDev: true,
|