grunt-vueify

Translate `.vue` files to pure JavaScript, without using Browserify.
3,579 10
Install
npm install grunt-vueify
Latest Version:2.0.0
Vue:2
License:MIT
Last Updated:Dec 7, 2018
Links: GitHub  ·  npm
Maintainer: morgul

grunt-vueify

Translate .vue files to pure JavaScript, without using Browserify.

This uses the Compiler API from Vueify, and is useful when using Vue.js with Electron.

Installation

npm install --save-dev vueify grunt-vueify

Usage

Add something like the following to your Gruntfile.js:

grunt.initConfig({
	vueify: {
		components: {
			files: [
				{
					expand: true,
					src: 'components/**/*.vue',
					dest: 'dist/',
					ext: '.vue.js'
				}
			]
		}
	},
	// ...
});

grunt.loadNpmTasks('grunt-vueify');

grunt.registerTask('default', ['vueify']);

Options

Configuring Vueify

To configure Vueify, you should create a vue.config.js file, as described in the Vuefiy documentation.

Related Packages

omi-vueify

Bridge between omi and vue

31,156 13,277
vue-typescript-import-dts

TypeScript declaration file that allows using 'import' with *.vue files

21,718 27
laravel-elixir-vueify

Laravel Elixir Vueify Support

17,206 153
gulp-vueify

Compile .vue files using vueify

9,069 33
gulp-vueify2

Compile .vue files using vueify, with Vue2 and extractCSS support

2,714 13

Version History

Version Released License
2.0.0 MIT
1.0.1 MIT
1.0.0 MIT