GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TypeScriptToLua/build_lualib.ts at master · lineCode/TypeScriptToLua Expand file tree/ Copy pathbuild_lualib.tsMore file actions 19 lines (15 loc) · 731 Bytes / Copy pathbuild_lualib.tsFile metadata and controls19 lines (15 loc) · 731 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import * as fs from "fs"; import * as path from "path"; import * as ts from "typescript"; import * as tstl from "./src"; import { loadLuaLibFeatures } from "./src/LuaLib"; const configFileName = path.resolve(__dirname, "src/lualib/tsconfig.json"); const { emitResult, diagnostics } = tstl.transpileProject(configFileName); emitResult.forEach(({ name, text }) => ts.sys.writeFile(name, text)); const reportDiagnostic = tstl.createDiagnosticReporter(true); diagnostics.forEach(reportDiagnostic); const bundlePath = path.join(__dirname, "dist/lualib/lualib_bundle.lua"); if (fs.existsSync(bundlePath)) { fs.unlinkSync(bundlePath); } fs.writeFileSync(bundlePath, loadLuaLibFeatures(Object.values(tstl.LuaLibFeature), ts.sys)); |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |