Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/pwa-kit-create-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## v3.11.0-dev.0 (May 23, 2025)
- Add `program.json` + Support for Agent-Friendly CLI Input via stdio [#2662](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2662)
- Change the default ECOM instance in the generated application [#2610](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2610)
- Load active data scripts on demand only [#2623](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2623)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import {
DEFAULT_LIMIT_VALUES,
DEFAULT_SEARCH_PARAMS
} from '{{preset.templateSource.id}}/app/constants'
} from '{{template.id}}/app/constants'

// original value is 25
DEFAULT_LIMIT_VALUES[0] = 3
Expand All @@ -26,4 +26,4 @@ export const CUSTOM_HOME_TITLE = '🎉 Hello Extensible React Template!'

export {DEFAULT_LIMIT_VALUES, DEFAULT_SEARCH_PARAMS}

export * from '{{preset.templateSource.id}}/app/constants'
export * from '{{template.id}}/app/constants'
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import {useIntl, FormattedMessage} from 'react-intl'
import {useLocation} from 'react-router-dom'

// Components
import {Box, Button, Stack, Link} from '{{preset.templateSource.id}}/app/components/shared/ui'
import {Box, Button, Stack, Link} from '{{template.id}}/app/components/shared/ui'

// Project Components
import Hero from '{{preset.templateSource.id}}/app/components/hero'
import Seo from '{{preset.templateSource.id}}/app/components/seo'
import Section from '{{preset.templateSource.id}}/app/components/section'
import ProductScroller from '{{preset.templateSource.id}}/app/components/product-scroller'
import Hero from '{{template.id}}/app/components/hero'
import Seo from '{{template.id}}/app/components/seo'
import Section from '{{template.id}}/app/components/section'
import ProductScroller from '{{template.id}}/app/components/product-scroller'

// Others
import {getAssetUrl} from '@salesforce/pwa-kit-react-sdk/ssr/universal/utils'

//Hooks
import useEinstein from '{{preset.templateSource.id}}/app/hooks/use-einstein'
import useEinstein from '{{template.id}}/app/hooks/use-einstein'

// Constants
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import loadable from '@loadable/component'
import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'

// Components
import {Skeleton} from '{{preset.templateSource.id}}/app/components/shared/ui'
import {configureRoutes} from '{{preset.templateSource.id}}/app/utils/routes-utils'
import {routes as _routes} from '{{preset.templateSource.id}}/app/routes'
import {Skeleton} from '{{template.id}}/app/components/shared/ui'
import {configureRoutes} from '{{template.id}}/app/utils/routes-utils'
import {routes as _routes} from '{{template.id}}/app/routes'

const fallback = <Skeleton height="75vh" width="100%" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "{{preset.id}}",
"short_name": "{{preset.id}}",
"name": "{{general.presetOrTemplateId}}",
"short_name": "{{general.presetOrTemplateId}}",
"start_url": "/?homescreen=1",
"background_color": "#fff",
"theme_color": "#4e439b",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"npm": "^9.0.0 || ^10.0.0 || ^11.0.0"
},
"ccExtensibility": {
"extends": "{{preset.templateSource.id}}",
"extends": "{{template.id}}",
"overridesDir": "overrides"
},
"devDependencies": {
"{{preset.templateSource.id}}": "{{answers.general.packageJSON.version}}"
"{{template.id}}": "{{answers.general.packageJSON.version}}"
},
"scripts": {
{{#each answers.general.packageJSON.scripts}}
Expand Down
3 changes: 2 additions & 1 deletion packages/pwa-kit-create-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"files": [
"assets",
"templates"
"templates",
"program.json"
],
"scripts": {
"format": "internal-lib-build format \"**/*.{js,jsx}\"",
Expand Down
Loading
Loading