Sha256: fcce4818e970df59ce7eea13b180db919a4142e661a30e8d3ea3487a1a75cbd1

Contents?: true

Size: 1010 Bytes

Versions: 3

Compression:

Stored size: 1010 Bytes

Contents

# Jass::Vue

Roll ES6 and VueJS single file components with the Rails asset pipeline - no Webpack required!

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'jass-vue'
```

You need a working NodeJS installation.

## Configuration

In Rails apps the location of your custom npm dependencies will be automatically
set to:

```
Jass.vendor_modules_root = Rails.root.join('vendor')
```

For other frameworks, it needs to be set manually using the above method.

## Usage

Use `yarn` to install your custom npm dependencies into `vendor/node_modules`.
`vendor/package.json` and `vendor/yarn.lock` should be checked into source control.

Create your bundle entry points as `.jass` files under `app/assets/javascripts` in regular
ES6 syntax (`import`, `async/await`).

External dependencies can be declared to Sprockets using the `global` comment:

```js
// application.jass
//= global vue Vue
//= global vue-router VueRouter

import Vue from 'vue'
import Foo from 'custom-dependency'
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jass-vue-0.4.0 README.md
jass-vue-0.3.0 README.md
jass-vue-0.2.1 README.md