this package is part of the Elion project.
This package was created to be able quickly and painlessly build js/ts
files while ignoring problems
with commonJS/ESM
modules. To get started, you just need to install this package and change the project's build
configuration
Install @node-elion/builder
with npm
This package is recommended to be installed as a dev dependency
npm i --save-dev @node-elion/builder
Update package.json
to be able to use @node-elion/builder
package:
/* package.json */
{
/*...*/
"scripts": {
"start": "ebi start",
"build": "ebi build"
}
/*...*/
}
parameter | alias | type | default | description |
---|---|---|---|---|
--entry |
-e |
string |
src/index.js |
sets entry to your application. This is usually the root file, in which all necessary processes are imported and run. |
--assets-folder |
-a |
string |
src/assets |
files (like.tf or .json etc.) that should be stored in raw format |
--plugin |
-p |
string[] |
[] |
Builder plugins |
--plugin-config |
-l |
string[] |
[] |
Plugin config |
--plugins-config-file |
-c |
string |
Plugin config file (should be .json format) |
|
--debug |
-d |
boolean |
false |
pass Inspect argument (--inspect ) to started process |
--build-folder |
-b |
string |
./.devbuild |
Folder, where built files will be stored (you can use tmp for in order to use the temporary folder of your device) |
parameter | alias | type | default | description |
---|---|---|---|---|
--entry |
-e |
string |
src/index.js |
sets entry to your application. This is usually the root file, in which all necessary processes are imported and run. |
--assets-folder |
-a |
string |
src/assets |
files (like.tf or .json etc.) that should be stored in raw format |
--plugin |
-p |
string[] |
[] |
Builder plugins |
--plugin-config |
-l |
string[] |
[] |
Plugin config |
--plugins-config-file |
-c |
string |
Plugin config file (should be .json format) |
|
--build-folder |
-b |
string |
./build |
Folder, where built files will be stored |
--keep-classnames |
boolean |
false |
Keep classnames in production build |
Check the examples folder for a better understanding of how the loader works
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.