Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b3770b3
Added basic gulp support and split lualib into seperate ts files
lolleko Jul 18, 2018
be164b2
LuaLibFeature translation
lolleko Jul 18, 2018
e300eea
Added map, push, ternary
lolleko Jul 18, 2018
0a9b905
Fixed stupid mistake :)
lolleko Jul 18, 2018
978417a
Initial rough map implementation
Perryvw Jul 18, 2018
3103c0d
Gulp Tests & InstanceOf
lolleko Jul 19, 2018
1c939ee
Merge branch 'ts-lualib' of https://github.com/Perryvw/TypescriptToLu…
lolleko Jul 19, 2018
f59c13a
Fixed some lualib issues
lolleko Jul 19, 2018
84da33e
Moved all escapedText calls to transpileIdentifier
lolleko Jul 19, 2018
86c67ff
Merge branch 'escapedtext-replace' into ts-lualib
lolleko Jul 19, 2018
bdd80a1
Fixed an issue that caused lualib to be a dependency of lualib during…
lolleko Jul 19, 2018
19cab94
Splice
lolleko Jul 19, 2018
fb87646
Fied luaTarget beeing set incorrectly
lolleko Jul 20, 2018
cd40c3b
Every, Filter, Some, Splice, Replace
lolleko Jul 20, 2018
b40178a
IndexOf and Splice (both broken)
lolleko Jul 20, 2018
6e532a3
Merge branch 'master' into ts-lualib
lolleko Jul 20, 2018
8942097
Fixed lualib cleanup, Fixed IndexOf and added tests for indexof
lolleko Jul 20, 2018
2b0271b
Fixed splice array trim
lolleko Jul 20, 2018
543cd37
Fixed a couple map bugs
Perryvw Jul 19, 2018
3c055d8
Initial Set implementation
Perryvw Jul 19, 2018
15b52f8
Added some extra testcases
Perryvw Jul 20, 2018
5d4af44
Improved binding pattern handling
Perryvw Jul 20, 2018
e049a86
Fixed bug with map and set constructors
Perryvw Jul 20, 2018
cb5390c
Fixed map/set constructors
Perryvw Jul 20, 2018
deaf455
Fixed and improved lualib ternary conditional
Perryvw Jul 20, 2018
afa4e5b
Fixed slice
Perryvw Jul 20, 2018
61fa3df
Fixed lualib function signatures
Perryvw Jul 20, 2018
5d563b6
Added string.substr
Perryvw Jul 20, 2018
64cbbe8
Fixed StringReplace and StringSplit
Perryvw Jul 20, 2018
6345f5a
Moved tuple return tests from translation to functional tests
Perryvw Jul 20, 2018
8a83c82
Got istanbul working
lolleko Jul 21, 2018
b8f3f0d
Removed gulp
lolleko Jul 21, 2018
548d16f
Removed coverage file
lolleko Jul 21, 2018
8a63a99
Added import options
lolleko Jul 21, 2018
837deef
Fixed inlining happening after return & changed addheader optio flag…
lolleko Jul 22, 2018
d12017d
Fixed Laulib Inline/Export order & Fixed lualib build not cleanung up
lolleko Jul 22, 2018
cb16b27
Fixed defaultoption test test
lolleko Jul 22, 2018
8854697
Fixed build error
lolleko Jul 22, 2018
e626a50
Replaced concat witf fs functions
lolleko Jul 22, 2018
946efa6
Fixed dependecy issue
lolleko Jul 22, 2018
b83de62
Fixed transpiler review comments
Perryvw Jul 22, 2018
5f72d43
Fixed some linting issues
Perryvw Jul 22, 2018
24562ed
Added linting for lualib src to build command
Perryvw Jul 22, 2018
a5c4348
Moved linting step to test instead of build
Perryvw Jul 22, 2018
a819459
Fixed some minor issues
lolleko Jul 22, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ coverage/
.idea/

typescript_lualib.lua
lualib_bundle.lua

dist/*
28 changes: 28 additions & 0 deletions build_lualib.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as fs from "fs";
import * as glob from "glob";
import {compile} from "./src/Compiler";

const bundlePath = "./dist/lualib/lualib_bundle.lua";

compile([
"--luaLibImport",
"none",
"--luaTarget",
"5.1",
"--noHeader",
"--outDir",
"./dist/lualib",
"--rootDir",
"./src/lualib",
...glob.sync("./src/lualib/*.ts"),
]);

if (fs.existsSync(bundlePath)) {
fs.unlinkSync(bundlePath);
}

let bundle = "";

glob.sync("./dist/lualib/*.lua").forEach(fileName => bundle += fs.readFileSync(fileName));

fs.writeFileSync(bundlePath, bundle);
339 changes: 0 additions & 339 deletions dist/lualib/typescript.lua

This file was deleted.

Loading