@pie-framework/pie-demo
TypeScript icon, indicating that this package has built-in type declarations

4.1.6 • Public • Published

Built With Stencil

PIE Demo

A Custom Element for demonstrating a PIE interaction designed for use with the pie-cloud packaging service.

<pie-demo editor="true" pie="@pie-element/multiple-choice"> </pie-demo>

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 pnpm@6.35.1
  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 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)

/@pie-framework/pie-demo/

    Package Sidebar

    Install

    npm i @pie-framework/pie-demo

    Weekly Downloads

    5

    Version

    4.1.6

    License

    ISC

    Unpacked Size

    22.9 MB

    Total Files

    168

    Last publish

    Collaborators

    • andreeapescar
    • chillenious
    • iacoshoria
    • ed.eustace
    • evaneus
    • lakatosandrei