create-nodomx
v0.2.6
Published
Starter generator for NodomX applications.
Maintainers
Readme
create-nodomx
Starter generator for NodomX applications.
Usage
npm create nodomx@latest my-app
npx create-nodomx@latest my-app
create-nodomx my-appCommon examples
create-nodomx my-app --install
create-nodomx my-app --router --store
create-nodomx my-app --router --store --typescript
create-nodomx my-app --template basic
create-nodomx my-lib --template library
create-nodomx my-docs --template docs
create-nodomx my-ssr-app --template ssr
create-nodomx my-app --package-mode local --installregistry mode writes semver package ranges for publish-ready templates.local mode writes file: dependencies so the template can be tested against this repository directly.
Templates
vite(default): modern Vite-based starter usingvite-plugin-nodomxbasic: legacy Rollup starter using@nodomx/rollup-plugin-ndand the built-in dev serverlibrary: Vite library preset for publishing reusable.ndcomponentsdocs: VitePress documentation presetssr: Vite +@nodomx/ssrstarter with static generation scripts
Feature flags for vite
--router: scaffoldsrc/routerand starter views--store: scaffold the official@nodomx/storesetup insrc/stores--router --store: wire both together for route + store starter usage--typescript: switch the Vite starter tomain.ts,vite.config.ts,tsconfig.json, and typed.ndimports
Default Vite starter structure
src/componentssrc/stylessrc/layoutswhen--routeris enabledsrc/router/routes.(js|ts)src/stores/index.(js|ts)when--storeis enabled
