How to do it...

The approach I will take for this recipe is to use the excellent vue-share-components template by Guillaume Chau. We'll build a joke button from that starting point.

In your command line, create a new directory and type the following command inside it:

vue init Akryum/vue-share-components

It will ask you some questions; you can copy the responses from the following image. The only thing to note is that you (sadly) cannot use the joke-button name for your project because I have already registered it while writing this recipe. However, you can come up with a similar sounding name (you may want to check whether the name is available in the npm registry before moving ahead):

Once the project is created, you can install the ...

Get Vue.js 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.