@dxtmisha/scripts 0.7.11 → 0.7.12

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/scripts",
3
3
  "private": false,
4
- "version": "0.7.11",
4
+ "version": "0.7.12",
5
5
  "type": "module",
6
6
  "description": "Development scripts and CLI tools for DXT UI projects - automated component generation, library building and project management tools",
7
7
  "keywords": [
package/src/library.ts CHANGED
@@ -1,51 +1,54 @@
1
- // Classes
2
- export * from './classes/Ai/AiAbstract'
3
- export * from './classes/Ai/AiClaude'
4
- export * from './classes/Ai/AiClaudeCli'
5
- export * from './classes/Ai/AiClaudeCliLite'
6
- export * from './classes/Ai/AiClaudeLite'
7
- export * from './classes/Ai/AiDoc'
8
- export * from './classes/Ai/AiDocItem'
9
- export * from './classes/Ai/AiDocItemAbstract'
10
- export * from './classes/Ai/AiDocItemClasses'
11
- export * from './classes/Ai/AiDocItemComposables'
12
- export * from './classes/Ai/AiDocType'
13
- export * from './classes/Ai/AiGoogle'
14
- export * from './classes/Ai/AiGoogleCli'
15
- export * from './classes/Ai/AiGoogleCliLite'
16
- export * from './classes/Ai/AiGoogleLite'
17
- export * from './classes/BrowserItem'
18
- export * from './classes/Build/buildFunctional'
19
- export * from './classes/BuildItem'
20
- export * from './classes/Design/DesignScreenshot'
21
- export * from './classes/Design/DesignTypes'
22
- export * from './classes/Design/DesignTypescript'
23
- export * from './classes/Design/DesignWikiStorm'
24
- export * from './classes/Design/DesignWikiStormItem'
25
- export * from './classes/Git/GitRead'
26
- export * from './classes/Library/LibraryAiWiki'
27
- export * from './classes/Library/LibraryAiWikiItem'
28
- export * from './classes/Library/LibraryExport'
29
- export * from './classes/Library/LibraryList'
30
- export * from './classes/Library/LibraryPlugin'
31
- export * from './classes/Library/LibraryTypes'
32
- export * from './classes/Properties/PropertiesFile'
33
-
34
- // Composables
35
- export * from './composables/useAi'
36
-
37
- // Functions
38
- export * from './functions/getConfigAi'
39
- export * from './functions/getDirname'
40
- export * from './functions/getPackageJson'
41
- export * from './functions/hasNativeDirname'
42
-
43
- // Types
44
- export * from './types/aiTypes'
45
- export * from './types/configTypes'
46
- export * from './types/designTypes'
47
- export * from './types/gitTypes'
48
- export * from './types/libraryTypes'
49
- export * from './types/propertyTypes'
50
- export * from './types/screenshotTypes'
51
- export * from './types/webTypes'
1
+ // Classes
2
+ export * from './classes/Ai/AiAbstract'
3
+ export * from './classes/Ai/AiClaude'
4
+ export * from './classes/Ai/AiClaudeCli'
5
+ export * from './classes/Ai/AiClaudeCliLite'
6
+ export * from './classes/Ai/AiClaudeLite'
7
+ export * from './classes/Ai/AiDoc'
8
+ export * from './classes/Ai/AiDocItem'
9
+ export * from './classes/Ai/AiDocItemAbstract'
10
+ export * from './classes/Ai/AiDocItemClasses'
11
+ export * from './classes/Ai/AiDocItemComposables'
12
+ export * from './classes/Ai/AiDocType'
13
+ export * from './classes/Ai/AiGoogle'
14
+ export * from './classes/Ai/AiGoogleCli'
15
+ export * from './classes/Ai/AiGoogleCliLite'
16
+ export * from './classes/Ai/AiGoogleLite'
17
+ export * from './classes/BrowserItem'
18
+ export * from './classes/Build/buildFunctional'
19
+ export * from './classes/BuildItem'
20
+ export * from './classes/Design/DesignFigma'
21
+ export * from './classes/Design/DesignScreenshot'
22
+ export * from './classes/Design/DesignTypes'
23
+ export * from './classes/Design/DesignTypescript'
24
+ export * from './classes/Design/DesignWikiStorm'
25
+ export * from './classes/Design/DesignWikiStormItem'
26
+ export * from './classes/FigmaApi'
27
+ export * from './classes/Git/GitRead'
28
+ export * from './classes/Library/LibraryAiWiki'
29
+ export * from './classes/Library/LibraryAiWikiItem'
30
+ export * from './classes/Library/LibraryExport'
31
+ export * from './classes/Library/LibraryList'
32
+ export * from './classes/Library/LibraryPlugin'
33
+ export * from './classes/Library/LibraryTypes'
34
+ export * from './classes/Properties/PropertiesFile'
35
+
36
+ // Composables
37
+ export * from './composables/useAi'
38
+
39
+ // Functions
40
+ export * from './functions/getConfigAi'
41
+ export * from './functions/getDirname'
42
+ export * from './functions/getPackageJson'
43
+ export * from './functions/hasNativeDirname'
44
+
45
+ // Types
46
+ export * from './types/aiTypes'
47
+ export * from './types/configTypes'
48
+ export * from './types/designTypes'
49
+ export * from './types/figmaApiTypes'
50
+ export * from './types/gitTypes'
51
+ export * from './types/libraryTypes'
52
+ export * from './types/propertyTypes'
53
+ export * from './types/screenshotTypes'
54
+ export * from './types/webTypes'
@@ -0,0 +1 @@
1
+ # @packages/library
@@ -0,0 +1,2 @@
1
+ <!--ssr-outlet-->
2
+ <script type="module" src="/src/entry-client.ts"></script>
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@packages/library",
3
+ "private": true,
4
+ "version": "0.1.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite dev",
8
+ "build": "vite build",
9
+ "preview": "vite preview",
10
+ "component": "dxt-component"
11
+ },
12
+ "dependencies": {},
13
+ "devDependencies": {
14
+ "@dxtmisha/configuration": "*",
15
+ "@dxtmisha/functional": "*",
16
+ "@dxtmisha/functional-basic": "*",
17
+ "@dxtmisha/media": "*",
18
+ "@dxtmisha/nitro-basic": "*",
19
+ "@dxtmisha/styles": "*",
20
+ "nitro": "*",
21
+ "nitropack": "*",
22
+ "vue": "*",
23
+ "vue-router": "*"
24
+ }
25
+ }
@@ -0,0 +1,7 @@
1
+ import { definePlugin } from 'nitro'
2
+ import { initPluginBasic } from '@dxtmisha/nitro-basic/plugin'
3
+
4
+ export default definePlugin((nitroApp) => {
5
+ initPluginBasic(nitroApp as any)
6
+ console.log('UI plugin initialized')
7
+ })
@@ -0,0 +1,13 @@
1
+ import { defineHandler } from 'nitro'
2
+
3
+ export default defineHandler(() => {
4
+ return {
5
+ status: 'success',
6
+ message: 'Hello from Nitro API!',
7
+ timestamp: new Date().toISOString(),
8
+ data: {
9
+ version: '1.0.0',
10
+ description: 'This is a test API route for dxt-ui demo.'
11
+ }
12
+ }
13
+ })
@@ -0,0 +1,10 @@
1
+ <script setup lang="ts">
2
+ </script>
3
+
4
+ <template>
5
+ <D1Container class="app">
6
+ <RouterView/>
7
+ </D1Container>
8
+ </template>
9
+
10
+ <style lang="scss"></style>
@@ -0,0 +1,12 @@
1
+ import { uiBootstrapClient, uiCreateClientApp } from '@dxtmisha/nitro-basic'
2
+ import { createApp } from './main'
3
+
4
+ const { app, router, options } = createApp()
5
+
6
+ uiBootstrapClient()
7
+ uiCreateClientApp(
8
+ app,
9
+ undefined,
10
+ router,
11
+ options
12
+ )
@@ -0,0 +1,29 @@
1
+ import { uiBootstrapServer, uiCreateServerApp } from '@dxtmisha/nitro-basic'
2
+
3
+ import { createApp } from './main'
4
+ import template from './templates/main.html?raw'
5
+
6
+ uiBootstrapServer()
7
+
8
+ export default {
9
+ async fetch(request: Request) {
10
+ const { app, router, options } = createApp()
11
+
12
+ const {
13
+ headers,
14
+ body
15
+ } = await uiCreateServerApp(
16
+ app,
17
+ request,
18
+ router,
19
+ options,
20
+ undefined,
21
+ undefined,
22
+ template
23
+ )
24
+
25
+ return new Response(body, {
26
+ headers
27
+ })
28
+ }
29
+ }
@@ -0,0 +1,14 @@
1
+ import { uiCreateApp } from '@dxtmisha/nitro-basic'
2
+
3
+ import App from './App.vue'
4
+ import { routes } from './router'
5
+
6
+ import './style.scss'
7
+
8
+ export function createApp() {
9
+ return uiCreateApp(App, {
10
+ appRouter: {
11
+ routes
12
+ }
13
+ })
14
+ }
@@ -0,0 +1,8 @@
1
+ <script setup lang="ts">
2
+ </script>
3
+
4
+ <template>
5
+ <div>Home</div>
6
+ </template>
7
+
8
+ <style lang="scss"></style>
@@ -0,0 +1,11 @@
1
+ import type { RouteRecordRaw } from 'vue-router'
2
+
3
+ import HomePage from './pages/HomePage.vue'
4
+
5
+ export const routes: RouteRecordRaw[] = [
6
+ {
7
+ path: '/',
8
+ name: 'home',
9
+ component: HomePage
10
+ }
11
+ ]
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <html lang="<!--ssr-lang-->">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <link rel="stylesheet"
8
+ href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap"/>
9
+ <link rel="stylesheet"
10
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"/>
11
+ <!--ssr-meta-->
12
+ <title><!--ssr-title--></title>
13
+ <!--ssr-scriptsJson-->
14
+ </head>
15
+
16
+ <body>
17
+ <div id="app"><!--ssr-outlet--></div>
18
+ <!--ssr-teleports-->
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,11 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.html' {
4
+ const content: string
5
+ export default content
6
+ }
7
+
8
+ declare module '*.html?raw' {
9
+ const content: string
10
+ export default content
11
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "@dxtmisha/configuration/tsconfig/tsconfig.app.json",
3
+ "compilerOptions": {
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
+ "types": [
6
+ "vite/client",
7
+ "@dxtmisha/d1/types.d.ts"
8
+ ]
9
+ },
10
+ "include": [
11
+ "src/**/*.ts",
12
+ "src/**/*.tsx",
13
+ "src/**/*.vue"
14
+ ]
15
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "@dxtmisha/configuration/tsconfig/tsconfig.node.json",
3
+ "compilerOptions": {
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "moduleResolution": "bundler"
6
+ },
7
+ "include": [
8
+ "nitro.config.ts",
9
+ "vite.config.ts",
10
+ "server/**/*.ts"
11
+ ]
12
+ }
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from 'vite'
2
+ import { nitro } from 'nitro/vite'
3
+
4
+ import vue from '@vitejs/plugin-vue'
5
+
6
+ export default defineConfig(() => ({
7
+ plugins: [
8
+ vue(),
9
+ nitro({
10
+ serverDir: './server'
11
+ })
12
+ ],
13
+ build: {
14
+ minify: true,
15
+ cssCodeSplit: true
16
+ }
17
+ }))