test-webcomponent-js
v1.2.0
Published
1.0 practice test 23JUN2021 for upcoming workshop
Readme
This takes a Vanilla Web Component and publishes it to NPM.
In NPM as test-webcomponent-js
<script type="module" src="https://unpkg.com/[email protected]/index.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/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
