Skip to content

stpettersens/grunt-vuecc

Repository files navigation

grunt-vuecc

🐗 Grunt task for unofficial Vue component compiler.

Build Status npm version Dependency Status Development Dependency Status

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

About

🐗 Grunt task for unofficial Vue component compiler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published