- 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
yarn link
to enable you to sync this repo to another
In your new project do the following:
- Add the following the the package.json
"@unep-wcmc/wcmc-components": "../wcmc-components",
- Run
yarn link "@unep-wcmc/wcmc-components"
- 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.