0.10.4 • Published 5 years ago

bayrell-lang-compiler v0.10.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 years ago

Bayrell Lang Compiler for NodeJS

Install NodeJS on Ubuntu:

curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs

Install g++ on Ubuntu for inotify

sudo apt install g++ make

Install global:

sudo npm install -g bayrell-lang-compiler --unsafe-perm

or local:

npm install --save bayrell-lang-compile

Example project.json in local folder of the project:

{
	"name": "Test",
	"assets": "assets/",
	"cache": "var/bundler",
	"bundles":
	[
		{
			"name": "runtime.js",
			"dest": "web/js/runtime.js",
			"lang": "es6",
			"modules":
			[
				"Runtime",
				"Runtime.Core",
				"Runtime.Web"
			]
		},
		{
			"name": "app.js",
			"dest": "web/js/app.js",
			"lang": "es6",
			"modules":
			[
				"App"
			],
			"websocket": true
		}
	],
	"plugins":
	[
		"Bayrell.Bundler.Plugins.BayLang",
		"Bayrell.Bundler.Plugins.Bundle",
		"Bayrell.Bundler.Plugins.FilesPHP",
		"Bayrell.Bundler.Plugins.FilesES6",
		"Bayrell.Bundler.Plugins.FilesJS"
	],
	"modules":
	[
		"app",
		"lib"
	],
	"languages": ["php", "es6"],
	"watch":
	{
		"dir":
		[
			"lib",
			"src"
		],
		"timeout": 500,
		"websocket": true
	}
}

Run autocompile mode

bayrell-lang-nodejs watch

Create file ./lib/App/bay/Test.bay

namespace App;

class Test
{
  lambda string hello() => "Hello World!!!";
}

The files ./lib/App/php/Test.php and ./lib/App/es6/Test.js are created automatically

0.10.4

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.0

5 years ago

0.10.1

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.8.0-alpha.9

6 years ago

0.7.3

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago