Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LeavittSoftware/titanium-elements
https://github.com/LeavittSoftware/titanium-elements
hacktoberfest lit-element lit-html webcomponents
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/LeavittSoftware/titanium-elements
- Owner: LeavittSoftware
- Created: 2018-08-23T20:28:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T16:47:56.000Z (3 months ago)
- Last Synced: 2024-11-17T10:45:13.749Z (3 months ago)
- Topics: hacktoberfest, lit-element, lit-html, webcomponents
- Language: TypeScript
- Homepage: https://storybook.leavitt.com
- Size: 9.92 MB
- Stars: 18
- Watchers: 10
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-lit - Titanium Elements - Collection of lightweight web components used by Leavitt Group Enterprises. (Component Libraries)
- awesome-web-components - Titanium Elements - Collection of lightweight web components used by Leavitt Group Enterprises. (Real World / Component Libraries)
README
# Titanium Elements
[](https://opensource.org/licenses/MIT)
[](https://lerna.js.org/)
[](http://www.typescriptlang.org/)
[](https://github.com/prettier/prettier)
A collection of lightweight web components used by Leavitt Group Enterprises and partnering organizations.
## Development
npm i
npm start## Contributions
**[Conventional Commits ](https://www.conventionalcommits.org/en/v1.0.0-beta.4/#summary) Required**
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with [SemVer](http://semver.org/), by describing the features, fixes, and breaking changes made in commit messages.
**[TypeScript](https://www.typescriptlang.org/) Required**
Types enable JavaScript developers to use highly-productive development tools and practices like static checking and code refactoring when developing JavaScript applications.
## Creating a new component
### Create the component
- [ ] Copy an existing component
- [ ] Delete the CHANGELOG.md
- [ ] Update the package.json
- Find and replace the old package name with the new package name
- Change dependencies (keep tslib)
- Reset version number to 1.0.0 (this is important)
- [ ] Delete lib and node_modules inside the new component folder
- [ ] Replace the copied component in src with your component
- [ ] Add a path to your component in the root level tsconfig.json
- [ ] Run npm start (npm install prior if you haven't ran it already)### Create the leavittbook story
- [ ] Copy an existing component story leavittbook/demos/titanium-chip
- [ ] Rename all folders and files replacing the old component name with the new one
- [ ] find and replace old component name with new in the following files
- index.html
- project.json
- {componentname}-demo.ts (find and replace will miss a few places here)
- {componentname}-playground.ts
- [ ] Update my-app inside of leavittbook
- Add a PageJS route for your story
- Add a link in the menu for your story
- Add your component tags in the main content
- [ ] Write your stories in the playground.ts file### Important
- [ ] Publish to NPM after the PR has been approved but before it gets merged
### Publishing to NPM
- [ ] Create NPM account and get invited to the leavittsoftware org
- [ ] Run the login command - `npm login`
- [ ] Change directory to the new package (Verify the version is 1.0.0 in package.json)
- [ ] Run the publish command - `npm publish --access=public`