mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
23 lines
413 B
JavaScript
23 lines
413 B
JavaScript
#! /usr/bin/env node
|
|
|
|
const path = require('path');
|
|
|
|
const rollup = require('rollup');
|
|
const jsn = require('rollup-plugin-json');
|
|
|
|
async function build() {
|
|
const bundle = await rollup.rollup({
|
|
input: path.resolve(__dirname, 'index.js'),
|
|
plugins: [
|
|
jsn(),
|
|
],
|
|
});
|
|
|
|
await bundle.write({
|
|
file: path.resolve(__dirname, 'dist/bundle.js'),
|
|
format: 'umd',
|
|
});
|
|
}
|
|
|
|
module.exports = build;
|