0.10.4 • Published 5 years ago
bayrell-lang-compiler v0.10.4
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 nodejsInstall g++ on Ubuntu for inotify
sudo apt install g++ makeInstall global:
sudo npm install -g bayrell-lang-compiler --unsafe-permor local:
npm install --save bayrell-lang-compileExample 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 watchCreate 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
6 years ago
0.9.0
6 years ago
0.8.3
6 years ago
0.8.2
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.8.0-alpha.9
6 years ago
0.7.3
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago