@enos5/enos-vue
v1.2.2
Published
Shared Vue 3 UI components from Enos
Readme
@enos5/enos-vue
Shared Vue 3 UI components from Enos
Requirements
- Node.js 20+
- npm
Install
Clone the repository, then install dependencies:
npm installBuild the package:
npm run buildComponent Documentation Sandbox
This repository includes a dedicated docs playground for the component library. It renders each component with a live example and generates editable prop controls from the component prop definitions.
Run it locally:
npm install
npm run docs:devBuild the docs site:
npm run docs:buildRun With Docker
Start the docs app with Docker Compose:
docker compose up --buildThen open http://localhost:4173.
Use In Another Project
Install the published package:
npm install @enos5/enos-vueThis package expects these peer dependencies in the consuming app:
vue@inertiajs/vue3@heroicons/vuevue-i18n
Rich text support uses TinyMCE and is bundled as a regular dependency in this library. Consuming apps can use the shared TinyEditor component directly or through InputGroup with type="tiny-editor".
TinyEditor is intentionally app-agnostic:
- pass
initto merge in app-specific TinyMCE configuration - pass
licenseKeyto override the TinyMCE license mode when needed - pass
readonlyto lock editing without removing the viewer - pass
pluginsandtoolbarto change the editing surface
You can register everything globally:
import { createApp } from 'vue'
import App from './App.vue'
import { EnosVue } from '@enos5/enos-vue'
createApp(App).use(EnosVue).mount('#app')Or import individual components:
import { PrimaryButton, TextInput } from '@enos5/enos-vue'Publish To npm
Before publishing, build the package and verify the tarball:
npm run build
npm pack --dry-runnpm run build generates the release artifacts in dist/:
dist/index.jsfor runtime importsdist/index.js.mapfor debuggingdist/index.d.tsfor TypeScript consumers
Then bump the version in package.json, commit the change, and make sure you are logged in to npm:
npm loginPublish the package:
npm publishIf this is a scoped package being published publicly for the first time, use:
npm publish --access publicRelease Checklist
For each release:
- Update the version number in
package.json. - Commit the version change.
- Run
npm run build. - Run
npm pack --dry-runif you want to inspect the publish contents. - Run
npm publish. - Create a matching release in Gitea for the same version tag.
Keeping the npm package version and the Gitea release aligned avoids release drift.
