Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Vue.js: Tools & Skills
Vue.js: Tools & Skills
Vue.js: Tools & Skills
Ebook129 pages48 minutes

Vue.js: Tools & Skills

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Since its release in 2014, Vue.js has seen a meteoric rise to popularity and is is now considered one of the primary front-end frameworks, and not without good reason. Its component-based architecture was designed to be flexible and easy to adopt, making it just as easy to integrate into projects and use alongside non-Vue code as it is to build complex client-side applications.

This book covers a selection of essential tools and skills you'll need while working with Vue. It contains:

  • Setting Up a Vue Development Environment by James Hibbard
  • Five Top Vue Animation Libraries by Maria Antonietta Perna
  • Build Your First Static Site with VuePress by Ivaylo Gerchev
  • Five Vue UI Libraries for Your Next Project by Michiel Mulders
  • Five Handy Tips when Starting Out with Vue by David Bush
LanguageEnglish
PublisherSitePoint
Release dateJun 6, 2019
ISBN9781492071402
Vue.js: Tools & Skills
Author

James Hibbard

I'm a web developer currently living in the sunny north of Germany. I enjoy coding in both JavaScript and Ruby and can often be found in SitePoint's JavaScript forum. When I'm not coding, I enjoy running.

Read more from James Hibbard

Related to Vue.js

Related ebooks

Programming For You

View More

Related articles

Reviews for Vue.js

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Vue.js - James Hibbard

    Preface

    Since its release in 2014, Vue.js has seen a meteoric rise to popularity and is is now considered one of the primary front-end frameworks, and not without good reason. Its component-based architecture was designed to be flexible and easy to adopt, making it just as easy to integrate into projects and use alongside non-Vue code as it is to build complex client-side applications.

    This book covers a selection of essential tools and skills you'll need while working with Vue. It contains:

    Setting Up a Vue Development Environment by James Hibbard

    Five Top Vue Animation Libraries by Maria Antonietta Perna

    Build Your First Static Site with VuePress by Ivaylo Gerchev

    Five Vue UI Libraries for Your Next Project by Michiel Mulders

    Five Handy Tips when Starting Out with Vue by David Bush

    Who Should Read This Book?

    This book is for developers with experience of JavaScript.

    Conventions Used

    Code Samples

    Code in this book is displayed using a fixed-width font, like so:

    A Perfect Summer's Day

    It was a lovely day for a walk in the park.

    The birds were singing and the kids were all back at school.

    Where existing code is required for context, rather than repeat all of it, ⋮ will be displayed:

    function animate() {

        ⋮

    new_variable = Hello;

     

    }

    Some lines of code should be entered on one line, but we’ve had to wrap them because of page constraints. An ➥ indicates a line break that exists for formatting purposes only, and should be ignored:

    URL.open("http://www.sitepoint.com/responsive-web-

    ➥design-real-user-testing/?responsive1");

    You’ll notice that we’ve used certain layout styles throughout this book to signify different types of information. Look out for the following items.

    Tips, Notes, and Warnings

    Hey, You!

    Tips provide helpful little pointers.

    Ahem, Excuse Me ...

    Notes are useful asides that are related—but not critical—to the topic at hand. Think of them as extra tidbits of information.

    Make Sure You Always ...

    ... pay attention to these important points.

    Watch Out!

    Warnings highlight any gotchas that are likely to trip you up along the way.

    Chapter 1: Setting Up a Vue Development Environment

    by James Hibbard

    If you’re going to do any serious amount of work with Vue, it’ll pay dividends in the long run to invest some time in setting up your coding environment. A powerful editor and a few well-chosen tools will make you more productive and ultimately a happier developer.

    In this tutorial, I’m going to demonstrate how to configure VS Code to work with Vue. I’m going to show how to use ESLint and Prettier to lint and format your code and how to use Vue’s browser tools to take a peek at what’s going on under the hood in a Vue app. When you’ve finished reading, you’ll have a working development environment set up and will be ready to start coding Vue apps like a boss.

    Let’s get to it!

    Installing and Setting Up Your Editor

    I said that I was going to be using VS Code for this tutorial, but I’m afraid I lied. I’m actually going to be using VSCodium, which is an open-source fork of VS Code without the Microsoft branding, telemetry and licensing. The project is under active development and I’d encourage you to check it out.

    It doesn’t matter which editor you use to follow along; both are available for Linux, Mac and Windows. You can download the latest release of VSCodium here, or download the latest release of VSCode here and install it in the correct way for your operating system.

    Throughout the rest of this guide, for the sake of consistency, I’ll refer to the editor as VS Code.

    Add the Vetur Extension

    When you fire up the editor, you’ll notice a set of five icons in a toolbar on the left-hand side of the window. If you click the bottom of these icons (the square one), a search bar will open up that enables you to search the VS Code Marketplace. Type vue into the search bar and you should see dozens of extensions listed, each claiming to do something slightly different.

    Depending on your use case, you might find something here to suit you. There are lots available. For example, TSLint for Vue could be handy if you’re working on a Vue project involving TypeScript. For now, I’m going to focus on one called Vetur.

    Type Vetur into the search box and select the package authored by Pine Wu. Then hit Install.

    Installing Vetur in VS Code
    Enjoying the preview?
    Page 1 of 1