jspm / generator

JSPM Import Map Generator
Apache License 2.0
167 stars 21 forks source link

feat: lockfile support, htmlGenerate lock inference #104

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

This adds support for a generator.getLock() function for retrieving the lock file from an installer, as well as passing a lock option into the installer, resolving https://github.com/jspm/generator/issues/87.

In addition, the htmlGenerate method will now infer the lockfile and map as best as possible from the existing import map in the HTML.

The freeze and latest resolution options can now be passed to the generator initialization to determine how to resolve against the lockfile (don't change the resolutions for freeze, and always seek to use latest resolutions for latest).