A library of simple web components built on top of Litr
Making development easier and providing example components to people new to Web Components.
This repo and Project Evergreen itself are still young and maturing rapidly. The Project Evergreen GitHub organization project tracker captures the high level goals and next steps, with plans to keep adding those lessons learned as features and improvements to this repo.
🙏 Please feel free to contribute, we are always looking forward to meeting like minded developers to collaborate with!
Packages should be organized as follows:
src/
eve-yourcomponent.js
eve-yourcomponent.css
package.json
README.md
The package.json should contain:
"name": "@evergreen-wc/eve-yourcomponent",
"version": "0.0.4",
"description": "Your component made with lit element",
"main": "src/eve-yourcomponent.js",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
Make sure you commit all changes then run:
npx lerna publish
Select patch
You need setup a git worktree for the gh-pages branch in a folder called dist
git worktree add dist gh-pages
Documentation components are in the docs folder. This folder is built with:
npm run gh-pages
then commit and push to gh-pages branch with:
cd dist
git add *
git commit -m "Updated documentation: updated button component usage" -S
git push origin gh-pages
Released under the Apache-2.0 License