Skip to content

dom-native/dom-native

Repository files navigation

dom-native libary family

Demo development workflow

The demo development flow is now driven from repository root. This is the canonical way to develop and validate demo changes as file changes in this monorepo.

  • Watch demo bundle during development:
npm run demo-watch
  • Build demo bundle once:
npm run demo-build

Demo output contract

Root demo build generates browser-ready assets used by demo/web-content/index.html:

  • demo/web-content/js/demo-bundle.js
  • demo/web-content/css/demo-bundle.css

Typical demo dev loop

  • Run npm run watch-demo from repository root.
  • Edit sources under:
    • demo/src
    • dom-native/src
    • draggable/src
  • Reload demo/web-content/index.html via a local static server to verify behavior.

Dev

For this monorepo, install and run demo workflows from repository root.

npm install

Folder ownership model

  • Canonical demo source and generated snippets live under demo/src.
  • Canonical demo build outputs live under demo/web-content/js and demo/web-content/css.
  • Canonical demo build configuration lives at repository root:
    • rolldown.config.js
  • Package-level scripts stay focused on package library build/publish workflows.

Package library development

For dom-native library-specific build/watch:

cd dom-native
npm install
npm run build
npm run watch

About

DOM Native is a small utility for streamlining Native Web Components developments (#RealDOM, zero dependencies, < 15kb min, < 5kb gzip)

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors