@minnai/create-aura-app 0.0.20 → 0.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/dist/scaffold.js CHANGED
@@ -25,7 +25,7 @@ async function scaffold(options) {
25
25
  filter: (src) => {
26
26
  const relative = path_1.default.relative(templateDir, src);
27
27
  const parts = relative.split(path_1.default.sep);
28
- return !parts.includes('node_modules') && !parts.includes('.git');
28
+ return !parts.includes('node_modules') && !parts.includes('.git') && !parts.includes('package-lock.json');
29
29
  }
30
30
  });
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minnai/create-aura-app",
3
- "version": "0.0.20",
3
+ "version": "0.0.23",
4
4
  "description": "Scaffolding tool for new Aura projects",
5
5
  "bin": "dist/index.js",
6
6
  "files": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "aura-starter",
2
+ "name": "working-aura-starter",
3
3
  "private": true,
4
4
  "version": "0.0.0",
5
5
  "type": "module",
@@ -37,4 +37,4 @@
37
37
  "typescript-eslint": "^8.46.4",
38
38
  "vite": "^5.4.11"
39
39
  }
40
- }
40
+ }
@@ -1,6 +1,7 @@
1
1
  import { atmosphere } from '@minnai/aura/atmosphere';
2
2
  import TasksAIR from '@minnai/aura/atmosphere/tasks';
3
3
  import YouTubeAIR from '@minnai/aura/atmosphere/youtube-player';
4
+ import NoteTakerAIR from '@minnai/aura/atmosphere/note-taker';
4
5
 
5
6
  // Local Ambiance
6
7
  import { StocksManifest, Component as StocksComponent, resources as stocksResources } from './stocks-air';
@@ -9,21 +10,15 @@ import { LOCAL_AIRS } from '../../aura.config';
9
10
 
10
11
  export const registerExampleAIRs = () => {
11
12
  // 1. Register Standard AIRs (Core)
12
- const coreAIRs = [
13
- { data: TasksAIR, id: 'tasks-air' },
14
- { data: YouTubeAIR, id: 'youtube-player-air' }
15
- ];
16
-
17
- coreAIRs.forEach(({ data, id }) => {
18
- if (LOCAL_AIRS.includes(id)) {
19
- const air = (data as any).default || data;
20
- if (air && air.manifest) {
21
- atmosphere.register({
22
- ...air.manifest,
23
- component: air.component || air.Component,
24
- resources: air.resources
25
- });
26
- }
13
+ // The Standard AIRs export a wrapper object { manifest, resources, component }
14
+ // We need to flatten this to match AIRManifest { id, meta, component }
15
+ [TasksAIR, YouTubeAIR, NoteTakerAIR].forEach((air: any) => {
16
+ if (LOCAL_AIRS.includes(air.manifest.id)) {
17
+ atmosphere.register({
18
+ ...air.manifest,
19
+ component: air.component,
20
+ resources: air.resources
21
+ });
27
22
  }
28
23
  });
29
24
 
@@ -44,11 +39,10 @@ export const registerExampleAIRs = () => {
44
39
  }
45
40
  };
46
41
 
47
- const getManifest = (air: any) => (air?.default || air)?.manifest;
48
-
49
42
  export const EXAMPLE_AIRS = [
50
- getManifest(YouTubeAIR),
51
- getManifest(TasksAIR),
43
+ NoteTakerAIR.manifest,
44
+ YouTubeAIR.manifest,
45
+ TasksAIR.manifest,
52
46
  StocksManifest,
53
47
  CurrencyManifest
54
- ].filter(manifest => manifest && LOCAL_AIRS.includes(manifest.id));
48
+ ].filter(manifest => LOCAL_AIRS.includes(manifest.id));
@@ -18,8 +18,6 @@ export const resources = {
18
18
  }
19
19
  },
20
20
  keys: {
21
- // Get a free key at: https://www.alphavantage.co/support/#api-key
22
- // And put it below!!
23
- STOCKS_API_KEY: ''
21
+ STOCKS_API_KEY:
24
22
  }
25
23
  } as const;
@@ -13,7 +13,7 @@ export function Playground() {
13
13
  const [activeFile, setActiveFile] = useState<string | null>(null);
14
14
  const [fileContent, setFileContent] = useState<string>('');
15
15
 
16
- const BUILTIN_AIRS = ['youtube-player-air', 'tasks-air'];
16
+ const BUILTIN_AIRS = ['note-taker-air', 'youtube-player-air', 'tasks-air'];
17
17
 
18
18
  const handleSelect = async (id: string) => {
19
19
  setSelectedId(id);
@@ -271,14 +271,6 @@ export default {
271
271
  }
272
272
  }
273
273
  ],
274
- resolve: {
275
- alias: {
276
- // Allow standard node resolution
277
- // 'react': path.resolve(__dirname, './node_modules/react'),
278
- // 'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
279
- },
280
- dedupe: ['react', 'react-dom', '@minnai/aura']
281
- },
282
274
  server: {
283
275
  port: 5175
284
276
  }