0.0.15 • Published 3 months ago

@dbca/gov-vue3-components v0.0.15

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 months ago

gov-vue-components

Repository of common vue components that can be imported into department projects.

See /docs folder for user documentation

To add a vue3 component to this library:

  1. Create a virtual environment for node (You can use nodeenv to do that) # TODO: Set up dev container for this repo?
  2. Run 'npm install'
  3. Copy your component file into the src/components folder
  4. Make sure any css definitions are named uniquely as the scoped attribute for the style block does not work when deploying a library
  5. Import and export your component in the src/components.js file.
  6. Add any images you will need for your documentation to the docs/images folder
  7. Create a markdown file in the docs/components folder to document how your component works
  8. Add a link to your markdown file in the docs/.vitepress/config.js file
  9. Run 'npm run docs:dev' command to preview your documentation locally
  10. Once you are happy with everything, run 'npm run docs:build' - This will client and server bundles and render pages for the docs
  11. Run 'npm run build' - This will generate a dist folder and the library files (.js, .mjs /assets/.css) or overwrite them if they are already there
  12. Increment the version number in the package.json file
  13. Do a Pull Request for the new version
  14. Once the PR is merged, follow the 'To publish to npm' instructions below to publish the new version to npm.

Maintenance:

  1. Run 'npm update'
  2. Run 'npm outdated' to see if anything needs updating
  3. Modify the package.json as required to update the version numbers
  4. Run 'npm run build'
  5. Increment the version number in the package.json file
  6. Do a Pull Request for the new version
  7. Once the PR is merged, follow the 'To publish to npm' instructions below to publish the new version to npm.

To publish to npm:

  1. run 'npm login'
  2. run 'npm publish --access=public'
  3. To check it was published correctly, run 'npm view @dbca/gov-vue3-components'
0.0.12

3 months ago

0.0.13

3 months ago

0.0.14

3 months ago

0.0.15

3 months ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago