Coder Social home page Coder Social logo

maurojr / vue-cli-template-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from julon/vue-cli-template-library

0.0 2.0 0.0 103 KB

Template for developing open-source vue.js libraries with Rollup + Jest + Babel + Storybook + TravisCI + SemanticRelease

License: MIT License

JavaScript 85.11% Vue 14.89%

vue-cli-template-library's Introduction

vue-cli-template-library

Commitizen semantic-release Npm badge Travis badge Greenkeeper badge

Template for developing open-source vue.js libraries

You fell in love with Vue.js and want to create your own unit-tested and documented library to share with everyone but you don't want to spend the whole time set things up? This template is for you! It will take care of managing versioning and publishing to github and npm automatically, so you just need to focus on commiting your pieces of code. Packed with best-practices stuff(linters, preprocessors..) and publishable skeleton.

Rollup + Jest + Babel + Storybook + TravisCI + SemanticRelease + ❤️

Usage

$ npm install -g vue-cli
$ vue init julon/vue-cli-template-library my-project
$ cd my-project
$ npm install
$ npm run storybook

What's included

  • npm run build : Production-ready build.
    • Export to CommonJS, ES Modules, UMD(dev & minified)
    • CSS is embedded in the JS by default
    • Using Rollup to compute Vue, ES6 js files
    • Pugjs and Stylus supported in vue files
  • npm run storybook : The UI Development Environment
    • Based on webpack
    • Pre-configured to work out of the box
  • npm run test : eslint & Unit-test with Jest
    • Supports ES2015+ in test files
    • Use npm run test:watch to start Jest in watch-mode
    • Use npm run test:update to start Jest and update component snapshot
  • npm run lint
    • Rules based on prettier:recommended, vue:recommended
    • Import errors and warning detection
    • Use npm run lint:fix to fix eslint errors
  • npm run cz : Commitizen support
    • Loaded with Conventional-changelog rules
    • Entrypoint to semantic-release automation
  • Semantic-release auto-deployment configuration
    • Auto-generate changelog
    • Auto-commit computed package version in git
    • Auto-release in github
    • Auto-publish to npm
    • Enable this features by using the semantic-release-cli

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with vue-cli:

vue init username/repo my-project

vue-cli-template-library's People

Contributors

greenkeeper[bot] avatar julon avatar semantic-release-bot avatar

Watchers

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