ProjectEvergreen / project-evergreen

Wiki and high level "feature" tracker for Project Evergreen
https://projectevergreen.github.io/
Apache License 2.0
11 stars 1 forks source link

Publish a sample component (custom element) to NPM #37

Closed thescientist13 closed 6 years ago

thescientist13 commented 6 years ago

Type of Change

Summary

An example of what a custom element published to NPM might look like, and how to use it.

This would also compliment existing tasks

Use Case

Would act as a reference for the community, and for the project itself to better understand the maintenance and consuming needs of a shared module (for example if Project Evergreen wanted to publish shared packages).

Code Sample

TBD

Pros / Cons

No cons that I can think of, just a little trial and error and feedback from the community.

thescientist13 commented 6 years ago

https://blog.npmjs.org/post/165769683050/publishing-what-you-mean-to-publish

thescientist13 commented 6 years ago

Guide for publishing https://docs.npmjs.com/getting-started/publishing-npm-packages

Repo to publish https://github.com/ProjectEvergreen/component-simple-slider

thescientist13 commented 6 years ago

published 0.1.0! https://www.npmjs.com/package/component-simple-slider

thescientist13 commented 6 years ago

done https://github.com/ProjectEvergreen/projectevergreen.github.io/pull/19