sunpeak 0.6.5 → 0.6.6

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/bin/sunpeak.js CHANGED
@@ -28,7 +28,7 @@ function checkPackageJson() {
28
28
  }
29
29
 
30
30
  function parseResourcesInput(input) {
31
- const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'pizzaz'];
31
+ const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'map'];
32
32
 
33
33
  // If no input, return all resources
34
34
  if (!input || input.trim() === '') {
@@ -60,7 +60,7 @@ function updateIndexFiles(targetDir, selectedResources) {
60
60
  albums: { component: 'album', resourceClass: 'AlbumsResource', simulation: 'albums' },
61
61
  carousel: { component: 'carousel', resourceClass: 'CarouselResource', simulation: 'carousel' },
62
62
  counter: { component: null, resourceClass: 'CounterResource', simulation: 'counter' },
63
- pizzaz: { component: 'pizzaz', resourceClass: 'PizzazResource', simulation: 'pizzaz' },
63
+ map: { component: 'map', resourceClass: 'MapResource', simulation: 'map' },
64
64
  };
65
65
 
66
66
  // Update components/index.ts
@@ -122,7 +122,7 @@ async function init(projectName, resourcesArg) {
122
122
  console.log(`☀️ 🏔️ Resources: ${resourcesArg}`);
123
123
  } else {
124
124
  resourcesInput = await prompt(
125
- '☀️ 🏔️ Resources (UIs) to include [albums, carousel, counter, pizzaz]: '
125
+ '☀️ 🏔️ Resources (UIs) to include [albums, carousel, counter, map]: '
126
126
  );
127
127
  }
128
128
  const selectedResources = parseResourcesInput(resourcesInput);
@@ -145,7 +145,7 @@ async function init(projectName, resourcesArg) {
145
145
  albums: 'album',
146
146
  carousel: 'carousel',
147
147
  counter: null, // Counter doesn't have a component directory
148
- pizzaz: 'pizzaz',
148
+ map: 'map',
149
149
  };
150
150
 
151
151
  cpSync(templateDir, targetDir, {
@@ -159,7 +159,7 @@ async function init(projectName, resourcesArg) {
159
159
  }
160
160
 
161
161
  // Filter resource files based on selection
162
- const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'pizzaz'];
162
+ const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'map'];
163
163
  const excludedResources = VALID_RESOURCES.filter((r) => !selectedResources.includes(r));
164
164
 
165
165
  for (const resource of excludedResources) {
@@ -276,7 +276,7 @@ Usage:
276
276
  npx sunpeak new [name] [resources] Create a new project (no install needed)
277
277
  pnpm dlx sunpeak new Alternative with pnpm
278
278
 
279
- Resources: albums, carousel, counter, pizzaz (comma/space separated)
279
+ Resources: albums, carousel, counter, map (comma/space separated)
280
280
  Example: npx sunpeak new my-app "albums,carousel"
281
281
 
282
282
  Inside your project, use npm scripts:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunpeak",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "The ChatGPT App framework. Quickstart, build, & test your ChatGPT App locally!",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",