grunt-vuecc

0.1.0 • Public • Published

grunt-vuecc

🐗 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?

🍹 gulp-vuecc

Dependents (0)

Package Sidebar

Install

npm i grunt-vuecc

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • stpettersens