Getting Started
The core
package will provide a set of general functionalities to support the setup and development needs of our Vue 3 applications.
The packages consists of 3 modules:
- composables: containing all vue composables that are upholding the definition of a vue composable.
- functions: Stateless functions that help distribute logic across projects
- modules: JS Modules with or without state that can be used in any context and do not rely on vue lifecycle hooks.
Depending on what you need you can import it as followed:
// composables
import { useHelloWorld } from "@xerius/codey-core/composables";
// functions
import { isBelgianIban } from "@xerius/codey-core/functions";
// modules
import { createI18nInstance } from "@xerius/codey-core/modules/use-translations";
INFO
Modules are exported on a deeper level to keep a clear overview in what context something is being imported.