Install all project dependencies
To develop vue components independently, you can use Storybook installation:
npm run storybook
Functions and services should be developed in parent's repository.
For local development in parent project use package linking, which is a two step process.
- Create package symlink in the localazy-components
- In some other location, create a symbolic link from globally-installed, localazy-components package
npm link @localazy/components
- 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
unlink is an alias for
Run unit tests
npm run test
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
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
VUE_APP_MODE environment variable to
production. If not set, draft articles will be fetched by default.