bmdl-sdk 1.5.0 → 1.5.2
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/dev.js +7 -7
- package/bin/init.js +1 -1
- package/bmdl-sdk-1.5.2.tgz +0 -0
- package/index.html +1 -12
- package/package.json +3 -6
- package/vite.config.ts +9 -13
- package/bmdl-sdk-1.5.0.tgz +0 -0
package/bin/dev.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { spawn } from 'child_process'
|
|
4
|
-
import {
|
|
4
|
+
import { existsSync } from 'fs'
|
|
5
|
+
import { dirname, resolve } from 'path'
|
|
5
6
|
import { fileURLToPath } from 'url'
|
|
6
|
-
import { dirname, existsSync, readFileSync } from 'fs'
|
|
7
7
|
|
|
8
8
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
9
9
|
const projectRoot = process.cwd()
|
|
@@ -16,7 +16,7 @@ const requiredFiles = [
|
|
|
16
16
|
'src/app/App.tsx',
|
|
17
17
|
'src/config.ts',
|
|
18
18
|
'src/dataOptions.ts',
|
|
19
|
-
'src/viewOptions.ts'
|
|
19
|
+
'src/viewOptions.ts',
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
let hasErrors = false
|
|
@@ -49,11 +49,11 @@ const vite = spawn('npx', ['vite', '--port', '3000', '--config', viteConfig], {
|
|
|
49
49
|
cwd: sdkRoot,
|
|
50
50
|
env: {
|
|
51
51
|
...process.env,
|
|
52
|
-
PROJECT_ROOT: projectRoot
|
|
53
|
-
}
|
|
52
|
+
PROJECT_ROOT: projectRoot,
|
|
53
|
+
},
|
|
54
54
|
})
|
|
55
55
|
|
|
56
|
-
vite.on('close',
|
|
56
|
+
vite.on('close', code => {
|
|
57
57
|
if (code !== 0) {
|
|
58
58
|
console.log(`❌ Vite process exited with code ${code}`)
|
|
59
59
|
}
|
|
@@ -62,4 +62,4 @@ vite.on('close', (code) => {
|
|
|
62
62
|
|
|
63
63
|
console.log('')
|
|
64
64
|
console.log('✅ Development server running on http://localhost:3000')
|
|
65
|
-
console.log('🔄 Hot reload enabled for all source files')
|
|
65
|
+
console.log('🔄 Hot reload enabled for all source files')
|
package/bin/init.js
CHANGED
|
@@ -24,7 +24,7 @@ if (!existsSync(packageJsonPath)) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const srcDir = resolve(projectRoot, 'src')
|
|
27
|
-
const appDir = resolve(srcDir, '
|
|
27
|
+
const appDir = resolve(srcDir, 'app')
|
|
28
28
|
const publicDir = resolve(projectRoot, 'public')
|
|
29
29
|
const folders = [srcDir, appDir, publicDir]
|
|
30
30
|
|
|
Binary file
|
package/index.html
CHANGED
|
@@ -3,18 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>BMDL SDK
|
|
7
|
-
<style>
|
|
8
|
-
* {
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
body {
|
|
14
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
15
|
-
background: #fff;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
6
|
+
<title>BMDL SDK</title>
|
|
18
7
|
</head>
|
|
19
8
|
<body>
|
|
20
9
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bmdl-sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -17,12 +17,9 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@types/react": "^19.2.17",
|
|
19
19
|
"@types/react-dom": "^19.2.3",
|
|
20
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
21
|
+
"vite": "^4.0.0",
|
|
20
22
|
"react": "^19.2.7",
|
|
21
23
|
"react-dom": "^19.2.7"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@vitejs/plugin-react": "^4.0.0",
|
|
25
|
-
"typescript": "^5.0.0",
|
|
26
|
-
"vite": "^4.0.0"
|
|
27
24
|
}
|
|
28
25
|
}
|
package/vite.config.ts
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
1
|
import react from '@vitejs/plugin-react'
|
|
2
|
+
import { defineConfig } from 'vite'
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
plugins: [react()],
|
|
6
6
|
server: {
|
|
7
7
|
port: 3000,
|
|
8
8
|
open: true,
|
|
9
|
-
watch: {
|
|
10
|
-
// Следим за изменениями в проекте разработчика
|
|
11
|
-
ignored: ['!**/node_modules/**']
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
optimizeDeps: {
|
|
15
|
-
include: ['react', 'react-dom']
|
|
16
9
|
},
|
|
10
|
+
root: process.cwd(),
|
|
17
11
|
resolve: {
|
|
18
12
|
alias: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
'@': process.cwd(),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
optimizeDeps: {
|
|
17
|
+
include: ['react', 'react-dom'],
|
|
18
|
+
},
|
|
19
|
+
})
|
package/bmdl-sdk-1.5.0.tgz
DELETED
|
Binary file
|