Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Towards automated npm publishing workflows #110

Open
guybedford opened this issue Dec 8, 2015 · 0 comments
Open

Towards automated npm publishing workflows #110

guybedford opened this issue Dec 8, 2015 · 0 comments

Comments

@guybedford
Copy link
Member

Just to note the current plans here -

We want to eventually support jspm publish to publish the registry as listed in the package.json of the local project, with the name and version also taken from the package.json.

This would then run a publish hook of the registry implementation itself, which can do some sanitizing and init prompts as well.

There are two workflows we need to support for publishing to npm:

  1. Publishing within the standard Node & npm conventions. That means:
    • Check all dependencies from npm and named exactly as npm expects
    • Check any GitHub dependencies are in turn installed with the registry: 'npm' override
    • Confirm no use of plugin syntax
    • Build out plugins / formats to CJS to the dist folder
    • Generate modified package.json based on compatibility before publishing
    • Publishing files from the directories.dist folder only most likely will be the convention for all publish workflows.
  2. Publishing jspm conventions to npm. This means setting jspmPackage: true in the package.json before publishing.

The above would be very much like a wizard, with configuration options inferred as necessary. This is critical to being able to support proper ecosystems of code by encouraging and demonstrating the necessary conventions.

This is of course far-future stuff - jspm 0.18 at least.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant