- Add .gitignore: exclude compiled binaries, build artifacts, and Helm values files containing real secrets (authentik, prometheus) - Add all Kubernetes deployment manifests (deployment/) - Add services source code: ha-sync, device-inventory, games-console, paperclip, parts-inventory - Add Ansible orchestration: playbooks, roles, inventory, cloud-init - Add hardware specs, execution plans, scripts, HOMELAB.md - Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill - Remove previously-tracked inventory-cli binary from git index Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18 lines
749 B
JavaScript
18 lines
749 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getCompiledPath = void 0;
|
|
var crypto_1 = __importDefault(require("crypto"));
|
|
var path_1 = __importDefault(require("path"));
|
|
var cwd = process.cwd();
|
|
exports.getCompiledPath = function (code, fileName, compiledDir) {
|
|
var hash = crypto_1.default
|
|
.createHash('sha256')
|
|
.update(fileName + code, 'utf8')
|
|
.digest('hex');
|
|
fileName = path_1.default.relative(cwd, fileName);
|
|
var hashed = fileName.replace(/[^\w]/g, '_') + '_' + hash + '.js';
|
|
return path_1.default.join(compiledDir, hashed);
|
|
};
|