create-skybridge 0.0.0-dev.e0ed208 → 0.0.0-dev.e93283d
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/index.js +5 -7
- package/package.json +1 -1
- package/template/nodemon.json +5 -0
- package/template/package.json +26 -10
- package/template/pnpm-workspace.yaml +1 -7
- package/template/web/vite.config.ts +1 -1
- package/template/server/nodemon.json +0 -5
- package/template/server/package.json +0 -32
- package/template/web/package.json +0 -24
package/dist/index.js
CHANGED
|
@@ -102,18 +102,16 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
102
102
|
// Copy template to target directory
|
|
103
103
|
fs.cpSync(templateDir, root, {
|
|
104
104
|
recursive: true,
|
|
105
|
-
filter: (src) => !src.endsWith(
|
|
105
|
+
filter: (src) => [".npmrc", "pnpm-workspace.yaml"].every((file) => !src.endsWith(file)),
|
|
106
106
|
});
|
|
107
107
|
// Rename _gitignore to .gitignore
|
|
108
108
|
fs.renameSync(path.join(root, "_gitignore"), path.join(root, ".gitignore"));
|
|
109
109
|
// Update project name in package.json
|
|
110
110
|
const name = path.basename(root);
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
fs.writeFileSync(pkgPath, fixed);
|
|
116
|
-
}
|
|
111
|
+
const pkgPath = path.join(root, "package.json");
|
|
112
|
+
const pkg = fs.readFileSync(pkgPath, "utf-8");
|
|
113
|
+
const fixed = pkg.replace(/apps-sdk-template/g, name);
|
|
114
|
+
fs.writeFileSync(pkgPath, fixed);
|
|
117
115
|
prompts.log.success(`Project created in ${root}`);
|
|
118
116
|
prompts.outro(`Done! Next steps:\n\n cd ${targetDir}\n pnpm install\n pnpm dev`);
|
|
119
117
|
}
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -4,18 +4,34 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Alpic MCP Server Template",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"packageManager": "pnpm@10.18.3",
|
|
8
7
|
"scripts": {
|
|
9
|
-
"dev": "
|
|
10
|
-
"build": "
|
|
11
|
-
"start": "
|
|
12
|
-
"inspector": "
|
|
13
|
-
"server:build": "
|
|
14
|
-
"server:start": "
|
|
15
|
-
"web:build": "
|
|
16
|
-
"web:preview": "
|
|
8
|
+
"dev": "nodemon",
|
|
9
|
+
"build": "tsc -b web && vite build -c web/vite.config.ts && rm -rf server/dist && tsc -p server/tsconfig.json && cp -r web/dist server/dist/assets",
|
|
10
|
+
"start": "node server/dist/index.js",
|
|
11
|
+
"inspector": "mcp-inspector http://localhost:3000/mcp",
|
|
12
|
+
"server:build": "tsc -p server/tsconfig.json",
|
|
13
|
+
"server:start": "node server/dist/index.js",
|
|
14
|
+
"web:build": "tsc -b web && vite build -c web/vite.config.ts",
|
|
15
|
+
"web:preview": "vite preview -c web/vite.config.ts"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
19
|
+
"express": "^5.1.0",
|
|
20
|
+
"react": "^19.1.1",
|
|
21
|
+
"react-dom": "^19.1.1",
|
|
22
|
+
"skybridge": "0.15.3",
|
|
23
|
+
"vite": "^7.1.11",
|
|
24
|
+
"zod": "^4.1.13"
|
|
17
25
|
},
|
|
18
26
|
"devDependencies": {
|
|
19
|
-
"
|
|
27
|
+
"@modelcontextprotocol/inspector": "^0.17.5",
|
|
28
|
+
"@types/express": "^5.0.3",
|
|
29
|
+
"@types/node": "^22.15.30",
|
|
30
|
+
"@types/react": "^19.1.16",
|
|
31
|
+
"@types/react-dom": "^19.1.9",
|
|
32
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
33
|
+
"nodemon": "^3.1.10",
|
|
34
|
+
"tsx": "^4.19.4",
|
|
35
|
+
"typescript": "^5.7.2"
|
|
20
36
|
}
|
|
21
37
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@apps-sdk-template/server",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"description": "Alpic MCP Server Template",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"type": "module",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "nodemon",
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"start": "node dist/index.js",
|
|
15
|
-
"inspector": "mcp-inspector http://localhost:3000/mcp"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
19
|
-
"express": "^5.1.0",
|
|
20
|
-
"skybridge": "catalog:",
|
|
21
|
-
"vite": "^7.1.11",
|
|
22
|
-
"zod": "^4.1.13"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@modelcontextprotocol/inspector": "^0.17.5",
|
|
26
|
-
"@types/express": "^5.0.3",
|
|
27
|
-
"@types/node": "^22.15.30",
|
|
28
|
-
"nodemon": "^3.1.10",
|
|
29
|
-
"tsx": "^4.19.2",
|
|
30
|
-
"typescript": "^5.7.2"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@apps-sdk-template/web",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "echo 'Not implemented",
|
|
8
|
-
"build": "tsc -b && vite build",
|
|
9
|
-
"preview": "vite preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"skybridge": "catalog:",
|
|
13
|
-
"react": "^19.1.1",
|
|
14
|
-
"react-dom": "^19.1.1"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@types/node": "^24.6.0",
|
|
18
|
-
"@types/react": "^19.1.16",
|
|
19
|
-
"@types/react-dom": "^19.1.9",
|
|
20
|
-
"@vitejs/plugin-react": "^5.0.4",
|
|
21
|
-
"typescript": "~5.9.3",
|
|
22
|
-
"vite": "^7.1.11"
|
|
23
|
-
}
|
|
24
|
-
}
|