pcv4lib
v1.0.15
Published
A PITHY EXCITING DESCRIPTION FOR YOUR COMPONENT.
Downloads
34
Readme
Vuetify Extension Template with TypeScript
This repository contains a template for building Vue.js components that extend components from the Vuetify UI library.
The Reason for this Template
In July 2019, Vuetify released version 2.0 (Arcadia) of a library of UI components that closely implement the Material Design specification. Among many other improvements, Vuetify 2.0 featured a complete rewrite of all its components using TypeScript. TypeScript is a superset of JavaScript that implements a rigorous and robust type-checking system. TypeScript's benefits include:
- Enhanced code quality and understandability
- More powerful tooling, allowing things like code completion
- Type inference, which can help developers catch bugs earlier
- Access to all of the features of ESNext
- Ability to compile down to a version of JavaScript that runs in all browsers
Despite these benefits, it is still quite challenging to setup a development environment that makes it easy for developers to build extensions to Vuetify 2.0 components that takes full advantage of the benefits of its TypeScript implementation.
This template was created to make it much easier for developers to build high-quality extensions for Vuetify 2.0 that will benefit the entire extended community of developers who use Vuetify.
Instructions for Use
In order to use this template, you will need to follow the following steps (detailed explanation follows):
- Make sure you have accounts with the following entities:
- GitHub (you'll also need Git installed locally on your computer)
- NPM
- TravisCI.org
- Coveralls.io
- Install yarn
- Install global packages with yarn:
- Create a new blank repo on GitHub
- Download a zipped copy of this repo
- Unzip to a local directory on your computer
- Rename and/or update the following files:
package.json
LICENSE
README.md
src/
index.ts
YourComponent.ts
YourComponent.sass
__tests__/YourComponent.spec.ts
dev/
index.js
App.vue
- Install default dependencies with yarn
- Initialize a git repository in your customized directory
- Make your first commit
- Run your first tests
- Do your first build
- Start the dev server for the first time
- Build your extension
- Release it!
- Publicize, support, and maintain
Questions, Comments, Bug Reports, etc.
Comments, questions, pull requests, and bug reports are very welcome. Please submit an issue via the Issues tab above.
Have fun!