Skip to content

[discussion] Build tools #107

@brantwedel

Description

@brantwedel

Working on a build tool similar to "webpack" or "make", written in kerboscript. Just wondering if I should make a PR to this library when it is ready, or if it should be a separate repo.

Also opening a discussion for what build tools / workflow would be useful. Ideally, tools that can be written in kerboscript.


You can take a look at it here in the meantime, lots of abstractions to work out, code to refactor: master...brantwedel:bw/lib-pack-initial

Notable features of lib_pack:
  • smart minification / local name minification.
  • inlining of "run" statement files (optionally as single line so the main file maintains line numbers for debugging)
  • recursive run file lookups.
  • c/c++ style compiler directives for toggling code/functions.
  • TODO: plugin system for additional functionality

Example lib_pack supporting json library (PR coming, with or without #directives, depending on results of this discussion): https://gist.github.com/brantwedel/218147d6fde9e6da8855646fcacef286

Note: Looking through the history, this discussion is similar to #6 but with a bit more reach than just a stripper (also an "auto doc" plugin would be nice, and maybe sourcemaps for debugging single line minification).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions