grunt-vuecc
v0.1.0
Published
Grunt task for unoffical Vue component compiler
Downloads
2
Maintainers
Readme
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:
Using Gulp?
:tropical_drink: gulp-vuecc