All Projects → chase-moskal → importly

chase-moskal / importly

Licence: MIT license
import map generator

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to importly

com.newtonsoft.json
Unity package manager setup for Newtonsoft's JSON library
Stars: ✭ 27 (-35.71%)
Mutual labels:  package-manager
honest
Are your installed packages _really_ the same as you saw on GitHub?
Stars: ✭ 25 (-40.48%)
Mutual labels:  package-manager
glam
A cross-platform package manager.
Stars: ✭ 61 (+45.24%)
Mutual labels:  package-manager
zpm
InterSystems ObjectScript Package Manager
Stars: ✭ 17 (-59.52%)
Mutual labels:  package-manager
cppan
Project evolved into Software Network: https://github.com/SoftwareNetwork/sw
Stars: ✭ 108 (+157.14%)
Mutual labels:  package-manager
pint
A single-file command-line package manager for Windows.
Stars: ✭ 35 (-16.67%)
Mutual labels:  package-manager
sw
Software Manager. Build System, Build System Generator and Package Manager. C/C++ and other languages. Tools and libraries for Software Management.
Stars: ✭ 93 (+121.43%)
Mutual labels:  package-manager
agda-pkg
apkg - package manager for Agda
Stars: ✭ 30 (-28.57%)
Mutual labels:  package-manager
jean
Bored from installing tiny shell scripts and .dotfiles manually? Huh! Missing Shell Package Manager For Linux
Stars: ✭ 21 (-50%)
Mutual labels:  package-manager
sherpa
a mini-package-manager for QNAP NAS
Stars: ✭ 63 (+50%)
Mutual labels:  package-manager
bramble
Purely functional build system and package manager
Stars: ✭ 173 (+311.9%)
Mutual labels:  package-manager
gitpack
Git-based package manager written in POSIX shell
Stars: ✭ 72 (+71.43%)
Mutual labels:  package-manager
awesome-package-manager
☘ Awesome package manager resources
Stars: ✭ 87 (+107.14%)
Mutual labels:  package-manager
loverocks
LÖVE + Luarocks
Stars: ✭ 80 (+90.48%)
Mutual labels:  package-manager
iridium
💎 Growing collection of VS Code extensions with a fancy name
Stars: ✭ 39 (-7.14%)
Mutual labels:  package-manager
conex
establish trust in community repositories, cryptographically signed by library authors
Stars: ✭ 32 (-23.81%)
Mutual labels:  package-manager
MGM-Ability
No description or website provided.
Stars: ✭ 64 (+52.38%)
Mutual labels:  package-manager
wsjcpp
Yet another... C++ Source Package Manager
Stars: ✭ 18 (-57.14%)
Mutual labels:  package-manager
get-bin-path
Get the current package's binary path
Stars: ✭ 25 (-40.48%)
Mutual labels:  package-manager
cati
Cati Unix Package Manager
Stars: ✭ 19 (-54.76%)
Mutual labels:  package-manager

📦📡 importly — import map generator

importly is a command-line utility that generates import maps.

so your apps can load es module packages without a bundler.

works nicely with es-module-shims.


🛸 importly basic usage

npx importly < package-lock.json > importmap.json

--host=node_modules
specify where the import map points to.
where the dependencies will be loaded from.

  • --host=node_modules (default) — point to your node_modules directory
  • --host=unpkg — point to the unpkg cdn
  • --host=jsdelivr — point to the jsdelivr cdn

--dev
include your package's devDependencies.


--lookup=node_modules
tell importly where to seek information about packages.
it needs to inspect each package json.

  • --lookup=node_modules (default) — look in your local node_modules directory
  • --lookup=unpkg — query the unpkg cdn
  • --lookup=jsdelivr — query the jsdelivr cdn

--root=/
the url prefix that leads to your node_modules directory.
this affects where the importmap is pointing to.
only applies when --host=node_modules.

  • --root=/ (default) — find node_modules at your server root
  • --root="" — find node_modules in the current directory
  • --root=/my/special/path/ — find node_modules at /my/special/path/node_modules

--semver=exact
the semver prefix to use on the import map versions.
only applies when pointing to a cloud cdn.

  • --semver=exact or --semver="" (default) no prefix, use pinned versions
  • --semver=major or --semver=^ pin major version, with caret prefix
  • --semver=minor or --semver=~ pin minor version, with tilde prefix

--mini
minify importmap output.
eliminates whitespace.


🌠 the more you know, about importly

you don't have to use a package-lock.json

  • a package.json will work.
  • actually, any json that has dependencies will work.
  • however, the package-lock.json is better because it includes subdependencies (and they're scoped, which means your dependencies can use different versions of a single subdependency)

scoped subdependencies only work when

  • you're using a package-lock.json
  • and you're using --host=node_modules

works offline when

  • you're using --host=node_modules
  • and you're using --lookup=node_modules

🍻 importly is open source

  • ask any questions in the issues or discussions tab
  • fix that bug, send me those pull requests
  • show me some love with your sweet github stars
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].