0.8.31 • Published 6 months ago

@pandino/bundle-installer-nodejs v0.8.31

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
6 months ago

bundle-installer-nodejs

build-test license TypeScript

A Pandino Bundle which can load external Bundles defined in the file-system.

Context

This package is part of the pandino-root monorepo. For detailed information about what is Pandino / how this package fits into the ecosystem, please consult with the related documentation(s).

Usage

Install dependencies

npm install @pandino/pandino @pandino/bundle-installer-nodejs;

Setup Pandino and the Bundle Installer Bundle

import Pandino from '@pandino/pandino';
import loaderConfiguration from '@pandino/loader-configuration-nodejs';
import bundleInstallerHeaders from '@pandino/bundle-installer-nodejs';
const path = require("path");

const deploymentRoot = path.normalize(path.join(__dirname, 'deploy'));

(async () => {
    const app = express();
    const port = 3000;
    const pandino = new Pandino({
        ...loaderConfiguration,
        'pandino.deployment.root': deploymentRoot,
    });

    await pandino.init();
    await pandino.start();

    await pandino.getBundleContext().installBundle(bundleInstallerHeaders);
})();

Detecting Bundles

Based on the config above, the Bundle Installer will detect changes in the ./deploy folder, and install / uninstall all Bundles placed under it.

License

Eclipse Public License - v 2.0

0.8.30

6 months ago

0.8.31

6 months ago

0.8.29

10 months ago

0.8.28

10 months ago

0.8.25

1 year ago

0.8.24

1 year ago

0.8.27

1 year ago

0.8.26

1 year ago

0.8.23

1 year ago

0.8.22

1 year ago

0.8.20

1 year ago

0.8.19

2 years ago

0.8.18

2 years ago

0.8.17

2 years ago

0.8.16

2 years ago

0.8.15

2 years ago

0.8.14

2 years ago

0.8.13

2 years ago

0.8.12

2 years ago

0.8.9

2 years ago

0.8.8

2 years ago