@mundorum/oid
Version:
Web components based on the Digital Content Component (DCC) model for the Mundorum space.
43 lines (25 loc) • 1.04 kB
Markdown
# -o-id
Web components based on the Digital Content Component (DCC) model for the Mundorum space.
# Environment Install
In this project root directory:
~~~
npm install
~~~
# Development
To bundle the JavaScript components and infrastructure, we adopt Vite. The following statements build the development and production packages:
## Development Package
~~~
npm run build:dev
~~~
## Production Package
~~~
npm run build
~~~
## Development Server
If you wish to run tests in code developed under the -o-id framework, we advise installing:
1. Under VSCode
The plugin [Microsoft Live Preview](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server).
2. Console
The node.js [Web Dev Server](https://modern-web.dev/docs/dev-server/overview/). The `<script type="module">`, usual in the development mode, do not accept module inclusion from `file:` pages; they must be `http(s):`.
* installing http-server: `npm install @web/dev-server --save-dev`
* running http-server: `npx web-dev-server --node-resolve`