0.0.22 • Published 1 year ago

@ui.js.org/ui-js-stage-1-esbuild-plugin v0.0.22

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ui.js stage1 experimental tags bundling with esbuild

Compatible with ui.js 0.5-0.7.x

const esbuild = require('esbuild');
const UIPlugin = require('@ui.js.org/ui-js-stage-1-esbuild-plugin');

(async () => {
    await esbuild.build({
        supported: {
            "dynamic-import": true
        },
        // application entry point
        entryPoints: ['src/index.js'],
        format: 'esm',
        bundle: true,
        minify: true,
        treeShaking: true,
        target: ['chrome60','firefox60','safari12'],
        // bundled application
        outfile: 'public/bundle.js',

        plugins: [await UIPlugin({

            // scan 'src/ui' folder for all *.tag files
            path: 'src/ui',

            // all tags in 'src/ui/tags' folder, including subfolders, will have the same name in the DOM
            // as the file name. File names must contain dashes. "my-component.tag" will be <my-component/>
            keepName: '/tags/**/*-*.tag', // optional

            // ignore adding *.tag files from 'src/ui/my-dev' folder to the package
            ignore: '/my-dev/**' // optional
        })],
    })
})();

Complete example

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

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

0.0.0

1 year ago