ruch
Version:
Revolutionary React TypeScript CLI with hexagonal architecture & AI-powered development assistance. Create maintainable, scalable applications with domain-driven design and integrated AI tooling.
24 lines • 858 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultPathUtils = void 0;
const path_1 = __importDefault(require("path"));
class DefaultPathUtils {
constructor(config) {
this.config = config;
}
getDomainPath(domainName) {
return path_1.default.join(process.cwd(), this.config.domainsDir, domainName);
}
getDomainsBasePath() {
return path_1.default.join(process.cwd(), this.config.domainsDir);
}
validateDomainName(name) {
const validNamePattern = /^[a-zA-Z0-9_-]+$/;
return validNamePattern.test(name) && name.length > 0;
}
}
exports.DefaultPathUtils = DefaultPathUtils;
//# sourceMappingURL=path-utils.js.map