Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
21 lines
910 B
JavaScript
21 lines
910 B
JavaScript
// Stages the single-threaded web-ifc WebAssembly runtime (1.68 MB) into
|
|||
|
|
// apps/web/public/ifc/ so BIM architectural models (.ifc) can be decoded directly
|
||
|
|
// in the browser and desktop app without COOP/COEP headers or native servers.
|
||
|
|
import { cp, mkdir } from "node:fs/promises";
|
||
|
|
import { existsSync } from "node:fs";
|
||
|
|
import { dirname, join } from "node:path";
|
||
|
|
import { fileURLToPath } from "node:url";
|
||
|
|
|
||
|
|
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||
|
|
const src = join(root, "node_modules", "web-ifc", "web-ifc.wasm");
|
||
|
|
const destDir = join(root, "apps", "web", "public", "ifc");
|
||
|
|
|
||
|
|
if (!existsSync(src)) {
|
||
|
|
console.error(`[copy-ifc-wasm] web-ifc.wasm not found at ${src}. Run \`npm install\` first.`);
|
||
|
|
process.exit(1);
|
||
|
|
}
|
||
|
|
|
||
|
|
await mkdir(destDir, { recursive: true });
|
||
|
|
await cp(src, join(destDir, "web-ifc.wasm"));
|
||
|
|
|
||
|
|
console.log("[copy-ifc-wasm] staged web-ifc.wasm into apps/web/public/ifc/");
|