@teamvelix/cli 5.3.3 → 5.3.5
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/LICENSE +21 -0
- package/dist/{build-R6YPQMKQ.js → build-54KS3AON.js} +3 -3
- package/dist/{chunk-QVHVWNX3.js → chunk-PAUSXGWF.js} +4 -2
- package/dist/{chunk-QVHVWNX3.js.map → chunk-PAUSXGWF.js.map} +1 -1
- package/dist/{create-ECJXHPS4.js → create-UWF6XCR3.js} +3 -3
- package/dist/{dev-H632BVX7.js → dev-HZLANTXK.js} +3 -3
- package/dist/{doctor-4ZBGISX6.js → doctor-GBSK3EJ3.js} +3 -3
- package/dist/{generate-F5PULUKX.js → generate-MZ7LZO4K.js} +3 -3
- package/dist/index.js +11 -11
- package/dist/{pack-IHVEY27S.js → pack-OXFEH5L5.js} +5 -5
- package/dist/{pack-IHVEY27S.js.map → pack-OXFEH5L5.js.map} +1 -1
- package/dist/src-BXA4CRFC.js +822 -0
- package/dist/src-BXA4CRFC.js.map +1 -0
- package/dist/{ui-2KJQ4SG6.js → ui-CFSX57E3.js} +3 -3
- package/package.json +8 -6
- package/dist/chunk-7D4SUZUM.js +0 -38
- package/dist/chunk-7D4SUZUM.js.map +0 -1
- package/dist/src-YLSZ2QML.js +0 -8173
- package/dist/src-YLSZ2QML.js.map +0 -1
- /package/dist/{build-R6YPQMKQ.js.map → build-54KS3AON.js.map} +0 -0
- /package/dist/{create-ECJXHPS4.js.map → create-UWF6XCR3.js.map} +0 -0
- /package/dist/{dev-H632BVX7.js.map → dev-HZLANTXK.js.map} +0 -0
- /package/dist/{doctor-4ZBGISX6.js.map → doctor-GBSK3EJ3.js.map} +0 -0
- /package/dist/{generate-F5PULUKX.js.map → generate-MZ7LZO4K.js.map} +0 -0
- /package/dist/{ui-2KJQ4SG6.js.map → ui-CFSX57E3.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../velix-pack/src/index.ts","../../velix-pack/src/resolver/index.ts","../../velix-pack/src/resolver/aliases.ts","../../velix-pack/src/graph/module-graph.ts","../../velix-pack/src/graph/module.ts","../../velix-pack/src/graph/boundary.ts","../../velix-pack/src/transform/index.ts","../../velix-pack/src/transform/typescript.ts","../../velix-pack/src/transform/css.ts","../../velix-pack/src/transform/json.ts","../../velix-pack/src/cache/fs-cache.ts","../../velix-pack/src/cache/index.ts","../../velix-pack/src/bundler/index.ts","../../velix-pack/src/bundler/chunk.ts","../../velix-pack/src/bundler/code-splitter.ts","../../velix-pack/src/watcher/index.ts","../../velix-pack/src/hmr/index.ts","../../velix-pack/src/analyzer/index.ts"],"sourcesContent":["import path from 'path';\nimport fs from 'fs';\nimport { Resolver } from './resolver/index.js';\nimport { ModuleGraph } from './graph/module-graph.js';\nimport { TransformPipeline } from './transform/index.js';\nimport { CacheManager } from './cache/index.js';\nimport { Bundler } from './bundler/index.js';\nimport { FileWatcher } from './watcher/index.js';\nimport { HMRBridge } from './hmr/index.js';\nimport { formatBuildStats } from './analyzer/index.js';\nimport { PackOptions, BuildStats } from './types.js';\n\nexport * from './types.js';\nexport { Resolver } from './resolver/index.js';\nexport { ModuleGraph } from './graph/module-graph.js';\nexport { CacheManager } from './cache/index.js';\nexport { formatBuildStats } from './analyzer/index.js';\n\nexport class VelixPack {\n private options: Required<PackOptions>;\n private resolver: Resolver;\n private moduleGraph: ModuleGraph;\n private pipeline: TransformPipeline;\n private cache: CacheManager;\n private bundler: Bundler;\n private watcher: FileWatcher | null = null;\n private hmr: HMRBridge = new HMRBridge();\n private stats: BuildStats = {\n duration: 0,\n modulesCount: 0,\n chunksCount: 0,\n cacheHits: 0,\n cacheMisses: 0,\n serverModulesCount: 0,\n clientModulesCount: 0,\n sharedModulesCount: 0,\n initialJsSize: 0,\n asyncJsSize: 0,\n };\n\n constructor(options: PackOptions = {}) {\n const projectRoot = options.projectRoot || process.cwd();\n this.options = {\n projectRoot,\n appDir: options.appDir || path.join(projectRoot, 'app'),\n outDir: options.outDir || path.join(projectRoot, '.velix'),\n mode: options.mode || 'development',\n minify: options.minify ?? false,\n sourcemap: options.sourcemap ?? true,\n };\n\n this.resolver = new Resolver({ projectRoot });\n this.moduleGraph = new ModuleGraph(projectRoot);\n this.pipeline = new TransformPipeline(this.resolver);\n this.cache = new CacheManager(projectRoot);\n this.bundler = new Bundler({\n projectRoot,\n outDir: this.options.outDir,\n minify: this.options.minify,\n sourcemap: this.options.sourcemap,\n });\n }\n\n public async build(): Promise<BuildStats> {\n const startTime = Date.now();\n\n // 1. Discover entries\n const sourceFiles = this.findSourceFiles(this.options.appDir);\n const serverFiles = fs.existsSync(path.join(this.options.projectRoot, 'server'))\n ? this.findSourceFiles(path.join(this.options.projectRoot, 'server'))\n : [];\n const allFiles = Array.from(new Set([...sourceFiles, ...serverFiles]));\n\n // 2. Build graph & transform modules\n for (const filePath of allFiles) {\n await this.processFile(filePath);\n }\n\n // 3. Check boundaries\n const violations = this.moduleGraph.checkBoundaries();\n if (violations.length > 0) {\n for (const v of violations) {\n console.error(`ERROR [VELIX_PACK]\\nServer module imported from client module.\\nclient: ${v.clientModule}\\nserver: ${v.serverModule}\\n`);\n }\n }\n\n // 4. Bundle & split chunks\n const chunks = await this.bundler.bundle(this.moduleGraph);\n\n // 5. Gather statistics\n const cacheStats = this.cache.getStats();\n const modules = Array.from(this.moduleGraph.getAllModules().values());\n\n this.stats = {\n duration: Date.now() - startTime,\n modulesCount: modules.length,\n chunksCount: chunks.length,\n cacheHits: cacheStats.hits,\n cacheMisses: cacheStats.misses,\n serverModulesCount: modules.filter(m => m.type === 'server').length,\n clientModulesCount: modules.filter(m => m.type === 'client').length,\n sharedModulesCount: modules.filter(m => m.type === 'shared').length,\n initialJsSize: chunks.filter(c => c.isInitial).reduce((acc, c) => acc + c.size, 0),\n asyncJsSize: chunks.filter(c => !c.isInitial).reduce((acc, c) => acc + c.size, 0),\n };\n\n return this.stats;\n }\n\n public watch(onRebuild?: (affectedModules: string[]) => void): FileWatcher {\n const serverDir = path.join(this.options.projectRoot, 'server');\n const watchPaths = [this.options.appDir];\n if (fs.existsSync(serverDir)) watchPaths.push(serverDir);\n\n this.watcher = new FileWatcher(watchPaths);\n this.watcher.start({\n onChange: async (filePath) => {\n const affected = await this.rebuildIncremental(filePath);\n this.hmr.notifyFileChanged(filePath, Array.from(affected));\n if (onRebuild) onRebuild(Array.from(affected));\n },\n onAdd: async (filePath) => {\n await this.processFile(filePath);\n const affected = this.moduleGraph.getAffectedModules(filePath);\n if (onRebuild) onRebuild(Array.from(affected));\n },\n onUnlink: (filePath) => {\n const affected = this.moduleGraph.removeModule(filePath);\n this.cache.invalidate(this.moduleGraph.toRelativeId(filePath));\n if (onRebuild) onRebuild(Array.from(affected));\n },\n });\n\n return this.watcher;\n }\n\n private async rebuildIncremental(filePath: string): Promise<Set<string>> {\n await this.processFile(filePath);\n return this.moduleGraph.getAffectedModules(filePath);\n }\n\n private async processFile(filePath: string): Promise<void> {\n const relativeId = this.moduleGraph.toRelativeId(filePath);\n\n // Transform\n const transformResult = await this.pipeline.transform(filePath);\n\n // Check cache\n let cached = this.cache.get(relativeId, transformResult.hash);\n if (!cached) {\n cached = {\n hash: transformResult.hash,\n code: transformResult.code,\n imports: transformResult.imports,\n type: transformResult.type,\n timestamp: Date.now(),\n };\n this.cache.set(relativeId, cached);\n }\n\n // Add to graph\n const mod = this.moduleGraph.addModule(filePath, transformResult.type);\n mod.hash = transformResult.hash;\n\n // Update dependencies graph\n this.moduleGraph.updateDependencies(filePath, transformResult.imports);\n\n // Recursively process unvisited imports\n for (const importPath of transformResult.imports) {\n if (!this.moduleGraph.getModuleByPath(importPath)) {\n if (fs.existsSync(importPath)) {\n await this.processFile(importPath);\n }\n }\n }\n }\n\n private findSourceFiles(dir: string): string[] {\n const results: string[] = [];\n if (!fs.existsSync(dir)) return results;\n\n const entries = fs.readdirSync(dir, { withFileTypes: true });\n for (const entry of entries) {\n const fullPath = path.join(dir, entry.name);\n if (entry.isDirectory()) {\n if (entry.name !== 'node_modules' && entry.name !== '.velix' && entry.name !== 'dist') {\n results.push(...this.findSourceFiles(fullPath));\n }\n } else if (/\\.(tsx?|jsx?)$/.test(entry.name)) {\n results.push(fullPath);\n }\n }\n\n return results;\n }\n\n public getHMR(): HMRBridge {\n return this.hmr;\n }\n\n public getStats(): BuildStats {\n return this.stats;\n }\n}\n","import fs from 'fs';\nimport path from 'path';\nimport { loadPathAliases, PathAlias } from './aliases.js';\n\nexport interface ResolverOptions {\n projectRoot: string;\n extensions?: string[];\n}\n\nexport class Resolver {\n private projectRoot: string;\n private aliases: PathAlias[];\n private extensions: string[];\n\n constructor(options: ResolverOptions) {\n this.projectRoot = options.projectRoot;\n this.aliases = loadPathAliases(this.projectRoot);\n this.extensions = options.extensions || ['.tsx', '.ts', '.jsx', '.js', '.json', '.css'];\n }\n\n public resolve(importPath: string, importerPath: string): string | null {\n // 1. External packages (node_modules or bare specifiers)\n if (!importPath.startsWith('.') && !importPath.startsWith('/') && !this.isAliasMatch(importPath)) {\n return null; // External package\n }\n\n // 2. Resolve alias\n let targetPath = importPath;\n for (const alias of this.aliases) {\n if (importPath === alias.prefix || importPath.startsWith(alias.prefix + '/')) {\n targetPath = importPath.replace(alias.prefix, alias.target);\n break;\n }\n }\n\n // 3. Absolute vs relative resolution\n let absolutePath = targetPath;\n if (!path.isAbsolute(targetPath)) {\n absolutePath = path.resolve(path.dirname(importerPath), targetPath);\n }\n\n // 4. Check if exact file exists\n if (fs.existsSync(absolutePath) && fs.statSync(absolutePath).isFile()) {\n return absolutePath;\n }\n\n // 4b. Handle ESM .js -> .ts / .tsx mapping\n if (absolutePath.endsWith('.js')) {\n const tsPath = absolutePath.slice(0, -3) + '.ts';\n const tsxPath = absolutePath.slice(0, -3) + '.tsx';\n if (fs.existsSync(tsPath) && fs.statSync(tsPath).isFile()) return tsPath;\n if (fs.existsSync(tsxPath) && fs.statSync(tsxPath).isFile()) return tsxPath;\n }\n\n // 5. Try extensions\n for (const ext of this.extensions) {\n const pathWithExt = absolutePath + ext;\n if (fs.existsSync(pathWithExt) && fs.statSync(pathWithExt).isFile()) {\n return pathWithExt;\n }\n }\n\n // 6. Try index file\n for (const ext of this.extensions) {\n const indexPath = path.join(absolutePath, `index${ext}`);\n if (fs.existsSync(indexPath) && fs.statSync(indexPath).isFile()) {\n return indexPath;\n }\n }\n\n return null;\n }\n\n private isAliasMatch(importPath: string): boolean {\n return this.aliases.some(alias => importPath === alias.prefix || importPath.startsWith(alias.prefix + '/'));\n }\n}\n","import fs from 'fs';\nimport path from 'path';\n\nexport interface PathAlias {\n prefix: string;\n target: string;\n}\n\nexport function loadPathAliases(projectRoot: string): PathAlias[] {\n const tsconfigPath = path.join(projectRoot, 'tsconfig.json');\n if (!fs.existsSync(tsconfigPath)) return [];\n\n try {\n const raw = fs.readFileSync(tsconfigPath, 'utf-8');\n // Strip comments simple regex for json\n const jsonStr = raw.replace(/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/.*/g, '');\n const tsconfig = JSON.parse(jsonStr);\n const compilerOptions = tsconfig?.compilerOptions || {};\n const paths = compilerOptions.paths || {};\n const baseUrl = compilerOptions.baseUrl ? path.resolve(projectRoot, compilerOptions.baseUrl) : projectRoot;\n\n const aliases: PathAlias[] = [];\n for (const [key, value] of Object.entries(paths)) {\n if (Array.isArray(value) && value.length > 0) {\n const prefix = key.replace(/\\/\\*$/, '');\n const targetRelative = (value[0] as string).replace(/\\/\\*$/, '');\n aliases.push({\n prefix,\n target: path.resolve(baseUrl, targetRelative),\n });\n }\n }\n\n return aliases;\n } catch {\n return [];\n }\n}\n","import path from 'path';\nimport { Module } from './module.js';\nimport { ModuleNode, ModuleType, BoundaryViolation } from '../types.js';\nimport { checkBoundaryViolations } from './boundary.js';\n\nexport class ModuleGraph {\n private modules: Map<string, Module> = new Map();\n private projectRoot: string;\n\n constructor(projectRoot: string) {\n this.projectRoot = projectRoot;\n }\n\n public getModule(id: string): Module | undefined {\n return this.modules.get(id);\n }\n\n public getModuleByPath(filePath: string): Module | undefined {\n const id = this.toRelativeId(filePath);\n return this.modules.get(id);\n }\n\n public addModule(filePath: string, type: ModuleType = 'shared'): Module {\n const id = this.toRelativeId(filePath);\n let mod = this.modules.get(id);\n if (!mod) {\n mod = new Module(id, filePath, type);\n this.modules.set(id, mod);\n } else {\n mod.type = type;\n }\n return mod;\n }\n\n public removeModule(filePath: string): Set<string> {\n const id = this.toRelativeId(filePath);\n const mod = this.modules.get(id);\n const affectedDependents = new Set<string>();\n\n if (mod) {\n // Collect dependents\n for (const depId of mod.dependents) {\n affectedDependents.add(depId);\n const depMod = this.modules.get(depId);\n if (depMod) {\n depMod.removeDependency(id);\n }\n }\n\n // Cleanup dependencies\n for (const depId of mod.dependencies) {\n const depMod = this.modules.get(depId);\n if (depMod) {\n depMod.removeDependent(id);\n }\n }\n\n this.modules.delete(id);\n }\n\n return affectedDependents;\n }\n\n public updateDependencies(filePath: string, dependencyPaths: string[]): void {\n const id = this.toRelativeId(filePath);\n const mod = this.getModule(id);\n if (!mod) return;\n\n const newDepIds = new Set(dependencyPaths.map(p => this.toRelativeId(p)));\n\n // Remove old dependencies no longer imported\n for (const oldDepId of Array.from(mod.dependencies)) {\n if (!newDepIds.has(oldDepId)) {\n mod.removeDependency(oldDepId);\n const depMod = this.modules.get(oldDepId);\n if (depMod) {\n depMod.removeDependent(id);\n }\n }\n }\n\n // Add new dependencies\n for (const newDepId of newDepIds) {\n if (!mod.dependencies.has(newDepId)) {\n mod.addDependency(newDepId);\n const depMod = this.modules.get(newDepId);\n if (depMod) {\n depMod.addDependent(id);\n }\n }\n }\n }\n\n /**\n * Finds all affected modules recursively when a file changes\n */\n public getAffectedModules(filePath: string): Set<string> {\n const startId = this.toRelativeId(filePath);\n const affected = new Set<string>();\n const queue = [startId];\n\n while (queue.length > 0) {\n const currentId = queue.shift()!;\n if (!affected.has(currentId)) {\n affected.add(currentId);\n const mod = this.modules.get(currentId);\n if (mod) {\n for (const dependentId of mod.dependents) {\n queue.push(dependentId);\n }\n }\n }\n }\n\n return affected;\n }\n\n public getAllModules(): Map<string, Module> {\n return this.modules;\n }\n\n public checkBoundaries(): BoundaryViolation[] {\n return checkBoundaryViolations(this.modules);\n }\n\n public toRelativeId(filePath: string): string {\n const relative = path.relative(this.projectRoot, filePath);\n return relative.replace(/\\\\/g, '/');\n }\n\n public clear(): void {\n this.modules.clear();\n }\n}\n","import { ModuleNode, ModuleType } from '../types.js';\n\nexport class Module implements ModuleNode {\n public id: string;\n public path: string;\n public type: ModuleType;\n public dependencies: Set<string> = new Set();\n public dependents: Set<string> = new Set();\n public hash?: string;\n public lastModified?: number;\n public isEntry?: boolean;\n\n constructor(id: string, path: string, type: ModuleType = 'shared') {\n this.id = id;\n this.path = path;\n this.type = type;\n }\n\n public addDependency(depId: string): void {\n this.dependencies.add(depId);\n }\n\n public removeDependency(depId: string): void {\n this.dependencies.delete(depId);\n }\n\n public addDependent(dependentId: string): void {\n this.dependents.add(dependentId);\n }\n\n public removeDependent(dependentId: string): void {\n this.dependents.delete(dependentId);\n }\n}\n","import path from 'path';\nimport { ModuleNode, BoundaryViolation } from '../types.js';\n\n/**\n * Checks if a module is classified as server-only by convention or path\n */\nexport function isServerModule(filePath: string, content?: string): boolean {\n const normalized = filePath.replace(/\\\\/g, '/');\n if (normalized.includes('/server/') || normalized.startsWith('server/')) return true;\n if (content) {\n const firstLines = content.split('\\n').slice(0, 5).map(l => l.trim());\n if (firstLines.some(l => l === \"'use server'\" || l === '\"use server\"')) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Checks if a module is classified as client-only\n */\nexport function isClientModule(filePath: string, content?: string): boolean {\n if (content) {\n const firstLines = content.split('\\n').slice(0, 5).map(l => l.trim());\n if (firstLines.some(l => l === \"'use client'\" || l === '\"use client\"' || l === \"'use island'\" || l === '\"use island\"')) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Validates server/client boundary rules across the module graph\n */\nexport function checkBoundaryViolations(modules: Map<string, ModuleNode>): BoundaryViolation[] {\n const violations: BoundaryViolation[] = [];\n\n for (const [id, mod] of modules.entries()) {\n if (mod.type === 'client') {\n for (const depId of mod.dependencies) {\n const dep = modules.get(depId);\n if (dep && dep.type === 'server') {\n violations.push({\n clientModule: id,\n serverModule: depId,\n importStatement: `Import of server module \"${depId}\" from client module \"${id}\"`,\n });\n }\n }\n }\n }\n\n return violations;\n}\n","import fs from 'fs';\nimport path from 'path';\nimport crypto from 'crypto';\nimport { Resolver } from '../resolver/index.js';\nimport { transformTypeScript } from './typescript.js';\nimport { transformCSS } from './css.js';\nimport { transformJSON } from './json.js';\nimport { TransformResult } from '../types.js';\n\nexport class TransformPipeline {\n private resolver: Resolver;\n\n constructor(resolver: Resolver) {\n this.resolver = resolver;\n }\n\n public async transform(filePath: string): Promise<TransformResult> {\n const content = fs.readFileSync(filePath, 'utf-8');\n const hash = crypto.createHash('md5').update(content).digest('hex');\n const ext = path.extname(filePath);\n\n if (ext === '.ts' || ext === '.tsx' || ext === '.js' || ext === '.jsx') {\n const result = await transformTypeScript(filePath, content, this.resolver);\n return { ...result, hash };\n } else if (ext === '.css') {\n const result = await transformCSS(filePath, content);\n return { ...result, hash };\n } else if (ext === '.json') {\n const result = await transformJSON(filePath, content);\n return { ...result, hash };\n }\n\n return {\n code: content,\n imports: [],\n type: 'shared',\n hash,\n };\n }\n}\n","import esbuild from 'esbuild';\nimport fs from 'fs';\nimport path from 'path';\nimport { Resolver } from '../resolver/index.js';\nimport { isClientModule, isServerModule } from '../graph/boundary.js';\nimport { ModuleType } from '../types.js';\n\nexport interface TransformResultTS {\n code: string;\n map?: string;\n imports: string[];\n type: ModuleType;\n}\n\nexport async function transformTypeScript(\n filePath: string,\n content: string,\n resolver: Resolver\n): Promise<TransformResultTS> {\n const ext = path.extname(filePath);\n const loader: esbuild.Loader = ext === '.tsx' ? 'tsx' : ext === '.jsx' ? 'jsx' : 'ts';\n\n const result = await esbuild.transform(content, {\n loader,\n target: 'es2022',\n format: 'esm',\n jsx: 'automatic',\n sourcemap: 'inline',\n sourcefile: filePath,\n });\n\n // Extract imports from code using regex or AST scan\n const imports = extractImports(content, filePath, resolver);\n\n // Determine type\n let type: ModuleType = 'shared';\n if (isServerModule(filePath, content)) {\n type = 'server';\n } else if (isClientModule(filePath, content)) {\n type = 'client';\n }\n\n return {\n code: result.code,\n map: result.map,\n imports,\n type,\n };\n}\n\nexport function extractImports(content: string, filePath: string, resolver: Resolver): string[] {\n const imports: string[] = [];\n // Regex matches static import statements & dynamic import()\n const importRegex = /(?:import|export)\\s+(?:[\\s\\S]*?\\s+from\\s+)?['\"]([^'\"]+)['\"]|import\\s*\\(\\s*['\"]([^'\"]+)['\"]\\s*\\)/g;\n\n let match: RegExpExecArray | null;\n while ((match = importRegex.exec(content)) !== null) {\n const importPath = match[1] || match[2];\n if (importPath) {\n const resolved = resolver.resolve(importPath, filePath);\n if (resolved) {\n imports.push(resolved);\n }\n }\n }\n\n return Array.from(new Set(imports));\n}\n","import { ModuleType } from '../types.js';\n\nexport interface TransformResultCSS {\n code: string;\n imports: string[];\n type: ModuleType;\n}\n\nexport async function transformCSS(filePath: string, content: string): Promise<TransformResultCSS> {\n // CSS transform simply packages CSS or passes it along\n return {\n code: content,\n imports: [],\n type: 'shared',\n };\n}\n","import { ModuleType } from '../types.js';\n\nexport interface TransformResultJSON {\n code: string;\n imports: string[];\n type: ModuleType;\n}\n\nexport async function transformJSON(filePath: string, content: string): Promise<TransformResultJSON> {\n let code = '';\n try {\n const json = JSON.parse(content);\n code = `export default ${JSON.stringify(json)};`;\n } catch {\n code = `export default {};`;\n }\n\n return {\n code,\n imports: [],\n type: 'shared',\n };\n}\n","import fs from 'fs';\nimport path from 'path';\nimport { CacheEntry } from '../types.js';\n\nexport class FSCache {\n private cacheDir: string;\n private memoryCache: Map<string, CacheEntry> = new Map();\n\n constructor(projectRoot: string) {\n this.cacheDir = path.join(projectRoot, '.velix', 'cache', 'pack');\n this.ensureCacheDir();\n }\n\n private ensureCacheDir(): void {\n if (!fs.existsSync(this.cacheDir)) {\n fs.mkdirSync(this.cacheDir, { recursive: true });\n }\n }\n\n public get(id: string, currentHash: string): CacheEntry | null {\n // 1. Check memory cache first\n const mem = this.memoryCache.get(id);\n if (mem && mem.hash === currentHash) {\n return mem;\n }\n\n // 2. Check filesystem cache\n const safeFilename = encodeURIComponent(id) + '.json';\n const filePath = path.join(this.cacheDir, safeFilename);\n\n if (fs.existsSync(filePath)) {\n try {\n const raw = fs.readFileSync(filePath, 'utf-8');\n const entry: CacheEntry = JSON.parse(raw);\n if (entry.hash === currentHash) {\n this.memoryCache.set(id, entry);\n return entry;\n }\n } catch {\n // Ignored, corrupt entry will be overwritten\n }\n }\n\n return null;\n }\n\n public set(id: string, entry: CacheEntry): void {\n this.memoryCache.set(id, entry);\n\n const safeFilename = encodeURIComponent(id) + '.json';\n const filePath = path.join(this.cacheDir, safeFilename);\n\n try {\n this.ensureCacheDir();\n fs.writeFileSync(filePath, JSON.stringify(entry), 'utf-8');\n } catch {\n // Non-fatal cache write failure\n }\n }\n\n public invalidate(id: string): void {\n this.memoryCache.delete(id);\n const safeFilename = encodeURIComponent(id) + '.json';\n const filePath = path.join(this.cacheDir, safeFilename);\n if (fs.existsSync(filePath)) {\n try {\n fs.unlinkSync(filePath);\n } catch {}\n }\n }\n\n public clear(): void {\n this.memoryCache.clear();\n if (fs.existsSync(this.cacheDir)) {\n try {\n fs.rmSync(this.cacheDir, { recursive: true, force: true });\n this.ensureCacheDir();\n } catch {}\n }\n }\n}\n","import { FSCache } from './fs-cache.js';\nimport { CacheEntry } from '../types.js';\n\nexport class CacheManager {\n private fsCache: FSCache;\n private hits: number = 0;\n private misses: number = 0;\n\n constructor(projectRoot: string) {\n this.fsCache = new FSCache(projectRoot);\n }\n\n public get(id: string, currentHash: string): CacheEntry | null {\n const entry = this.fsCache.get(id, currentHash);\n if (entry) {\n this.hits++;\n return entry;\n }\n this.misses++;\n return null;\n }\n\n public set(id: string, entry: CacheEntry): void {\n this.fsCache.set(id, entry);\n }\n\n public invalidate(id: string): void {\n this.fsCache.invalidate(id);\n }\n\n public clear(): void {\n this.fsCache.clear();\n this.hits = 0;\n this.misses = 0;\n }\n\n public getStats() {\n return {\n hits: this.hits,\n misses: this.misses,\n hitRatio: this.hits + this.misses > 0 ? (this.hits / (this.hits + this.misses)) * 100 : 0,\n };\n }\n}\n","import esbuild from 'esbuild';\nimport path from 'path';\nimport fs from 'fs';\nimport { ModuleGraph } from '../graph/module-graph.js';\nimport { CodeSplitter } from './code-splitter.js';\nimport { Chunk } from './chunk.js';\n\nexport interface BundlerOptions {\n projectRoot: string;\n outDir: string;\n minify?: boolean;\n sourcemap?: boolean;\n}\n\nexport class Bundler {\n private projectRoot: string;\n private outDir: string;\n private minify: boolean;\n private sourcemap: boolean;\n\n constructor(options: BundlerOptions) {\n this.projectRoot = options.projectRoot;\n this.outDir = options.outDir;\n this.minify = options.minify ?? false;\n this.sourcemap = options.sourcemap ?? true;\n }\n\n public async bundle(moduleGraph: ModuleGraph): Promise<Chunk[]> {\n const splitter = new CodeSplitter(moduleGraph);\n const chunks = splitter.splitIntoChunks();\n\n const entryFiles = Array.from(moduleGraph.getAllModules().values())\n .map(m => m.path)\n .filter(p => fs.existsSync(p));\n\n if (entryFiles.length === 0) return chunks;\n\n const serverOutDir = path.join(this.outDir, 'server');\n const clientOutDir = path.join(this.outDir, 'client');\n\n if (!fs.existsSync(serverOutDir)) fs.mkdirSync(serverOutDir, { recursive: true });\n if (!fs.existsSync(clientOutDir)) fs.mkdirSync(clientOutDir, { recursive: true });\n\n // Bundle via esbuild\n await esbuild.build({\n entryPoints: entryFiles,\n outdir: serverOutDir,\n bundle: false,\n format: 'esm',\n platform: 'node',\n target: 'es2022',\n minify: this.minify,\n sourcemap: this.sourcemap,\n jsx: 'automatic',\n logLevel: 'silent',\n });\n\n return chunks;\n }\n}\n","export interface ChunkOptions {\n name: string;\n isInitial?: boolean;\n type: 'server' | 'client' | 'shared';\n}\n\nexport class Chunk {\n public name: string;\n public isInitial: boolean;\n public type: 'server' | 'client' | 'shared';\n public modules: Set<string> = new Set();\n public size: number = 0;\n\n constructor(options: ChunkOptions) {\n this.name = options.name;\n this.isInitial = options.isInitial ?? false;\n this.type = options.type;\n }\n\n public addModule(moduleId: string, moduleSize: number = 0): void {\n this.modules.add(moduleId);\n this.size += moduleSize;\n }\n}\n","import path from 'path';\nimport { ModuleGraph } from '../graph/module-graph.js';\nimport { Chunk } from './chunk.js';\n\nexport class CodeSplitter {\n private moduleGraph: ModuleGraph;\n\n constructor(moduleGraph: ModuleGraph) {\n this.moduleGraph = moduleGraph;\n }\n\n public splitIntoChunks(): Chunk[] {\n const chunks: Chunk[] = [];\n const allModules = Array.from(this.moduleGraph.getAllModules().values());\n\n const serverChunk = new Chunk({ name: 'server-bundle', isInitial: true, type: 'server' });\n const clientInitialChunk = new Chunk({ name: 'client-main', isInitial: true, type: 'client' });\n const routeChunksMap = new Map<string, Chunk>();\n\n for (const mod of allModules) {\n const estimatedSize = mod.path.length * 10; // rough estimation fallback\n\n if (mod.type === 'server') {\n serverChunk.addModule(mod.id, estimatedSize);\n } else {\n // Check if it's a route module in app/\n const isRoute = (mod.id.includes('app/') || mod.id.includes('app\\\\')) && (mod.id.endsWith('page.tsx') || mod.id.endsWith('page.jsx'));\n if (isRoute) {\n const normalizedId = mod.id.replace(/\\\\/g, '/');\n const routeName = normalizedId\n .replace(/^app\\//, '')\n .replace(/(?:^|\\/)page\\.[tj]sx?$/, '')\n .replace(/[\\/\\\\]/g, '_') || 'home';\n \n let chunk = routeChunksMap.get(routeName);\n if (!chunk) {\n chunk = new Chunk({ name: `route-${routeName}`, isInitial: false, type: 'client' });\n routeChunksMap.set(routeName, chunk);\n }\n chunk.addModule(mod.id, estimatedSize);\n } else {\n clientInitialChunk.addModule(mod.id, estimatedSize);\n }\n }\n }\n\n chunks.push(serverChunk);\n chunks.push(clientInitialChunk);\n for (const routeChunk of routeChunksMap.values()) {\n chunks.push(routeChunk);\n }\n\n return chunks;\n }\n}\n","import chokidar, { FSWatcher } from 'chokidar';\nimport path from 'path';\n\nexport interface WatcherEvents {\n onChange: (filePath: string) => void;\n onAdd: (filePath: string) => void;\n onUnlink: (filePath: string) => void;\n}\n\nexport class FileWatcher {\n private watcher: FSWatcher | null = null;\n private watchPaths: string[];\n\n constructor(watchPaths: string[]) {\n this.watchPaths = watchPaths;\n }\n\n public start(events: WatcherEvents): void {\n this.watcher = chokidar.watch(this.watchPaths, {\n ignored: /(^|[\\/\\\\])\\..|node_modules|\\.velix|dist/,\n persistent: true,\n ignoreInitial: true,\n });\n\n this.watcher.on('change', (filePath) => events.onChange(path.resolve(filePath)));\n this.watcher.on('add', (filePath) => events.onAdd(path.resolve(filePath)));\n this.watcher.on('unlink', (filePath) => events.onUnlink(path.resolve(filePath)));\n }\n\n public close(): void {\n if (this.watcher) {\n this.watcher.close();\n this.watcher = null;\n }\n }\n}\n","export interface HMRMessage {\n type: 'file-changed' | 'file-added' | 'file-removed' | 'full-reload' | 'compile-done' | 'boundary-error';\n file?: string;\n affectedModules?: string[];\n error?: string;\n timestamp: number;\n}\n\nexport type HMRBroadcaster = (msg: HMRMessage) => void;\n\nexport class HMRBridge {\n private broadcaster: HMRBroadcaster | null = null;\n\n public setBroadcaster(broadcaster: HMRBroadcaster): void {\n this.broadcaster = broadcaster;\n }\n\n public notifyFileChanged(filePath: string, affectedModules: string[]): void {\n if (this.broadcaster) {\n this.broadcaster({\n type: 'file-changed',\n file: filePath,\n affectedModules,\n timestamp: Date.now(),\n });\n }\n }\n\n public notifyBoundaryError(error: string): void {\n if (this.broadcaster) {\n this.broadcaster({\n type: 'boundary-error',\n error,\n timestamp: Date.now(),\n });\n }\n }\n}\n","import pc from 'picocolors';\nimport { BuildStats } from '../types.js';\n\nexport function formatBuildStats(stats: BuildStats): string {\n const lines: string[] = [];\n\n lines.push(pc.bold(pc.green('VELIX PACK ANALYSIS')));\n lines.push('');\n lines.push(pc.bold('Build Stats'));\n lines.push(pc.dim('─────'));\n lines.push(`Time: ${pc.cyan((stats.duration / 1000).toFixed(2) + 's')}`);\n lines.push(`Modules: ${pc.yellow(stats.modulesCount.toString())}`);\n lines.push(`Chunks: ${pc.cyan(stats.chunksCount.toString())}`);\n lines.push(`Cache hit: ${pc.green(stats.cacheHits + ' / ' + (stats.cacheHits + stats.cacheMisses))}`);\n lines.push('');\n lines.push(pc.bold('Client'));\n lines.push(pc.dim('──────'));\n lines.push(`Modules: ${stats.clientModulesCount}`);\n lines.push(`Initial JS: ${pc.cyan((stats.initialJsSize / 1024).toFixed(1) + ' KB')}`);\n lines.push(`Async JS: ${pc.cyan((stats.asyncJsSize / 1024).toFixed(1) + ' KB')}`);\n lines.push('');\n lines.push(pc.bold('Server'));\n lines.push(pc.dim('──────'));\n lines.push(`Modules: ${stats.serverModulesCount}`);\n\n return lines.join('\\n');\n}\n"],"mappings":";;;AAAA,OAAOA,WAAU;AACjB,OAAOC,SAAQ;;;ACDf,OAAOC,SAAQ;AACf,OAAOC,WAAU;;;ACDjB,OAAO,QAAQ;AACf,OAAO,UAAU;AAOV,SAAS,gBAAgB,aAAkC;AAChE,QAAM,eAAe,KAAK,KAAK,aAAa,eAAe;AAC3D,MAAI,CAAC,GAAG,WAAW,YAAY,EAAG,QAAO,CAAC;AAE1C,MAAI;AACF,UAAM,MAAM,GAAG,aAAa,cAAc,OAAO;AAEjD,UAAM,UAAU,IAAI,QAAQ,4BAA4B,EAAE;AAC1D,UAAM,WAAW,KAAK,MAAM,OAAO;AACnC,UAAM,kBAAkB,UAAU,mBAAmB,CAAC;AACtD,UAAM,QAAQ,gBAAgB,SAAS,CAAC;AACxC,UAAM,UAAU,gBAAgB,UAAU,KAAK,QAAQ,aAAa,gBAAgB,OAAO,IAAI;AAE/F,UAAM,UAAuB,CAAC;AAC9B,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,UAAI,MAAM,QAAQ,KAAK,KAAK,MAAM,SAAS,GAAG;AAC5C,cAAM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A,WAAK,MAAM,IAAI,YAAY,MAAM;AAAA,IACnC;AAGA,UAAM,MAAM,KAAK,YAAY,UAAU,UAAU,gBAAgB,IAAI;AACrE,QAAI,OAAO,gBAAgB;AAG3B,SAAK,YAAY,mBAAmB,UAAU,gBAAgB,OAAO;AAGrE,eAAW,cAAc,gBAAgB,SAAS;AAChD,UAAI,CAAC,KAAK,YAAY,gBAAgB,UAAU,GAAG;AACjD,YAAIA,IAAG,WAAW,UAAU,GAAG;AAC7B,gBAAM,KAAK,YAAY,UAAU;AAAA,QACnC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EAEQ,gBAAgB,KAAuB;AAC7C,UAAM,UAAoB,CAAC;AAC3B,QAAI,CAACA,IAAG,WAAW,GAAG,EAAG,QAAO;AAEhC,UAAM,UAAUA,IAAG,YAAY,KAAK,EAAE,eAAe,KAAK,CAAC;AAC3D,eAAW,SAAS,SAAS;AAC3B,YAAM,WAAWD,MAAK,KAAK,KAAK,MAAM,IAAI;AAC1C,UAAI,MAAM,YAAY,GAAG;AACvB,YAAI,MAAM,SAAS,kBAAkB,MAAM,SAAS,YAAY,MAAM,SAAS,QAAQ;AACrF,kBAAQ,KAAK,GAAG,KAAK,gBAAgB,QAAQ,CAAC;AAAA,QAChD;AAAA,MACF,WAAW,iBAAiB,KAAK,MAAM,IAAI,GAAG;AAC5C,gBAAQ,KAAK,QAAQ;AAAA,MACvB;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AAAA,EAEO,SAAoB;AACzB,WAAO,KAAK;AAAA,EACd;AAAA,EAEO,WAAuB;AAC5B,WAAO,KAAK;AAAA,EACd;AACF;","names":["path","fs","fs","path","path","fs","path","path","path","fs","path","path","path","fs","path","fs","path","esbuild","path","fs","fs","path","esbuild","path","path","fs"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
1
2
|
import {
|
|
2
3
|
log,
|
|
3
4
|
writeFile
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
} from "./chunk-PAUSXGWF.js";
|
|
6
6
|
|
|
7
7
|
// commands/ui.ts
|
|
8
8
|
import fs from "fs";
|
|
@@ -78,4 +78,4 @@ Button.displayName = "Button";
|
|
|
78
78
|
export {
|
|
79
79
|
handleUiCommand
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=ui-
|
|
81
|
+
//# sourceMappingURL=ui-CFSX57E3.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamvelix/cli",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.5",
|
|
4
4
|
"description": "Velix v5 CLI — Create, develop, and build Velix applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,11 +12,9 @@
|
|
|
12
12
|
"dist",
|
|
13
13
|
"assets"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsup",
|
|
17
|
-
"dev": "tsup --watch"
|
|
18
|
-
},
|
|
19
15
|
"dependencies": {
|
|
16
|
+
"@teamvelix/velix-core": "^5.3.5",
|
|
17
|
+
"@teamvelix/velix": "^5.3.5",
|
|
20
18
|
"ora": "^8.1.1",
|
|
21
19
|
"picocolors": "^1.1.1",
|
|
22
20
|
"prompts": "^2.4.2"
|
|
@@ -36,5 +34,9 @@
|
|
|
36
34
|
},
|
|
37
35
|
"publishConfig": {
|
|
38
36
|
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsup",
|
|
40
|
+
"dev": "tsup --watch"
|
|
39
41
|
}
|
|
40
|
-
}
|
|
42
|
+
}
|
package/dist/chunk-7D4SUZUM.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
-
};
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
-
for (let key of __getOwnPropNames(from))
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
-
mod
|
|
31
|
-
));
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
__require,
|
|
35
|
-
__commonJS,
|
|
36
|
-
__toESM
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=chunk-7D4SUZUM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|