Giter Club home page Giter Club logo

wcmc-components's Introduction

wcmc-components

Working with this Repo

Repo setup

  • Clone this repo
  • yarn install

Run the repo

  • yarn serve compiles and hot-reloads for development

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

Publish to npm

  • Update version number in package.json
  • Update the CHANGELOG.MD
  • Run yarn build-lib
  • Commit the changes
  • Run npm publish

Installing the package into another repo

Install npm package

  • 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 })

Install local package

  • 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 })

Docs

Run docs locally

  • yarn docs:dev

Edit the docs

  • 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.

wcmc-components's People

Contributors

stacytalbot avatar rainbowgiantsquid avatar wkocur avatar stanleypliu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.