0.1.1 • Published 9 months ago

@nil-/rebundler v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

@nil-/rebundler

This is for personal use to simplify rebundling of local/independent js/ts scripts. Very opinionated and implemented for personal use.

Currently supports:

  • iife / cjs / es
    • uses rollup to bundle a js file
  • json
    • uses ts ts-json-schema-generator to generate json schema

to execute

npx @nil-/rebundler COMMAND PATH [...OPTIONS]

PATH = input directory where the file(s) to process are located

SHORTLONGCOMMANDPURPOSE
-o--outalldestination folder
-f--filealltarget input file. will be used for export name for iife
-p--pluginiife / cjs / esenable plugin. currently only supports "terser"

If file is provided for json, all ts files will be bundled into one monolithic json schema. If not, each ts file in the input path will have a json schema of their own. Any sibling imports will be referenced appropriately through $ref.

Also supports configuration through nil.rebundler.config.js in the input path.

Example of the configuration

export default {
    in: ".",
    out: "./out",
    mode: {
        type: "iife",
        file: "index.js",
        plugins: ["terser"]
    }
};
0.1.0

10 months ago

0.1.1

9 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.9

1 year ago

0.0.16

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago