@localazy/components
TypeScript icon, indicating that this package has built-in type declarations

1.11.0 • Public • Published

Install

Install all project dependencies

npm install

Running

To develop vue components independently, you can use Storybook installation:

npm run storybook

Functions and services should be developed in parent's repository.

Local development

For local development in parent project use package linking, which is a two step process.

  1. Create package symlink in the localazy-components
npm link
  1. In some other location, create a symbolic link from globally-installed, localazy-components package
npm link @localazy/components
  1. Whenever you update Vue components and wish to see it in other project, you must first run
npm run build

To return to published package version run:

npm unlink --no-save @localazy/components && npm install

Where unlink is an alias for uninstall.

Testing

Run unit tests

npm run test

Releasing

Master branch has a workflow to automatically release package with package version higher than on npm

npm version [major|minor|patch]
git push origin --tags

FAQ

Module did not self register (canvas), while running tests

There are compatibility issues with different node versions for node-canvas module. Try running npm rebuild canvas --update-binary and rerun the tests.

I want to fetch only published Directus items in production

Try to set APP_MODE or VUE_APP_MODE environment variable to production. If not set, draft articles will be fetched by default.

Install

npm i @localazy/components

DownloadsWeekly Downloads

4

Version

1.11.0

License

UNLICENSED

Unpacked Size

4.88 MB

Total Files

775

Last publish

Collaborators

  • david-localazy
  • xbilek18
  • xcharvat
  • vaclavhodek