https://github.com/captaincodeman/custom-elements-starter
Example Project for developing Custom Elements (with Typescript)
https://github.com/captaincodeman/custom-elements-starter
Last synced: 4 months ago
JSON representation
Example Project for developing Custom Elements (with Typescript)
- Host: GitHub
- URL: https://github.com/captaincodeman/custom-elements-starter
- Owner: CaptainCodeman
- Created: 2018-12-06T16:47:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:32:16.000Z (about 3 years ago)
- Last Synced: 2025-01-08T14:15:28.618Z (about 1 year ago)
- Language: HTML
- Size: 2.35 MB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# custom-elements-starter
Example Project for developing Custom Elements (with Typescript) in a way
that is suitable for publishing to npm and importing into other projects,
typically the consuming application.
This split allows you to focus on either the UI elements, which are 'dumb'
(properties down, events up) or the application where you'll typically be
working with Redux, routing and such.
## Usage
### Installation
npm install
### Build Project
npm run build
Running in dev mode will watch for file changes and re-build as required:
npm run dev
### Start Development Server
Use in conjunction with `npm run dev` to have updates automatically reload:
npm start
### Run Unit Tests
npm test
### Regenerate Baseline Screenshots
npm run test:regenerate
## Tests
### Unit Tests
### Integration Tests
Configure integration test paramaters in `test/integration/config.json`