https://github.com/pie-framework/pie-demo-component
A Custom Element for rendering a demo of PIE interaction
https://github.com/pie-framework/pie-demo-component
Last synced: 6 months ago
JSON representation
A Custom Element for rendering a demo of PIE interaction
- Host: GitHub
- URL: https://github.com/pie-framework/pie-demo-component
- Owner: pie-framework
- License: isc
- Created: 2018-11-13T21:00:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-15T11:17:48.000Z (8 months ago)
- Last Synced: 2024-12-25T00:05:55.812Z (6 months ago)
- Language: TypeScript
- Size: 2.5 MB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# PIE Demo
A Custom Element for demonstrating a PIE interaction designed for use with the pie-cloud packaging service.
```html
```## Installation
Install nvm, or at least make sure you have the 16.13.0 version installed (node --version)
https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/
1. nvm use
2. nvm install 16.13.0
3. npm install -g [email protected]
4. yarn install
5. (npm run build and yarn publish)## Commands
| `yarn ...` | description |
| ---------- | ------------------------------ |
| `install` | install |
| `test` | test |
| `dev` | run dev server for development |
| `release` | build, tag + publish pkg |## `yarn dev`
Edit [src/index.html](src/index.html) with the name and version of the element you want to demo. And also alter the model.
## Notes
When running `npm start` the HMR will attampt to re-define the custom element and get an already defined error. Need to refresh the page.
TODO
make script loading optional (but still define custome elements from pre-loaded)