vue-dynamix
v0.0.78
Published
A vue Library for custom elements and components
Downloads
81
Readme
Dynamix
A Vue 3 component library for building custom interfaces with Tailwind CSS and more.
🚀 Installation
📦 From Latest GitHub Release
yarn add https://github.com/sohypekhaled/dynamix/releases/latest/download/dynamix.tgz
# or
npm install https://github.com/sohypekhaled/dynamix/releases/latest/download/dynamix.tgz🧪 From a Specific Tag
yarn add https://github.com/sohypekhaled/dynamix/releases/download/v0.1.0/dynamix.tgz🛠️ From Source (if building locally)
yarn add github:sohypekhaled/dynamix⚠️ This requires the consuming project to build the library using
prepareorbuildscripts.
📦 Usage
import { createApp } from 'vue';
import { DynamixPlugin } from 'dynamix';
const app = createApp(App);
app.use(DynamixPlugin);Then use any of the components:
<template>
<DXButton label="Click me" />
</template>Styles like Tailwind CSS must be set up in the parent project.
🔁 Updating
To update to the latest version:
yarn remove dynamix && yarn add https://github.com/sohypekhaled/dynamix/releases/latest/download/dynamix.tgz🛠 GitHub Workflow for Releasing
This repo includes an automated GitHub Actions workflow:
✅ Triggered on:
- Push to
mainordev - Manual dispatch with optional version input
🧰 What it does:
- Bumps the version in
package.json(auto or manually) - Tags the release
- Builds the library using Vite
- Packs it into
dynamix.tgz - Uploads it to a GitHub Release
💡 Manual Trigger Example
Go to Actions > Run Workflow, and optionally provide a version like 0.2.0.
📁 Folder Structure (dist)
The published tarball includes:
dynamix.umd.js/dynamix.es.js(library)index.d.ts(types)index.css(optional, if exported)- Tree-shakable, externalized peer dependencies
📦 Peer Dependencies
Make sure these are installed in the host project:
{
"@tailwindcss/vite": "^4.0.13",
"tailwindcss": "^4.0.13",
"vue": "^3.5.13",
"pinia": "^3.0.1",
"yup": "^1.6.1"
}🧑💻 Contributing
- Clone the repo
- Run
yarn dev - Build with
yarn build:lib - Trigger release with
yarn pack:libor push tomain
📄 License
MIT © Sohype Khaled
