Page 1 of 1

Trimming nuBuilder download size

Posted: Mon Jan 25, 2021 10:38 am
by apmuthu
ACE Code Editor

The ace code editor is quite heavy at over 15MB.
The main components are the ace/worker-xquery.js file at 6.8 MB and the ace/src-min-noconflict folder at 6.2 MB.
Some files in the ace/src-min-noconflict folder are included in the nuace.php file.
ace-min-files.png
ace-x-query.png
There are some mode-*.js files too that are called upon in the nuace.php file too and these files may call others as well.

The other files that may be included are:
nuace-other-files.png
nudb
The nudb (phpMyAdmin) has over 44 languages in it's locale folder weighing 13.1 MB.
The nudb docs is at 2MB.

Kindly post test results.

Re: Trimming nuBuilder download size

Posted: Mon Jan 25, 2021 11:18 am
by apmuthu
The lines like mode/sql are not paths and refer to files like mode-sql.js.

Attached is a reduced ace folder zip file that can unzipped and used to test out in the place of the full libs/ace folder in v4.5 and that in the webroot for v4.
ace.zip

Re: Trimming nuBuilder download size

Posted: Mon Jan 25, 2021 11:52 am
by kev1n
It's already committed in 4.5.

Re: Trimming nuBuilder download size

Posted: Mon Jan 25, 2021 3:28 pm
by apmuthu
Wonderful!

Re: Trimming nuBuilder download size

Posted: Wed Jan 27, 2021 2:10 pm
by apmuthu
Backported fileset for manual install in v4 commit 199.