@amjs/create-index

Allows to create a bundle index.js file with all listed resources from a directory

Usage no npm install needed!

<script type="module">
  import amjsCreateIndex from 'https://cdn.skypack.dev/@amjs/create-index';
</script>

README

@amjs/create-index 0.1.4

Installation

$ npm i @amjs/create-index

Use

Declare an script within your package.json file:

{
    "scripts": {
        "index": "node node_modules/@amjs/create-index <folder>"
    }
}

Where <folder> is your resources folder. Then run the script:

$ npm run index