+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/Templates/npmweb/src/pages/about.tcross b/Templates/npmweb/src/pages/about.tcross
new file mode 100644
index 0000000..d0c132b
--- /dev/null
+++ b/Templates/npmweb/src/pages/about.tcross
@@ -0,0 +1,33 @@
+
+
+func Pages.About(ctx)
+{
+ var pages = [
+ {
+ active = false,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = false,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = true,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("About Me",pages,
+
About Me
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmweb/src/pages/counter.tcross b/Templates/npmweb/src/pages/counter.tcross
new file mode 100644
index 0000000..d3a0fdf
--- /dev/null
+++ b/Templates/npmweb/src/pages/counter.tcross
@@ -0,0 +1,30 @@
+var counter = 0;
+
+func Pages.Counter(ctx)
+{
+ var pages = [
+ {
+ active = false,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = true,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = false,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("Counter",pages,
+
+
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmweb/src/pages/echo.tcross b/Templates/npmweb/src/pages/echo.tcross
new file mode 100644
index 0000000..08c56d0
--- /dev/null
+++ b/Templates/npmweb/src/pages/echo.tcross
@@ -0,0 +1,35 @@
+func Pages.Echo(ctx)
+{
+ const text = ctx.QueryParams.TryGetFirst("text");
+ var pages = [
+ {
+ active = true,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = false,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = false,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("Echo",pages,
+
+
+
+
+
+
No text available
+
+
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmweb/src/pages/index.tcross b/Templates/npmweb/src/pages/index.tcross
new file mode 100644
index 0000000..57702d8
--- /dev/null
+++ b/Templates/npmweb/src/pages/index.tcross
@@ -0,0 +1,42 @@
+func Pages.Index(ctx)
+{
+ var pages = [
+ {
+ active = true,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = false,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = false,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("Main Page",pages,
+
+
1 John 4:4: You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in the world.
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/Templates/npmwebapp/src/pages/about.tcross b/Templates/npmwebapp/src/pages/about.tcross
new file mode 100644
index 0000000..d0c132b
--- /dev/null
+++ b/Templates/npmwebapp/src/pages/about.tcross
@@ -0,0 +1,33 @@
+
+
+func Pages.About(ctx)
+{
+ var pages = [
+ {
+ active = false,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = false,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = true,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("About Me",pages,
+
About Me
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmwebapp/src/pages/counter.tcross b/Templates/npmwebapp/src/pages/counter.tcross
new file mode 100644
index 0000000..d3a0fdf
--- /dev/null
+++ b/Templates/npmwebapp/src/pages/counter.tcross
@@ -0,0 +1,30 @@
+var counter = 0;
+
+func Pages.Counter(ctx)
+{
+ var pages = [
+ {
+ active = false,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = true,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = false,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("Counter",pages,
+
+
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmwebapp/src/pages/echo.tcross b/Templates/npmwebapp/src/pages/echo.tcross
new file mode 100644
index 0000000..08c56d0
--- /dev/null
+++ b/Templates/npmwebapp/src/pages/echo.tcross
@@ -0,0 +1,35 @@
+func Pages.Echo(ctx)
+{
+ const text = ctx.QueryParams.TryGetFirst("text");
+ var pages = [
+ {
+ active = true,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = false,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = false,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("Echo",pages,
+
+
+
+
+
+
No text available
+
+
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmwebapp/src/pages/index.tcross b/Templates/npmwebapp/src/pages/index.tcross
new file mode 100644
index 0000000..57702d8
--- /dev/null
+++ b/Templates/npmwebapp/src/pages/index.tcross
@@ -0,0 +1,42 @@
+func Pages.Index(ctx)
+{
+ var pages = [
+ {
+ active = true,
+ route = "/",
+ text = "Home",
+ icon = "home"
+ },
+ {
+ active = false,
+ route = "/counter",
+ text = "Counter",
+ icon = "exposure_plus_1"
+ },
+ {
+ active = false,
+ route = "/about",
+ text = "About",
+ icon = "info"
+ }
+ ];
+ ctx.WithMimeType("text/html").SendText(Components.Shell("Main Page",pages,
+
+
1 John 4:4: You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in the world.
+ ));
+ return true;
+}
\ No newline at end of file
diff --git a/Templates/npmwebapp/src/program.tcross b/Templates/npmwebapp/src/program.tcross
new file mode 100644
index 0000000..880c814
--- /dev/null
+++ b/Templates/npmwebapp/src/program.tcross
@@ -0,0 +1,37 @@
+class MyWebApp {
+ private fileServer;
+ private mountable;
+ private pages;
+
+ public MyWebApp()
+ {
+ this.fileServer = new FileServer(embeddir("/"), true, false);
+
+ this.mountable = new MountableServer((ctx)=>{
+ const page = this.pages.[ctx.Path];
+ if(TypeIsDefined(page)) return page(ctx);
+ return false;
+ });
+ this.mountable.Mount("/dist/",this.fileServer);
+ this.pages = {
+ .["/"] = Pages.Index,
+ .["/counter"] = Pages.Counter,
+ .["/about"] = Pages.About,
+ .["/echo"] = Pages.Echo
+ };
+ }
+
+ public Handle(ctx)
+ {
+ return this.mountable.Handle(ctx);
+ }
+ public Close()
+ {
+ this.mountable = null;
+ }
+}
+
+func WebAppMain(args)
+{
+ return new MyWebApp();
+}
\ No newline at end of file
diff --git a/Templates/template/.gitignore b/Templates/template/.gitignore
new file mode 100644
index 0000000..4b90757
--- /dev/null
+++ b/Templates/template/.gitignore
@@ -0,0 +1,5 @@
+.DS_Store
+bin
+obj
+publish
+thumbs.db
diff --git a/Templates/template/cross.json b/Templates/template/cross.json
index 55f94d9..d75a4be 100644
--- a/Templates/template/cross.json
+++ b/Templates/template/cross.json
@@ -1,10 +1,10 @@
{
"name": "Tesses.CrossLang.Template.Template",
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"info": {
"maintainer": "Mike Nolan",
"type": "template",
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"license": "MIT",
"short_name": "template",
diff --git a/Templates/tool/.gitignore b/Templates/tool/.gitignore
new file mode 100644
index 0000000..4b90757
--- /dev/null
+++ b/Templates/tool/.gitignore
@@ -0,0 +1,5 @@
+.DS_Store
+bin
+obj
+publish
+thumbs.db
diff --git a/Templates/tool/cross.json b/Templates/tool/cross.json
index a492ecd..6f4765e 100644
--- a/Templates/tool/cross.json
+++ b/Templates/tool/cross.json
@@ -17,12 +17,12 @@
"description": "A crosslang tool that you can run via crosslang tool",
"type": "template",
"maintainer": "Mike Nolan",
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"license": "MIT",
"short_name_pretty": "Tool"
},
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"name": "Tesses.CrossLang.Template.Tool",
"$schema": "https://crosslang.tesseslanguage.com//schema/cross-json-schema.json"
}
\ No newline at end of file
diff --git a/Templates/web/.gitignore b/Templates/web/.gitignore
new file mode 100644
index 0000000..4b90757
--- /dev/null
+++ b/Templates/web/.gitignore
@@ -0,0 +1,5 @@
+.DS_Store
+bin
+obj
+publish
+thumbs.db
diff --git a/Templates/web/cross.json b/Templates/web/cross.json
index 8265a0a..53e8a13 100644
--- a/Templates/web/cross.json
+++ b/Templates/web/cross.json
@@ -1,10 +1,10 @@
{
"name": "Tesses.CrossLang.Template.Website",
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"info": {
"maintainer": "Mike Nolan",
"type": "template",
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"license": "MIT",
"short_name": "web",
diff --git a/Templates/webapp/.gitignore b/Templates/webapp/.gitignore
new file mode 100644
index 0000000..4b90757
--- /dev/null
+++ b/Templates/webapp/.gitignore
@@ -0,0 +1,5 @@
+.DS_Store
+bin
+obj
+publish
+thumbs.db
diff --git a/Templates/webapp/cross.json b/Templates/webapp/cross.json
index 1c6cb14..c774f35 100644
--- a/Templates/webapp/cross.json
+++ b/Templates/webapp/cross.json
@@ -15,12 +15,12 @@
"short_name_pretty": "Web Application",
"template_project_dependencies": [
],
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"type": "template",
"description": "A web app (for webview or eventual cloud OS)"
},
"name": "Tesses.CrossLang.Template.WebApp",
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"$schema": "https://crosslang.tesseslanguage.com//schema/cross-json-schema.json"
}
\ No newline at end of file
diff --git a/Tesses.CrossLang.App/cross.json b/Tesses.CrossLang.App/cross.json
index a279bdd..c032684 100644
--- a/Tesses.CrossLang.App/cross.json
+++ b/Tesses.CrossLang.App/cross.json
@@ -11,5 +11,5 @@
"project_dependencies": [
"..\/Tesses.CrossLang.BuildEssentials"
],
- "version": "1.0.0.0-prod"
+ "version": "1.0.0.0-dev"
}
\ No newline at end of file
diff --git a/Tesses.CrossLang.Args/cross.json b/Tesses.CrossLang.Args/cross.json
index bd3e379..08c3c75 100644
--- a/Tesses.CrossLang.Args/cross.json
+++ b/Tesses.CrossLang.Args/cross.json
@@ -1,10 +1,10 @@
{
"name": "Tesses.CrossLang.Args",
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"info": {
"maintainer": "Mike Nolan",
"type": "lib",
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"license": "LGPLv3"
}
diff --git a/Tesses.CrossLang.BuildEssentials/cross.json b/Tesses.CrossLang.BuildEssentials/cross.json
index 7252222..0b282da 100644
--- a/Tesses.CrossLang.BuildEssentials/cross.json
+++ b/Tesses.CrossLang.BuildEssentials/cross.json
@@ -1,10 +1,10 @@
{
"name": "Tesses.CrossLang.BuildEssentials",
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"info": {
"maintainer": "Mike Nolan",
"type": "lib",
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"license": "LGPLv3"
}
diff --git a/Tesses.CrossLang.PackageServer/cross.json b/Tesses.CrossLang.PackageServer/cross.json
index ea9c772..993a617 100644
--- a/Tesses.CrossLang.PackageServer/cross.json
+++ b/Tesses.CrossLang.PackageServer/cross.json
@@ -3,9 +3,13 @@
"info": {
"type": "console",
"short_name": "packageserver",
- "short_name_pretty": "Package Server"
+ "short_name_pretty": "Package Server",
+ "description": "This webapp allows you to serve packages",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
+ "homepage": "https://cpkg.tesseslanguage.com/",
+ "license": "AGPLv3"
},
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"name": "Tesses.CrossLang.PackageServer",
"compTime": "secure"
}
diff --git a/Tesses.CrossLang.PackageServer/src/program.tcross b/Tesses.CrossLang.PackageServer/src/program.tcross
index 45b63a0..3ae9103 100644
--- a/Tesses.CrossLang.PackageServer/src/program.tcross
+++ b/Tesses.CrossLang.PackageServer/src/program.tcross
@@ -24,7 +24,7 @@ func main(args)
PUT /api/v1/upload Authorization Bearer
POST /api/v1/login Json object with email and password returns json object with either 200 for success {"token": "TOKEN_VAL"} or non 2XX if fails {"reason": "SOME ERROR"}
POST /api/v1/logout use Authorization Bearer
- GET /api/v1/latest?name=PackageName returns 200 OK with json {"version": "1.0.0.0-prod"} if it succeeds if it fails returns a failing status code with {"reason": "SOME ERROR"}
+ GET /api/v1/latest?name=PackageName returns 200 OK with json {"version":"1.0.0.0-dev"} if it succeeds if it fails returns a failing status code with {"reason": "SOME ERROR"}
GET /api/v1/download?name=PackageName&version=1.0.0.0-prod returns 200 OK with package bytes or 404 if doesn't exist
GET /api/v1/search?q=SomeQuery&offset=&limit= returns 200 OK with json of packages {"packages": [{"name": "pkgName","version": "latestVersion", ...}]} or non success status code
diff --git a/Tesses.CrossLang.Reference/src/runtime_methods/vm.tcross b/Tesses.CrossLang.Reference/src/runtime_methods/vm.tcross
index c17e827..94b329d 100644
--- a/Tesses.CrossLang.Reference/src/runtime_methods/vm.tcross
+++ b/Tesses.CrossLang.Reference/src/runtime_methods/vm.tcross
@@ -86,7 +86,7 @@ func VM.RunEventLoop()
/^
Merge all crvm files into one and returns path inside destVFS of output
You should have srcFS a SubdirFilesystem to directory with executable
- so if the source executable was /app/bin/app-1.0.0.0-prod.crvm you should pass a SubdirFilesystem pointing to the directory /app/bin and sourcePath set to /app-1.0.0.0-prod.crvm and destVFS to a empty SubdirFilesystem
+ so if the source executable was /app/bin/app-1.0.0.0-dev.crvm you should pass a SubdirFilesystem pointing to the directory /app/bin and sourcePath set to /app-1.0.0.0-dev.crvm and destVFS to a empty SubdirFilesystem
^/
func VM.Merge(srcVFS,sourcePath,destVFS)
{
diff --git a/Tesses.CrossLang.Shell/cross.json b/Tesses.CrossLang.Shell/cross.json
index 89843af..f699827 100644
--- a/Tesses.CrossLang.Shell/cross.json
+++ b/Tesses.CrossLang.Shell/cross.json
@@ -1,11 +1,11 @@
{
"name": "Tesses.CrossLang.Shell",
- "version": "1.0.0.0-prod",
+ "version": "1.0.0.0-dev",
"dependencies": [],
"info": {
"maintainer": "Mike Nolan",
"type": "console",
- "repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ "repo": "https://git.tesses.org/tesses50/crosslangextras",
"homepage": "https://crosslang.tesseslanguage.com/",
"license": "LGPLv3"
},
diff --git a/Tesses.CrossLang.Shell/src/new.tcross b/Tesses.CrossLang.Shell/src/new.tcross
index e6a1832..7e7fbd8 100644
--- a/Tesses.CrossLang.Shell/src/new.tcross
+++ b/Tesses.CrossLang.Shell/src/new.tcross
@@ -74,6 +74,7 @@ func Tesses.CrossLang.Shell.New(dd)
var old_info = proj.info;
proj.info = old_info.template_info;
proj.icon = old_info.template_icon;
+ proj.prebuild = old_info.template_prebuild;
proj.dependencies = old_info.template_project_dependencies;
var srcDir = proj.source_directory;
if(TypeOf(srcDir) == "Undefined") srcDir = "/src";
@@ -105,7 +106,7 @@ func Tesses.CrossLang.Shell.New(dd)
var src = FS.ReadAllText(projectDir, ent);
src = src.Replace("%PROJECT_NAME%",projectPath.GetFileName());
- src = src.Replace("%TEMPLATE_PROJECT_NAME%","%PROJECT_NAME");
+ src = src.Replace("%TEMPLATE_PROJECT_NAME%","%PROJECT_NAME%");
FS.WriteAllText(projectDir, ent, src);
}
diff --git a/Tesses.CrossLang.Std/cross.json b/Tesses.CrossLang.Std/cross.json
index 0b833ab..e21ddde 100644
--- a/Tesses.CrossLang.Std/cross.json
+++ b/Tesses.CrossLang.Std/cross.json
@@ -4,5 +4,5 @@
"description": "The standard library of crosslang"
},
"name": "Tesses.CrossLang.Std",
- "version": "1.0.0.0-prod"
+ "version": "1.0.0.0-dev"
}
diff --git a/build.tcross b/build.tcross
index f2c12b7..1ed0529 100644
--- a/build.tcross
+++ b/build.tcross
@@ -14,7 +14,7 @@ func cmd(name, args)
func main(args)
{
- var args2=["-o","./Tesses.CrossLang.BuildEssentials/bin-tmp","-r","./Tesses.CrossLang.BuildEssentials/res","-n","Tesses.CrossLang.BuildEssentials","-v","1.0.0.0-prod","Tesses.CrossLang.BuildEssentials/main.tcross"];
+ var args2=["-o","./Tesses.CrossLang.BuildEssentials/bin-tmp","-r","./Tesses.CrossLang.BuildEssentials/res","-n","Tesses.CrossLang.BuildEssentials","-v","1.0.0.0-dev","Tesses.CrossLang.BuildEssentials/main.tcross"];
each(var f : FS.Local.EnumeratePaths("./Tesses.CrossLang.BuildEssentials/src"))
{
if(f.GetExtension() == ".tcross")
@@ -22,38 +22,41 @@ func main(args)
args2.Add(f.ToString());
}
}
- cmd("crossc", args2);
- cmd("crossvm",["./Tesses.CrossLang.BuildEssentials/bin-tmp/Tesses.CrossLang.BuildEssentials-1.0.0.0-prod.crvm","Tesses.CrossLang.Shell"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.PackageServer"]);
- //cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.WebSite"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.Std"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/console"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/emptyweb"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/web"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/template"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/lib"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/compiletool"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/tool"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Templates/webapp"]);
+
+
+ cmd("crossc", args2);
+ cmd("crossvm",["./Tesses.CrossLang.BuildEssentials/bin-tmp/Tesses.CrossLang.BuildEssentials-1.0.0.0-dev.crvm","Tesses.CrossLang.Shell"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Tesses.CrossLang.PackageServer"]);
+ //cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Tesses.CrossLang.WebSite"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Tesses.CrossLang.Std"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/console"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/emptyweb"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/web"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/template"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/lib"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/compiletool"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/tool"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/webapp"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/npmweb"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Templates/npmwebapp"]);
+
/*
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.PackageServer"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.PackageServer"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.PackageServer"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.PackageServer"]);
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","Tesses.CrossLang.PackageServer"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Tesses.CrossLang.PackageServer"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Tesses.CrossLang.PackageServer"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","Tesses.CrossLang.PackageServer"]);
*/
- cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm","build","crosslang_shell_archive_maker"]);
+ cmd("crossvm",["./Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm","build","crosslang_shell_archive_maker"]);
if(args.Length > 1)
{
if(args[1] == "install")
{
- cmd("crossvm",["crosslang_shell_archive_maker/bin/crosslang_shell_archive_maker-1.0.0.0-prod.crvm", "install"]);
+ cmd("crossvm",["crosslang_shell_archive_maker/bin/crosslang_shell_archive_maker-1.0.0.0-dev.crvm", "install"]);
}
else if(args[1] == "pack")
{
- cmd("crossvm",["crosslang_shell_archive_maker/bin/crosslang_shell_archive_maker-1.0.0.0-prod.crvm"]);
+ cmd("crossvm",["crosslang_shell_archive_maker/bin/crosslang_shell_archive_maker-1.0.0.0-dev.crvm"]);
}
}
}
diff --git a/crosslang_shell_archive_maker/cross.json b/crosslang_shell_archive_maker/cross.json
index 758307a..75135d3 100644
--- a/crosslang_shell_archive_maker/cross.json
+++ b/crosslang_shell_archive_maker/cross.json
@@ -6,5 +6,5 @@
"project_dependencies": [
"..\/Tesses.CrossLang.BuildEssentials"
],
- "version": "1.0.0.0-prod"
+ "version": "1.0.0.0-dev"
}
\ No newline at end of file
diff --git a/crosslang_shell_archive_maker/src/main.tcross b/crosslang_shell_archive_maker/src/main.tcross
index cd9094a..621263e 100644
--- a/crosslang_shell_archive_maker/src/main.tcross
+++ b/crosslang_shell_archive_maker/src/main.tcross
@@ -1,5 +1,5 @@
-var name = "Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm";
+var name = "Tesses.CrossLang.ShellPackage-1.0.0.0-dev.crvm";
func main(args)
{
create_archive();
@@ -43,9 +43,9 @@ func create_archive()
tmpFS.CreateDirectory(shell);
- copyFile("Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Args-1.0.0.0-prod.crvm", shell / "Tesses.CrossLang.Args-1.0.0.0-prod.crvm");
- copyFile("Tesses.CrossLang.Shell/bin/Tesses.CrossLang.BuildEssentials-1.0.0.0-prod.crvm", shell / "Tesses.CrossLang.BuildEssentials-1.0.0.0-prod.crvm");
- copyFile("Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-prod.crvm", shell / "Shell.crvm");
+ copyFile("Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Args-1.0.0.0-dev.crvm", shell / "Tesses.CrossLang.Args-1.0.0.0-dev.crvm");
+ copyFile("Tesses.CrossLang.Shell/bin/Tesses.CrossLang.BuildEssentials-1.0.0.0-dev.crvm", shell / "Tesses.CrossLang.BuildEssentials-1.0.0.0-dev.crvm");
+ copyFile("Tesses.CrossLang.Shell/bin/Tesses.CrossLang.Shell-1.0.0.0-dev.crvm", shell / "Shell.crvm");
copyFile("Tesses.CrossLang.Reference/bin/Tesses.CrossLang.Reference-1.0.0.0-dev.crvm", "Reference.crvm");
var devStudio = r / "DevStudio";
tmpFS.CreateDirectory(devStudio);
@@ -68,14 +68,16 @@ func create_archive()
- copyFile("Templates/compiletool/bin/Tesses.CrossLang.Template.CompileTool-1.0.0.0-prod.crvm", templates / "compiletool.crvm");
- copyFile("Templates/console/bin/Tesses.CrossLang.Template.Console-1.0.0.0-prod.crvm", templates / "console.crvm");
- copyFile("Templates/lib/bin/Tesses.CrossLang.Template.Library-1.0.0.0-prod.crvm", templates / "lib.crvm");
- copyFile("Templates/template/bin/Tesses.CrossLang.Template.Template-1.0.0.0-prod.crvm", templates / "template.crvm");
- copyFile("Templates/web/bin/Tesses.CrossLang.Template.Website-1.0.0.0-prod.crvm", templates / "web.crvm");
- copyFile("Templates/emptyweb/bin/Tesses.CrossLang.Template.EmptyWebsite-1.0.0.0-prod.crvm", templates / "emptyweb.crvm");
- copyFile("Templates/tool/bin/Tesses.CrossLang.Template.Tool-1.0.0.0-prod.crvm", templates / "tool.crvm");
- copyFile("Templates/webapp/bin/Tesses.CrossLang.Template.WebApp-1.0.0.0-prod.crvm", templates / "webapp.crvm");
+ copyFile("Templates/compiletool/bin/Tesses.CrossLang.Template.CompileTool-1.0.0.0-dev.crvm", templates / "compiletool.crvm");
+ copyFile("Templates/console/bin/Tesses.CrossLang.Template.Console-1.0.0.0-dev.crvm", templates / "console.crvm");
+ copyFile("Templates/lib/bin/Tesses.CrossLang.Template.Library-1.0.0.0-dev.crvm", templates / "lib.crvm");
+ copyFile("Templates/template/bin/Tesses.CrossLang.Template.Template-1.0.0.0-dev.crvm", templates / "template.crvm");
+ copyFile("Templates/web/bin/Tesses.CrossLang.Template.Website-1.0.0.0-dev.crvm", templates / "web.crvm");
+ copyFile("Templates/emptyweb/bin/Tesses.CrossLang.Template.EmptyWebsite-1.0.0.0-dev.crvm", templates / "emptyweb.crvm");
+ copyFile("Templates/tool/bin/Tesses.CrossLang.Template.Tool-1.0.0.0-dev.crvm", templates / "tool.crvm");
+ copyFile("Templates/webapp/bin/Tesses.CrossLang.Template.WebApp-1.0.0.0-dev.crvm", templates / "webapp.crvm");
+ copyFile("Templates/npmwebapp/bin/Tesses.CrossLang.Template.NPMWebApp-1.0.0.0-dev.crvm", templates / "npmwebapp.crvm");
+ copyFile("Templates/npmweb/bin/Tesses.CrossLang.Template.NPMWebsite-1.0.0.0-dev.crvm", templates / "npmweb.crvm");
var packageCache = r / "PackageCache";
@@ -84,18 +86,18 @@ func create_archive()
tmpFS.CreateDirectory(packageCache / "Tesses.CrossLang.BuildEssentials");
tmpFS.CreateDirectory(packageCache / "Tesses.CrossLang.Markup");
tmpFS.CreateDirectory(packageCache / "Tesses.CrossLang.Std");
- copyFile("Tesses.CrossLang.Args/bin/Tesses.CrossLang.Args-1.0.0.0-prod.crvm", packageCache / "Tesses.CrossLang.Args" / "1.0.0.0-prod");
- copyFile("Tesses.CrossLang.BuildEssentials/bin/Tesses.CrossLang.BuildEssentials-1.0.0.0-prod.crvm", packageCache / "Tesses.CrossLang.BuildEssentials" / "1.0.0.0-prod");
- //copyFile("Tesses.CrossLang.Markup/bin/Tesses.CrossLang.Markup-1.0.0.0-prod.crvm", packageCache / "Tesses.CrossLang.Markup" / "1.0.0.0-prod");
- copyFile("Tesses.CrossLang.Args/bin/Tesses.CrossLang.Args-1.0.0.0-prod.crvm", packageCache / "Tesses.CrossLang.Args" / "1.0.0.0-prod");
- copyFile("Tesses.CrossLang.Std/bin/Tesses.CrossLang.Std-1.0.0.0-prod.crvm", packageCache / "Tesses.CrossLang.Std" / "1.0.0.0-prod");
+ copyFile("Tesses.CrossLang.Args/bin/Tesses.CrossLang.Args-1.0.0.0-dev.crvm", packageCache / "Tesses.CrossLang.Args" / "1.0.0.0-prod");
+ copyFile("Tesses.CrossLang.BuildEssentials/bin/Tesses.CrossLang.BuildEssentials-1.0.0.0-dev.crvm", packageCache / "Tesses.CrossLang.BuildEssentials" / "1.0.0.0-prod");
+ //copyFile("Tesses.CrossLang.Markup/bin/Tesses.CrossLang.Markup-1.0.0.0-dev.crvm", packageCache / "Tesses.CrossLang.Markup" / "1.0.0.0-prod");
+ copyFile("Tesses.CrossLang.Args/bin/Tesses.CrossLang.Args-1.0.0.0-dev.crvm", packageCache / "Tesses.CrossLang.Args" / "1.0.0.0-prod");
+ copyFile("Tesses.CrossLang.Std/bin/Tesses.CrossLang.Std-1.0.0.0-dev.crvm", packageCache / "Tesses.CrossLang.Std" / "1.0.0.0-prod");
var installer = FS.Local.OpenFile(name, "wb");
var ifo = {
type = "archive",
maintainer = "Mike Nolan",
- repo = "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
+ repo = "https://git.tesses.org/tesses50/crosslangextras",
homepage = "https://crosslang.tesseslanguage.com/"
};
diff --git a/project_types.txt b/project_types.txt
index daefa59..f4d065b 100644
--- a/project_types.txt
+++ b/project_types.txt
@@ -1,6 +1,6 @@
console: a console application (or webserver)
lib: a library
-webapp: A web app (for webview or eventual cloud OS)
+webapp: A web app (for webview or android, can specify port on cli)
template: used for project templates
compile_tool: run before source is compiled for project if it is in the dependency tree for the project (and is not linked to said projects)
tool: a tool invokable via crosslang (gets Tesses.CrossLang.Args for free)
\ No newline at end of file
diff --git a/vscode-extension/package.json b/vscode-extension/package.json
index 6a06fbe..98e16b3 100644
--- a/vscode-extension/package.json
+++ b/vscode-extension/package.json
@@ -7,7 +7,7 @@
"vscode": "^1.107.0"
},
"publisher": "tesses50",
- "repository": "https://onedev.site.tesses.net/crosslang/crosslangextras",
+ "repository": "https://git.tesses.org/tesses50/crosslangextras",
"categories": [
"Programming Languages"
],