@idealyst/cli 1.0.89 → 1.0.91
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/generators/index.js +3 -40
- package/dist/generators/index.js.map +1 -1
- package/dist/generators/init.js +273 -0
- package/dist/generators/init.js.map +1 -0
- package/dist/generators/utils.js +5 -0
- package/dist/generators/utils.js.map +1 -1
- package/dist/index.js +20 -202
- package/dist/index.js.map +1 -1
- package/dist/scripts/configure-react-native-monorepo.js +144 -0
- package/dist/scripts/configure-react-native-monorepo.js.map +1 -0
- package/dist/{templates/workspace → template}/README.md +66 -12
- package/dist/template/package.json +45 -0
- package/{templates → dist/template/packages}/api/package.json +3 -1
- package/{templates → dist/template/packages}/database/package.json +1 -1
- package/dist/{templates/native → template/packages/mobile}/babel.config.js +1 -0
- package/{templates/native → dist/template/packages/mobile}/metro.config.js +4 -4
- package/{templates/native → dist/template/packages/mobile}/package.json +5 -2
- package/{templates → dist/template/packages}/shared/package.json +2 -2
- package/{templates → dist/template/packages}/web/package.json +4 -1
- package/dist/types/generators/index.d.ts +1 -7
- package/dist/types/generators/init.d.ts +5 -0
- package/dist/types/scripts/configure-react-native-monorepo.d.ts +23 -0
- package/dist/types/types.d.ts +0 -4
- package/package.json +2 -2
- package/{templates/workspace → template}/README.md +66 -12
- package/template/package.json +45 -0
- package/{dist/templates → template/packages}/api/package.json +3 -1
- package/{dist/templates → template/packages}/database/package.json +1 -1
- package/{templates/native → template/packages/mobile}/babel.config.js +1 -0
- package/{dist/templates/native → template/packages/mobile}/metro.config.js +4 -4
- package/{dist/templates/native → template/packages/mobile}/package.json +5 -2
- package/{templates/native/src/App.tsx → template/packages/mobile/src/App-with-trpc-and-shared.tsx} +1 -1
- package/{dist/templates/native → template/packages/mobile}/src/App.tsx +1 -1
- package/{dist/templates → template/packages}/shared/package.json +2 -2
- package/{dist/templates → template/packages}/shared/src/components/App.tsx +8 -9
- package/{dist/templates → template/packages}/shared/src/components/HelloWorld.tsx +17 -20
- package/template/packages/shared/src/navigation/AppRouter.tsx +565 -0
- package/{dist/templates → template/packages}/web/package.json +4 -1
- package/{dist/templates/web/src/App.tsx → template/packages/web/src/App-with-trpc-and-shared.tsx} +1 -1
- package/{templates → template/packages}/web/src/App.tsx +1 -1
- package/dist/generators/api.js +0 -31
- package/dist/generators/api.js.map +0 -1
- package/dist/generators/database.js +0 -31
- package/dist/generators/database.js.map +0 -1
- package/dist/generators/fullstack.js +0 -418
- package/dist/generators/fullstack.js.map +0 -1
- package/dist/generators/native.js +0 -112
- package/dist/generators/native.js.map +0 -1
- package/dist/generators/shared.js +0 -29
- package/dist/generators/shared.js.map +0 -1
- package/dist/generators/web.js +0 -45
- package/dist/generators/web.js.map +0 -1
- package/dist/generators/workspace.js +0 -83
- package/dist/generators/workspace.js.map +0 -1
- package/dist/templates/shared/src/navigation/AppRouter.tsx +0 -98
- package/dist/templates/workspace/package.json +0 -35
- package/dist/types/generators/api.d.ts +0 -2
- package/dist/types/generators/database.d.ts +0 -2
- package/dist/types/generators/fullstack.d.ts +0 -2
- package/dist/types/generators/native.d.ts +0 -2
- package/dist/types/generators/shared.d.ts +0 -2
- package/dist/types/generators/web.d.ts +0 -2
- package/dist/types/generators/workspace.d.ts +0 -2
- package/templates/workspace/package.json +0 -38
- /package/dist/{templates/workspace → template}/.devcontainer/Dockerfile +0 -0
- /package/dist/{templates/workspace → template}/.devcontainer/devcontainer.json +0 -0
- /package/dist/{templates/workspace → template}/.devcontainer/docker-compose.yml +0 -0
- /package/dist/{templates/workspace → template}/.devcontainer/figma-mcp.sh +0 -0
- /package/dist/{templates/workspace → template}/.devcontainer/setup.sh +0 -0
- /package/dist/{templates/workspace → template}/.dockerignore +0 -0
- /package/dist/{templates/workspace → template}/.env.example +0 -0
- /package/dist/{templates/workspace → template}/DOCKER.md +0 -0
- /package/dist/{templates/workspace → template}/Dockerfile +0 -0
- /package/dist/{templates/workspace → template}/docker/nginx/prod.conf +0 -0
- /package/dist/{templates/workspace → template}/docker/nginx.conf +0 -0
- /package/dist/{templates/workspace → template}/docker/postgres/init.sql +0 -0
- /package/dist/{templates/workspace → template}/docker/prometheus/prometheus.yml +0 -0
- /package/dist/{templates/workspace → template}/docker-compose.prod.yml +0 -0
- /package/dist/{templates/workspace → template}/docker-compose.yml +0 -0
- /package/dist/{templates/workspace → template}/jest.config.js +0 -0
- /package/dist/{templates → template/packages}/api/.env.example +0 -0
- /package/dist/{templates → template/packages}/api/README.md +0 -0
- /package/dist/{templates → template/packages}/api/__tests__/api.test.ts +0 -0
- /package/dist/{templates → template/packages}/api/jest.config.js +0 -0
- /package/dist/{templates → template/packages}/api/jest.setup.js +0 -0
- /package/dist/{templates → template/packages}/api/src/context.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/controllers/TestController.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/index.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/lib/crud.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/lib/database.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/router/index.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/routers/test.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/routers/user.example.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/server.ts +0 -0
- /package/dist/{templates → template/packages}/api/src/trpc.ts +0 -0
- /package/dist/{templates → template/packages}/api/tsconfig.json +0 -0
- /package/dist/{templates → template/packages}/database/README.md +0 -0
- /package/dist/{templates → template/packages}/database/prisma/seed.ts +0 -0
- /package/dist/{templates → template/packages}/database/schema.prisma +0 -0
- /package/dist/{templates → template/packages}/database/src/index.ts +0 -0
- /package/dist/{templates → template/packages}/database/src/validators.ts +0 -0
- /package/dist/{templates → template/packages}/database/tsconfig.json +0 -0
- /package/dist/{templates/native → template/packages/mobile}/README.md +0 -0
- /package/dist/{templates/native → template/packages/mobile}/__tests__/App.test.tsx +0 -0
- /package/dist/{templates/native → template/packages/mobile}/__tests__/components.test.tsx +0 -0
- /package/dist/{templates/native → template/packages/mobile}/app.json +0 -0
- /package/dist/{templates/native → template/packages/mobile}/index.js +0 -0
- /package/dist/{templates/native → template/packages/mobile}/jest.config.js +0 -0
- /package/dist/{templates/native → template/packages/mobile}/jest.setup.js +0 -0
- /package/dist/{templates/native → template/packages/mobile}/src/App-with-trpc-and-shared.tsx +0 -0
- /package/dist/{templates/native → template/packages/mobile}/src/App-with-trpc.tsx +0 -0
- /package/{templates/native/src/App-with-trpc-and-shared.tsx → dist/template/packages/mobile/src/App.tsx} +0 -0
- /package/dist/{templates/native → template/packages/mobile}/src/utils/trpc.ts +0 -0
- /package/dist/{templates/native → template/packages/mobile}/tsconfig.json +0 -0
- /package/dist/{templates → template/packages}/shared/README.md +0 -0
- /package/dist/{templates → template/packages}/shared/__tests__/shared.test.ts +0 -0
- /package/dist/{templates → template/packages}/shared/jest.config.js +0 -0
- /package/{templates → dist/template/packages}/shared/src/components/App.tsx +0 -0
- /package/{templates → dist/template/packages}/shared/src/components/HelloWorld.tsx +0 -0
- /package/dist/{templates → template/packages}/shared/src/components/index.ts +0 -0
- /package/dist/{templates → template/packages}/shared/src/index.ts +0 -0
- /package/{templates → dist/template/packages}/shared/src/navigation/AppRouter.tsx +0 -0
- /package/dist/{templates → template/packages}/shared/src/trpc/client.ts +0 -0
- /package/dist/{templates → template/packages}/shared/tsconfig.json +0 -0
- /package/dist/{templates → template/packages}/web/README.md +0 -0
- /package/dist/{templates → template/packages}/web/__tests__/App.test.tsx +0 -0
- /package/dist/{templates → template/packages}/web/__tests__/components.test.tsx +0 -0
- /package/dist/{templates → template/packages}/web/index.html +0 -0
- /package/dist/{templates → template/packages}/web/jest.config.js +0 -0
- /package/dist/{templates → template/packages}/web/jest.setup.js +0 -0
- /package/dist/{templates → template/packages}/web/src/App-with-trpc-and-shared.tsx +0 -0
- /package/dist/{templates → template/packages}/web/src/App-with-trpc.tsx +0 -0
- /package/{templates/web/src/App-with-trpc-and-shared.tsx → dist/template/packages/web/src/App.tsx} +0 -0
- /package/dist/{templates → template/packages}/web/src/components/TestDemo.tsx +0 -0
- /package/dist/{templates → template/packages}/web/src/main.tsx +0 -0
- /package/dist/{templates → template/packages}/web/src/utils/trpc.ts +0 -0
- /package/dist/{templates → template/packages}/web/tsconfig.json +0 -0
- /package/dist/{templates → template/packages}/web/vite.config.ts +0 -0
- /package/dist/{templates/workspace → template}/setup.sh +0 -0
- /package/dist/{templates/workspace → template}/tsconfig.json +0 -0
- /package/{templates/workspace → template}/.devcontainer/Dockerfile +0 -0
- /package/{templates/workspace → template}/.devcontainer/devcontainer.json +0 -0
- /package/{templates/workspace → template}/.devcontainer/docker-compose.yml +0 -0
- /package/{templates/workspace → template}/.devcontainer/figma-mcp.sh +0 -0
- /package/{templates/workspace → template}/.devcontainer/setup.sh +0 -0
- /package/{templates/workspace → template}/.dockerignore +0 -0
- /package/{templates/workspace → template}/.env.example +0 -0
- /package/{templates/workspace → template}/.env.production +0 -0
- /package/{templates/workspace → template}/DOCKER.md +0 -0
- /package/{templates/workspace → template}/Dockerfile +0 -0
- /package/{templates/workspace → template}/docker/nginx/prod.conf +0 -0
- /package/{templates/workspace → template}/docker/nginx.conf +0 -0
- /package/{templates/workspace → template}/docker/postgres/init.sql +0 -0
- /package/{templates/workspace → template}/docker/prometheus/prometheus.yml +0 -0
- /package/{templates/workspace → template}/docker-compose.prod.yml +0 -0
- /package/{templates/workspace → template}/docker-compose.yml +0 -0
- /package/{templates/workspace → template}/jest.config.js +0 -0
- /package/{templates → template/packages}/api/.env.example +0 -0
- /package/{templates → template/packages}/api/README.md +0 -0
- /package/{templates → template/packages}/api/__tests__/api.test.ts +0 -0
- /package/{templates → template/packages}/api/jest.config.js +0 -0
- /package/{templates → template/packages}/api/jest.setup.js +0 -0
- /package/{templates → template/packages}/api/src/context.ts +0 -0
- /package/{templates → template/packages}/api/src/controllers/TestController.ts +0 -0
- /package/{templates → template/packages}/api/src/index.ts +0 -0
- /package/{templates → template/packages}/api/src/lib/crud.ts +0 -0
- /package/{templates → template/packages}/api/src/lib/database.ts +0 -0
- /package/{templates → template/packages}/api/src/router/index.ts +0 -0
- /package/{templates → template/packages}/api/src/routers/test.ts +0 -0
- /package/{templates → template/packages}/api/src/routers/user.example.ts +0 -0
- /package/{templates → template/packages}/api/src/server.ts +0 -0
- /package/{templates → template/packages}/api/src/trpc.ts +0 -0
- /package/{templates → template/packages}/api/tsconfig.json +0 -0
- /package/{templates → template/packages}/database/README.md +0 -0
- /package/{templates → template/packages}/database/prisma/seed.ts +0 -0
- /package/{templates → template/packages}/database/schema.prisma +0 -0
- /package/{templates → template/packages}/database/src/index.ts +0 -0
- /package/{templates → template/packages}/database/src/validators.ts +0 -0
- /package/{templates → template/packages}/database/tsconfig.json +0 -0
- /package/{templates/native → template/packages/mobile}/README.md +0 -0
- /package/{templates/native → template/packages/mobile}/__tests__/App.test.tsx +0 -0
- /package/{templates/native → template/packages/mobile}/__tests__/components.test.tsx +0 -0
- /package/{templates/native → template/packages/mobile}/app.json +0 -0
- /package/{templates/native → template/packages/mobile}/index.js +0 -0
- /package/{templates/native → template/packages/mobile}/jest.config.js +0 -0
- /package/{templates/native → template/packages/mobile}/jest.setup.js +0 -0
- /package/{templates/native → template/packages/mobile}/src/App-with-trpc.tsx +0 -0
- /package/{templates/native → template/packages/mobile}/src/utils/trpc.ts +0 -0
- /package/{templates/native → template/packages/mobile}/tsconfig.json +0 -0
- /package/{templates → template/packages}/shared/README.md +0 -0
- /package/{templates → template/packages}/shared/__tests__/shared.test.ts +0 -0
- /package/{templates → template/packages}/shared/jest.config.js +0 -0
- /package/{templates → template/packages}/shared/src/components/index.ts +0 -0
- /package/{templates → template/packages}/shared/src/index.ts +0 -0
- /package/{templates → template/packages}/shared/src/trpc/client.ts +0 -0
- /package/{templates → template/packages}/shared/tsconfig.json +0 -0
- /package/{templates → template/packages}/web/README.md +0 -0
- /package/{templates → template/packages}/web/__tests__/App.test.tsx +0 -0
- /package/{templates → template/packages}/web/__tests__/components.test.tsx +0 -0
- /package/{templates → template/packages}/web/index.html +0 -0
- /package/{templates → template/packages}/web/jest.config.js +0 -0
- /package/{templates → template/packages}/web/jest.setup.js +0 -0
- /package/{templates → template/packages}/web/src/App-with-trpc.tsx +0 -0
- /package/{templates → template/packages}/web/src/components/TestDemo.tsx +0 -0
- /package/{templates → template/packages}/web/src/main.tsx +0 -0
- /package/{templates → template/packages}/web/src/utils/trpc.ts +0 -0
- /package/{templates → template/packages}/web/tsconfig.json +0 -0
- /package/{templates → template/packages}/web/vite.config.ts +0 -0
- /package/{templates/workspace → template}/setup.sh +0 -0
- /package/{templates/workspace → template}/tsconfig.json +0 -0
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.generateWorkspace = generateWorkspace;
|
|
40
|
-
const path_1 = __importDefault(require("path"));
|
|
41
|
-
const fs = __importStar(require("fs-extra"));
|
|
42
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
43
|
-
const utils_1 = require("./utils");
|
|
44
|
-
async function generateWorkspace(options) {
|
|
45
|
-
const { name, directory, skipInstall, figmaToken } = options;
|
|
46
|
-
if (!(0, utils_1.validateProjectName)(name)) {
|
|
47
|
-
throw new Error(`Invalid project name: ${name}`);
|
|
48
|
-
}
|
|
49
|
-
console.log(chalk_1.default.blue(`🏗️ Creating Idealyst workspace: ${name}`));
|
|
50
|
-
const projectPath = path_1.default.join(directory, name);
|
|
51
|
-
const templatePath = (0, utils_1.getTemplatePath)('workspace');
|
|
52
|
-
const templateData = (0, utils_1.getTemplateData)(name, `Idealyst Framework monorepo workspace`);
|
|
53
|
-
await (0, utils_1.copyTemplate)(templatePath, projectPath, templateData);
|
|
54
|
-
// Make figma-mcp.sh executable
|
|
55
|
-
const figmaMcpScript = path_1.default.join(projectPath, '.devcontainer', 'figma-mcp.sh');
|
|
56
|
-
if (await fs.pathExists(figmaMcpScript)) {
|
|
57
|
-
await fs.chmod(figmaMcpScript, '755');
|
|
58
|
-
}
|
|
59
|
-
// Always create .devcontainer/.env file (even if no token provided)
|
|
60
|
-
const devcontainerDir = path_1.default.join(projectPath, '.devcontainer');
|
|
61
|
-
await fs.ensureDir(devcontainerDir);
|
|
62
|
-
const envPath = path_1.default.join(devcontainerDir, '.env');
|
|
63
|
-
const envContent = figmaToken
|
|
64
|
-
? `# Figma Integration\nFIGMA_ACCESS_TOKEN=${figmaToken.trim()}\n`
|
|
65
|
-
: `# Figma Integration\nFIGMA_ACCESS_TOKEN=\n`;
|
|
66
|
-
await fs.writeFile(envPath, envContent);
|
|
67
|
-
await (0, utils_1.installDependencies)(projectPath, skipInstall);
|
|
68
|
-
console.log(chalk_1.default.green('✅ Workspace created successfully!'));
|
|
69
|
-
console.log(chalk_1.default.blue('📋 Workspace includes:'));
|
|
70
|
-
console.log(chalk_1.default.white(' • Yarn workspace configuration'));
|
|
71
|
-
console.log(chalk_1.default.white(' • Idealyst packages (theme, components, navigation)'));
|
|
72
|
-
console.log(chalk_1.default.white(' • TypeScript configuration'));
|
|
73
|
-
console.log(chalk_1.default.white(' • Build scripts'));
|
|
74
|
-
console.log(chalk_1.default.white(' • Version management scripts'));
|
|
75
|
-
if (figmaToken) {
|
|
76
|
-
console.log(chalk_1.default.green('🎨 Figma MCP server configured and ready!'));
|
|
77
|
-
console.log(chalk_1.default.blue(' Server will be available at http://localhost:3333'));
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
console.log(chalk_1.default.yellow('💡 Tip: Add Figma integration later by editing .devcontainer/.env'));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=workspace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../src/generators/workspace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,8CAiDC;AAvDD,gDAAwB;AACxB,6CAA+B;AAC/B,kDAA0B;AAE1B,mCAAmH;AAE5G,KAAK,UAAU,iBAAiB,CAAC,OAA+B;IACrE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAE7D,IAAI,CAAC,IAAA,2BAAmB,EAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAC,CAAC;IAEpE,MAAM,WAAW,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC/C,MAAM,YAAY,GAAG,IAAA,uBAAe,EAAC,WAAW,CAAC,CAAC;IAElD,MAAM,YAAY,GAAG,IAAA,uBAAe,EAAC,IAAI,EAAE,uCAAuC,CAAC,CAAC;IAEpF,MAAM,IAAA,oBAAY,EAAC,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;IAE5D,+BAA+B;IAC/B,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IAC/E,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;QACxC,MAAM,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,oEAAoE;IACpE,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAChE,MAAM,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAEpC,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACnD,MAAM,UAAU,GAAG,UAAU;QAC3B,CAAC,CAAC,2CAA2C,UAAU,CAAC,IAAI,EAAE,IAAI;QAClE,CAAC,CAAC,4CAA4C,CAAC;IAEjD,MAAM,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAExC,MAAM,IAAA,2BAAmB,EAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC,CAAC;IAClF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAE3D,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC,CAAC;QACtE,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC,CAAC;IAClF,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,mEAAmE,CAAC,CAAC,CAAC;IACjG,CAAC;AACH,CAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NavigatorParam } from '@idealyst/navigation';
|
|
3
|
-
import { Screen, Text, View, Icon } from '@idealyst/components';
|
|
4
|
-
import { HelloWorld } from '../components/HelloWorld';
|
|
5
|
-
|
|
6
|
-
const HomeScreen = () => (
|
|
7
|
-
<Screen>
|
|
8
|
-
<View spacing="lg">
|
|
9
|
-
<Text size="xl" weight="bold">Home</Text>
|
|
10
|
-
<Text size="md">Welcome to your {{projectName}} app!</Text>
|
|
11
|
-
<View spacing="md" style={{ marginTop: 24 }}>
|
|
12
|
-
<Text size="sm">
|
|
13
|
-
This app uses tab navigation. Navigate between tabs using the bottom bar on mobile or the top tabs on web.
|
|
14
|
-
</Text>
|
|
15
|
-
</View>
|
|
16
|
-
|
|
17
|
-
{/* API Testing Component */}
|
|
18
|
-
<View spacing="md" style={{ marginTop: 32 }}>
|
|
19
|
-
<Text size="md" weight="semibold">API Test</Text>
|
|
20
|
-
<HelloWorld name="{{projectName}}" />
|
|
21
|
-
</View>
|
|
22
|
-
</View>
|
|
23
|
-
</Screen>
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
const ProfileScreen = () => (
|
|
27
|
-
<Screen>
|
|
28
|
-
<View spacing="lg">
|
|
29
|
-
<Text size="xl" weight="bold">Profile</Text>
|
|
30
|
-
<Text size="md">User profile and account settings</Text>
|
|
31
|
-
<View spacing="md" style={{ marginTop: 24 }}>
|
|
32
|
-
<Text size="sm">
|
|
33
|
-
Manage your account details and preferences here.
|
|
34
|
-
</Text>
|
|
35
|
-
</View>
|
|
36
|
-
</View>
|
|
37
|
-
</Screen>
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
const SettingsScreen = () => (
|
|
41
|
-
<Screen>
|
|
42
|
-
<View spacing="lg">
|
|
43
|
-
<Text size="xl" weight="bold">Settings</Text>
|
|
44
|
-
<Text size="md">App configuration and preferences</Text>
|
|
45
|
-
<View spacing="md" style={{ marginTop: 24 }}>
|
|
46
|
-
<Text size="sm">
|
|
47
|
-
Customize your app experience with various settings and options.
|
|
48
|
-
</Text>
|
|
49
|
-
</View>
|
|
50
|
-
</View>
|
|
51
|
-
</Screen>
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
const AppRouter: NavigatorParam = {
|
|
55
|
-
type: 'navigator',
|
|
56
|
-
path: '/',
|
|
57
|
-
layout: 'tab',
|
|
58
|
-
routes: [
|
|
59
|
-
{
|
|
60
|
-
type: 'screen',
|
|
61
|
-
path: '/',
|
|
62
|
-
component: HomeScreen,
|
|
63
|
-
options: {
|
|
64
|
-
title: 'Home',
|
|
65
|
-
tabBarLabel: 'Home',
|
|
66
|
-
tabBarIcon: ({ focused, size }) => (
|
|
67
|
-
<Icon name="home" color={focused ? 'blue' : 'gray'} size={size || 24} />
|
|
68
|
-
),
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: 'screen',
|
|
73
|
-
path: '/profile',
|
|
74
|
-
component: ProfileScreen,
|
|
75
|
-
options: {
|
|
76
|
-
title: 'Profile',
|
|
77
|
-
tabBarLabel: 'Profile',
|
|
78
|
-
tabBarIcon: ({ focused, size }) => (
|
|
79
|
-
<Icon name="account" color={focused ? 'blue' : 'gray'} size={size || 24} />
|
|
80
|
-
),
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: 'screen',
|
|
85
|
-
path: '/settings',
|
|
86
|
-
component: SettingsScreen,
|
|
87
|
-
options: {
|
|
88
|
-
title: 'Settings',
|
|
89
|
-
tabBarLabel: 'Settings',
|
|
90
|
-
tabBarIcon: ({ focused, size }) => (
|
|
91
|
-
<Icon name="cog" color={focused ? 'blue' : 'gray'} size={size || 24} />
|
|
92
|
-
),
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export default AppRouter;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{packageName}}",
|
|
3
|
-
"version": "{{version}}",
|
|
4
|
-
"description": "{{description}}",
|
|
5
|
-
"private": true,
|
|
6
|
-
"workspaces": [
|
|
7
|
-
"packages/*"
|
|
8
|
-
],
|
|
9
|
-
"packageManager": "yarn@4.1.0",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"test": "yarn workspaces foreach --include '@/*' run test",
|
|
12
|
-
"test:watch": "yarn workspaces foreach --include '@/*' run test:watch",
|
|
13
|
-
"test:coverage": "yarn workspaces foreach --include '@/*' run test:coverage",
|
|
14
|
-
"test:ci": "yarn workspaces foreach --include '@/*' --parallel run test --passWithNoTests",
|
|
15
|
-
"test:runner": "node scripts/test-runner.js",
|
|
16
|
-
"test:help": "node scripts/test-runner.js help",
|
|
17
|
-
"publish:all": "yarn workspaces foreach --include '@/*' npm publish",
|
|
18
|
-
"version:patch": "yarn workspaces foreach --include '@/*' version patch",
|
|
19
|
-
"version:minor": "yarn workspaces foreach --include '@/*' version minor",
|
|
20
|
-
"version:major": "yarn workspaces foreach --include '@/*' version major",
|
|
21
|
-
"build:all": "yarn workspaces foreach --include '@/*' run build",
|
|
22
|
-
"lint:all": "yarn workspaces foreach --include '@/*' run lint",
|
|
23
|
-
"type-check:all": "yarn workspaces foreach --include '@/*' run type-check"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@babel/core": "^7.28.0",
|
|
27
|
-
"@babel/preset-env": "^7.28.0",
|
|
28
|
-
"@babel/preset-react": "^7.27.1",
|
|
29
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
30
|
-
"@types/jest": "^29.5.12",
|
|
31
|
-
"jest": "^29.7.0",
|
|
32
|
-
"ts-jest": "^29.1.2",
|
|
33
|
-
"typescript": "^5.0.0"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{packageName}}",
|
|
3
|
-
"version": "{{version}}",
|
|
4
|
-
"description": "{{description}}",
|
|
5
|
-
"private": true,
|
|
6
|
-
"workspaces": [
|
|
7
|
-
"packages/*"
|
|
8
|
-
],
|
|
9
|
-
"packageManager": "yarn@4.1.0",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"test": "yarn workspaces foreach --include '@/*' run test",
|
|
12
|
-
"test:watch": "yarn workspaces foreach --include '@/*' run test:watch",
|
|
13
|
-
"test:coverage": "yarn workspaces foreach --include '@/*' run test:coverage",
|
|
14
|
-
"test:ci": "yarn workspaces foreach --include '@/*' --parallel run test --passWithNoTests",
|
|
15
|
-
"test:runner": "node scripts/test-runner.js",
|
|
16
|
-
"test:help": "node scripts/test-runner.js help",
|
|
17
|
-
"publish:all": "yarn workspaces foreach --include '@/*' npm publish",
|
|
18
|
-
"version:patch": "yarn workspaces foreach --include '@/*' version patch",
|
|
19
|
-
"version:minor": "yarn workspaces foreach --include '@/*' version minor",
|
|
20
|
-
"version:major": "yarn workspaces foreach --include '@/*' version major",
|
|
21
|
-
"build:all": "yarn workspaces foreach --include '@/*' run build",
|
|
22
|
-
"lint:all": "yarn workspaces foreach --include '@/*' run lint",
|
|
23
|
-
"type-check:all": "yarn workspaces foreach --include '@/*' run type-check"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@babel/core": "^7.28.0",
|
|
27
|
-
"@babel/preset-env": "^7.28.0",
|
|
28
|
-
"@babel/preset-react": "^7.27.1",
|
|
29
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
30
|
-
"@idealyst/mcp-server": "^{{idealystVersion}}",
|
|
31
|
-
"@mobilenext/mobile-mcp": "^0.2.0",
|
|
32
|
-
"@playwright/mcp": "^0.2.1",
|
|
33
|
-
"@types/jest": "^29.5.12",
|
|
34
|
-
"jest": "^29.7.0",
|
|
35
|
-
"ts-jest": "^29.1.2",
|
|
36
|
-
"typescript": "^5.0.0"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{templates/native → template/packages/mobile}/src/App-with-trpc-and-shared.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{templates/web/src/App-with-trpc-and-shared.tsx → dist/template/packages/web/src/App.tsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|