@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 +1 -1
- package/package.json +1 -1
- package/templates/starter/package.json +2 -2
- package/templates/starter/src/ambiance/index.ts +14 -20
- package/templates/starter/src/ambiance/stocks-air/resources.ts +1 -3
- package/templates/starter/src/components/Playground/Playground.tsx +1 -1
- package/templates/starter/vite.config.ts +0 -8
- package/templates/starter/package-lock.json +0 -4806
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,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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
51
|
-
|
|
43
|
+
NoteTakerAIR.manifest,
|
|
44
|
+
YouTubeAIR.manifest,
|
|
45
|
+
TasksAIR.manifest,
|
|
52
46
|
StocksManifest,
|
|
53
47
|
CurrencyManifest
|
|
54
|
-
].filter(manifest =>
|
|
48
|
+
].filter(manifest => LOCAL_AIRS.includes(manifest.id));
|
|
@@ -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
|
}
|