0.3.0 • Published 4 months ago

@anio-jsbundler/bundler v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Types of projects

CLI

A command line project will need to have the following root structure:

/build/
/anio_project.mjs

/src/cli.mjs <- entry point for CLI application (auto shebang in build)

Library

A library project will need to have the following root structure:

/build/
/anio_project.mjs

/src/export/ <- functions that get exposed to the outside world
/src/auto/ <- automatically generated code by anio-jsbundler

Optional directories:

/bundle.resources/

/src/export/ contains all library functions that should be exposed in the final build.

Sub-directories can be utilized but are discouraged since their import names get changed:

/src/export/fs/func.mjs will be exported as fs$func. (the slash gets replaced by a dollar sign)

Dots are discouraged too and get replaced by an underscore (i.e. fs/func.test.mjs is fs$func_test).

/src/auto/ contains automatically generated functions by the bundler.

A library must expose a factory function for each exported function.

However, factory functions can (in some cases) be automatically generated.

0.3.0

4 months ago

0.2.5

5 months ago

0.1.0

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.1

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.4

5 months ago

0.0.1

5 months ago