A Simple yet powerful JS compiler.
- Merge multiple files into one without using npm's dist (its slow).
- Drop-n-play functionality
- Organization of functions
- Quick-file searching
- Readability
- fileReader.js - Reads files async
- commentReader.js - Loads configs... comments
- functionOrderer.js - Orders functions/methods
- jsDeconstructor.js - Deconstructs JS code into "layers" (scopes)
- jsReconstructor.js - Reconstructs JS code back into code.
Input:
/* CCONFIG
useStrict = 1;
license = "
Copyright @c Andrew S 2017
ALL RIGHTS RESERVED
";
*/
class hello {
constructor() {
}
hello() {
}
}
Deconstruction:
{
"type": "global",
"data":
[ ["\n", "\n"],
{ "type": "class",
"data":
[
{
"type": "method",
"data": [ "\n", "\n", " ", " ", " ", " " ],
"parent": "[Circular]",
"scope": 2,
"name": "constructor()"
},
{
"type": "method",
"data": [ "\n", "\n", " ", " ", " ", " " ],
"parent": "[Circular]",
"scope": 2,
"name": "hello()"
},
[ "\n" ]
],
"parent": "[Circular]",
"scope": 1,
"name": "class hello" },
[ "\n" ] ],
"parent": null,
"scope": 0 }
Reconstruction:
"use strict";
/*
Copyright @c Andrew S 2017
ALL RIGHTS RESERVED
*/
class hello {
constructor() {
}
hello() {
}
}