Grunt vuecc

Grunt task for unoffical Vue component compiler

Version: 0.1.0 Updated: 11/18/2015

By: stpettersens

Downloads Last 30 Days: 12

grunt-vuecc

:boar: Grunt task for unofficial Vue component compiler.

Install:

First install vuecc globally:

$ npm install -g vuecc-compiler

Then:

$ npm install --save-dev grunt-vuecc
Usage:
module.exports = function(grunt) {
    grunt.initConfig({
        vuecc: {
            components: {
                options: {
                    src: '*.vue.ts',
                    header: true,
                    verbose: false,
                    inputExt: '.vue.ts',
                    outputExt: '.js'
                }
            }
        }
    });
    grunt.loadNpmTasks('grunt-vuecc');
    grunt.registerTask('default', ['vuecc']);
};
Options:
  • options: Object : Object containing the following options:
    • src: string : File path or file path with wildcard(s) (Mandatory option).
    • header: boolean : Generate commented header for output (default: true).
    • references: string[]: Array of TypeScript reference path includes (default: []).
    • verbose: boolean : Display console output for invocation (default: false).
    • inputExt: string : File extension to use for input (default: .vue.ts).
    • outputExt: string : File extension to use for output (default: .ts).
Authors:
License:

MIT

Using Gulp?

:tropical_drink: gulp-vuecc

Categories: Vue js