Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SkewedAspect/grunt-vueify
Translate `.vue` files to pure JavaScript, without using Browserify.
https://github.com/SkewedAspect/grunt-vueify
Last synced: 17 days ago
JSON representation
Translate `.vue` files to pure JavaScript, without using Browserify.
- Host: GitHub
- URL: https://github.com/SkewedAspect/grunt-vueify
- Owner: SkewedAspect
- Created: 2016-01-27T14:47:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T05:29:29.000Z (almost 6 years ago)
- Last Synced: 2024-09-19T00:15:58.653Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 10
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-vue-cn - grunt-vueify ★1 - Translate `.vue` files to pure JavaScript, without using Browserify. (Useful for Electron apps) (Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) / Development Tools)
- awesome-vuejs - grunt-vueify - Translate `.vue` files to pure JavaScript, without using Browserify. (Useful for Electron apps) (Awesome Vue.js / Development Tools)
README
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][].
[Browserify]: http://browserify.org/
[the Compiler API from Vueify]: https://github.com/vuejs/vueify#compiler-api
[Vue.js]: http://vuejs.org/
[Electron]: http://electron.atom.io/Installation
------------```bash
npm install --save-dev vueify grunt-vueify
```Usage
-----Add something like the following to your `Gruntfile.js`:
```javascript
grunt.initConfig({
vueify: {
components: {
files: [
{
expand: true,
src: 'components/**/*.vue',
dest: 'dist/',
ext: '.vue.js'
}
]
}
},
// ...
});grunt.loadNpmTasks('grunt-vueify');
grunt.registerTask('default', ['vueify']);
```Options
-------* `files` - Standard Grunt configuration for files; see [the Grunt documentation][] for more information.
[the Grunt documentation]: http://gruntjs.com/configuring-tasks#files
Configuring Vueify
------------------To configure [Vueify][], you should create a `vue.config.js` file, as described [in the Vuefiy documentation][].
[Vueify]: https://github.com/vuejs/vueify
[in the Vuefiy documentation]: https://github.com/vuejs/vueify#configuring-options