- Clone this repo
yarn install
yarn serve
compiles and hot-reloads for development
yarn lint
- Update version number in
package.json
- Update the
CHANGELOG.MD
- Run
yarn build-lib
- Commit the changes
- Run
npm publish
- Add
"@unep-wcmc/wcmc-components": "1.1.0"
to your package.json (Or the version you want to use) - Run
yarn config set registry https://registry.npmjs.org/
- Run
yarn install
- In your new project add
import FilterableTable from '@unep-wcmc/wcmc-components'
- In your new project add
Vue.use(FilterableTable, { store })
- Clone this repo
- Run
yarn build-lib
to create the library files in the dist folder - Run either
yarn link
(not working well) to enable you to sync this repo to another ORyalc push
(working well) to publish your library files to the local yalc repository- in order to use
yalc push
you need to first install yalc, runyarn global add yalc
ornpm install -g yalc
in the terminal - if using
yalc
whenever you change something in the code and want to try it, you have to runyarn build-lib
andyalc push
- in order to use
In your new project do the following:
- if using
yarn link
- Add the following the the package.json
"@unep-wcmc/wcmc-components": "../wcmc-components",
- Run
yarn link "@unep-wcmc/wcmc-components"
- Add the following the the package.json
- if using
yalc push
- Run
yalc add @unep-wcmc/wcmc-components && yalc link @unep-wcmc/wcmc-components && yarn install
- Add the following to the .gitignore file
# Yalc /.yalc yalc.lock
- Run
- In your js file add
import FilterableTable from "@unep-wcmc/wcmc-components"
- In your js file add
Vue.use(FilterableTable, { store })
yarn docs:dev
- Run
npm install --global @vuedoc/parser @vuedoc/md
- Check installation with
vuedoc.md --version
If you want generate markdown for a component in the terminal type vuedoc.md
followed by the path of the component. For example:
vuedoc.md src/components/filterable-table/FilterableTable.vue
Then copy the markdown out of the terminal and into the markdown file in the /docs folder.