Page 1 of 2
what is the stack of BGA?
Posted: 04 February 2021, 15:35
by shapeshifter999
Ho Ho Community!
I am from the .NET/NodeJS + Angular2/React world.
I am trying to get into the BGA framework to implements 2-3 games to play with friends remotely.
Curiosity, what is the technology stacks of BGA?
1. Which PHP version?
2. There is no webpack or transpilation, then is it ok to use es2015 syntax? It seems to be supported by 95% of the browser on caniuse.
3. Is PHPLIB is used for server side templating?
4. Is dojo is used for client side templating?
5. Also, how do we retrieve documentation? Example, I am trying to render an html template for the 8 Decrypto rounds. I went into the cookbook section and saw the use of begin_block and insert_block. I would like to get more technical information about those two functions and validating if the end_block function exists and need to be used. I do not found any repository or official page of phplib, is there one?
Thank you very much for your support!
Sebastien
Re: what is the stack of BGA?
Posted: 05 February 2021, 03:06
by Victoria_La
Versions currently used by BGA framework (as of May 2020):
Dojo Toolkit 1.15
PHP version: 7.2.12
SDL: unknown
JS/CSS/HTML: There is css and js minimizer which is important because it introduces some bugs too. No css preprocessor. No type script.
See
https://en.doc.boardgamearena.com/Studio_file_reference
Server side templating documented here:
https://en.doc.boardgamearena.com/Game_ ... mename.tpl
Client side tempating - not really. You can use whatever you want. Some tring manulation utility is advertized in tutorials
Re: what is the stack of BGA?
Posted: 05 February 2021, 15:09
by shapeshifter999
This answer all!
Thanks Victoria_La!
Re: what is the stack of BGA?
Posted: 06 February 2021, 00:26
by thoun
If you're used to SCSS like I do, I managed to use it.
If you're interested, you can have a look here :
https://github.com/thoun/mow/commit/6ba ... 114989639a
At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
Re: what is the stack of BGA?
Posted: 06 February 2021, 01:01
by Victoria_La
You know docs are wiki and mostly maintained by community, so feel free to add a recipe in
https://en.doc.boardgamearena.com/Tools ... BGA_Studio
thoun wrote: ↑06 February 2021, 00:26
At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
Re: what is the stack of BGA?
Posted: 06 February 2021, 01:03
by Tisaac
thoun wrote: ↑06 February 2021, 00:26
If you're used to SCSS like I do, I managed to use it.
If you're interested, you can have a look here :
https://github.com/thoun/mow/commit/6ba ... 114989639a
At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
I personnaly build my scss before deploying on the studio and it works pretty well too.
Re: what is the stack of BGA?
Posted: 06 February 2021, 11:26
by thoun
Tisaac wrote: ↑06 February 2021, 01:03
I personnaly build my scss before deploying on the studio and it works pretty well too.
That was my first thought, but I like it to be automatic. However I plan to do the same for typescript to es5 and I'm not sure I can do it automatically, so I might go for ts+scss webpack build.
Re: what is the stack of BGA?
Posted: 06 February 2021, 11:41
by Een
thoun wrote: ↑06 February 2021, 00:26
If you're used to SCSS like I do, I managed to use it.
If you're interested, you can have a look here :
https://github.com/thoun/mow/commit/6ba ... 114989639a
At BGA admin if you read this, feel free to put it on code snippets on the doc. If scssphp lib is added to common files like APP_GAMEMODULE_PATH, it would be even easier !
Hi, the documentation is a wiki to allow for developer contributions, so don't hesitate to add a section for example in the Cookbook.
(nb: I took a quick look; but not sure about the context of running compileScss() would this be run on all requests to the game? it would be better to avoid this overhead)
Re: what is the stack of BGA?
Posted: 06 February 2021, 11:57
by thoun
It's more a POC than a ready to production code. That's why I plan to do a webpack build to make things cleaner, I'll add it in cookbook when I succeed.
If I find a vs code plug-in to build it automatically when I save source file, chained with automatic ftp upload, it would be even nicer!
Re: what is the stack of BGA?
Posted: 06 February 2021, 16:34
by Victoria_La
Like this one BuildOnSave
https://marketplace.visualstudio.com/it ... uildOnSave
thoun wrote: ↑06 February 2021, 11:57
It's more a POC than a ready to production code. That's why I plan to do a webpack build to make things cleaner, I'll add it in cookbook when I succeed.
If I find a vs code plug-in to build it automatically when I save source file, chained with automatic ftp upload, it would be even nicer!