1.2.0 • Published 3 years ago
test-webcomponent-js v1.2.0
This takes a Vanilla Web Component and publishes it to NPM.
In NPM as test-webcomponent-js
<script type="module" src="https://unpkg.com/test-webcomponent-js@1.0.1/index.js"></script>
<script nomodule src="https://unpkg.com/test-webcomponent-js@1.0.1/index.js"></script>
<!-- $COMPONENT -->
<show-post postid="1220"></show-post>
<!-- $COMPONENT -->
- the NAME in package.json mut be unique across npm
- make changes to js
- update package.json version etc...
- login to npm
- npm publish (be in correct folder!)
- change version number in html page