This template should help get you started developing any web-based, Vue product. Each component and function comes with test coverage, but you're free to add your own tests within the application exercising this library.
Don't forget!
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
- BaseBanner
- BaseBeatLoader
- BaseButton
- BaseInput
- BaseInvoiceTag
- BaseModal
- BaseRadioInput
- BaseReservesTag
- BaseSelect
- BaseTransfersTag
- AlertCircle
- AlertTriangle
- CheckCircle
- Ellipsis
- Eye
- FilterLines
- LightningBolt
- Message
- Ring
- Stars
- XClose
- Create a personal access token within GitHub for the GitHub NPM Package Registry (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). Make sure you check all the boxes related to packages.
- Run this command in the CLI:
npm login --scope=@username --auth-type=legacy --registry=https://npm.pkg.github.com
- Use your GitHub username for "username"
- Use your personal access token created in step #1 for "password"
You now have access to the private core-frontend package and can install it at @username/core.
- Checkout the core library repo
- Run
npm link
- Copy the outputed named, which is the
name
property withinpackage.json
- Within the directory of your application, run
npm link @username/core
Now your directory is linked to the core "package" as if you were consuming it like a NPM package, and when you updated and rebuild the core library locally, it will automatically update it within your directory.
You can either import the entire library as a plugin:
import Core from '@username/core';
import '@username/core/dist/style.css';
...
app.use(Core);
or use components individually:
import { BaseButton } from '@username/core';
import '@username/core/dist/style.css';
...
<base-button>Example Button</base-button>
- Create a new release with a tag that is a correct iteration above the last tag
- Give it a proper title and description fitting the new release
- Publish the release
- Check GitHub actions to ensure the "Node.js Package" action completes successfully
not yet updated
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette. - Install Volar
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run Component Tests with Cypress
npm run test:component
This runs the component tests against the Vite development server. It is much faster than the production build.