0.4.2 • Published 4 years ago

@slimio/bundler v0.4.2

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

bundler

version Maintenance MIT dep size Known Vulnerabilities Build Status

SlimIO Archive bundler & Core compiler.

Requirements

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i @slimio/bundler
# or
$ yarn add @slimio/bundler

Usage example

TBC

API

Create Addon archive.

const { generateAddonArchive } = require("@slimio/bundler");

generateAddonArchive("F:\\Code\\Agent\\addons\\alerting", {
    debug: true
}).catch(console.error);

Compile the core. Options is described by the following interface

interface CoreOptions {
    debug?: boolean;
    cwd?: string;
}
const { generateCoreExecutable } = require("@slimio/bundler");
const { join } = require("path");

generateCoreExecutable("F:\\Code\\AgentTest", {
        debug: true,
        cwd: join(__dirname, "build")
    });
}).then(() => console.log("core compiled")).catch(console.error);

Dependencies

NameRefactoringSecurity RiskUsage
@slimio/arg-checkerMinorLowArgument Checker
@slimio/isMinorLowType checker
@slimio/manifestMinorLowSlimIO manifest
@slimio/tarball⚠️MajorHighSlimIO Addon & module archive tarball packer/extractor
get-dir-sizeMinorLowGet a directory size
nexe⚠️MajorHighCreate Node.js executable
pretty-bytesMinorLowDisplaying file sizes for humans

License

MIT