1.0.35 • Published 3 years ago

immg v1.0.35

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Implementation import-maps generator

Usage:

> npx immg --help

Options:
  -b, --baseUrlPath [type]  <string> path to root package.json
  -f, --forceMode [type]        <boolean> if enable - force rewrite previous importmap (default: false)

  -x, --prefix [type]       <string> append prefix to path (default: "") for generate in importsmap

                            example: with arg './module/' in package.importmap.json:
                            "@my/lib": "node_modules/@tc/asynchronous-lib/dist/"
                            generate that:
                            "@my/lib": "./module/node_modules/@tc/asynchronous-lib/dist/"

  -h, --help                display help for command

Example:

npx immg --baseUrlPath D:/path/to/your/package.json --forceMode true --prefix ./module/

or

> cd path/to/your/project
> npx immg -x ./module/ -f true

Git install

npm i https://github.com/VaskillerDev/immg.git -g

Netstat usage:

> npx immg-netstat --help

Options:
  -p, --pathToFile [type]  <string> path to package.importmap.json
  -u, --baseUrl [type]     <string> base url to server with modules
  -h, --help               display help for command

Example:

npx immg-netstat -p D:/path/to/your/package.importmap.json -u https://localhost:9000/your/project/root

Todo

  • Basic generator import path
  • Specifier remapping
  • Scoping support
  • Web checker access es-module via response code
  • Dynamic import map API
1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago