@omobio/create-app-ui
v1.4.0
Published
Scaffold enterprise React admin apps (Vite, TypeScript, shadcn-style UI) from the Omobio UI platform
Maintainers
Readme
create-app-ui
Enterprise React UI boilerplate generator. Ships shared boilerplate plus template overlays so generated apps are ready to run.
Use with npx (after publish)
npx @omobio/create-app-ui@latest my-appUpgrade an existing app
Pull the latest boilerplate and template infrastructure into a project that was already scaffolded. Adds and updates files only — never deletes your pages, routes, or custom code.
cd my-existing-app
npx @omobio/create-app-ui@latest upgrade --dry-run # preview
npx @omobio/create-app-ui@latest upgrade -y # applyUI kit only — skip template layout/components:
npx @omobio/create-app-ui@latest upgrade --boilerplate-only -yForce template if auto-detect fails:
npx @omobio/create-app-ui@latest upgrade --template sor -ySynced from boilerplate: src/components/ui, theme, hooks, api, styles, shared utilities.
Synced from template: layout shell, auth layout, sidebar, headers, template components (not pages).
Protected (never modified): src/pages/**, App.tsx, main.tsx, config/branding.ts, config/navigation.ts, config/chart-data.ts, lib/breadcrumbs.ts.
Use --with-overrides to also sync config/constants.ts and context/theme-provider.tsx.
Non-interactive:
npx @omobio/create-app-ui@latest my-app -y --template admin-portal --no-install
npx @omobio/create-app-ui@latest my-app -y --template blank --no-install --no-git
npx @omobio/create-app-ui@latest my-sor -y --template sor --no-install --no-git
npx @omobio/create-app-ui@latest my-app -y --template admin-portal --git --company "Acme Inc"Templates: admin-portal, blank, sor.
Then:
cd my-app
npm install
npm run devMonorepo development
From ui-platform/create-app-ui:
npm install
npm run build
npm link
create-app-ui my-appOr from ui-platform root:
npm run createHow generation works
- Boilerplate —
boilerplate/react-base(app shell, configs, re-export stubs for the UI kit) - Template overlay —
templates/<template>(admin-portal, sor, or blank) - Placeholder replacement and optional
npm install/git init
In the monorepo, assets live under ui-platform/. The published npm package bundles copies of boilerplate/ and templates/ next to dist/.
UI kit dependency: generated apps depend on the @omobio/ui npm package (the boilerplate's src/components/ui/* files are thin re-export stubs). Publish @omobio/ui before publishing create-app-ui — otherwise npm install fails in generated apps. Kit updates reach existing apps via npm update @omobio/ui; the upgrade command covers template files and new stubs.
Publish to npm
Prerequisites: npm account, unique package name (create-app-ui may already be taken — use a scoped name if needed, e.g. @your-org/create-app-ui).
- Log in:
npm login- Verify the tarball (includes CLI, boilerplate, templates):
cd ui-platform/create-app-ui
npm run pack:check- Publish from the ui-platform root (avoids workspace E404 errors). Publish
@omobio/uifirst — generated apps depend on it:
cd ui-platform
npm publish -w @omobio/ui --otp=123456
npm publish -w @omobio/create-app-ui --otp=123456Or from the package folder:
cd ui-platform/create-app-ui
npm run publish:npm -- --otp=123456Use your current 2FA code instead of 123456. Both packages publish under the @omobio npm organization — confirm you are logged in as a member (npm whoami).
- Bump version for updates:
npm version patch # or minor / major
npm publishConsumers then run:
npx @omobio/create-app-ui@latest my-appLegacy unscoped package
Versions up to 1.0.8 were published as unscoped create-app-ui. After the first @omobio/create-app-ui release, deprecate the old name so users are pointed to the new one:
npm deprecate create-app-ui "Moved to @omobio/create-app-ui"Add a new template
- Add
../templates/<template-name>/in the monorepo (overlay files only). - Register it in
src/prompts.tsandsrc/cli-args.ts. - Rebuild and publish.
Scripts
| Script | Description |
|--------|-------------|
| npm run build | Compile TypeScript to dist/ |
| npm run prepare-publish | Copy boilerplate + templates into this package |
| npm run pack:check | Dry-run npm pack |
| npm run start | Run CLI via tsx (local dev) |
