Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qingwei-li/pue-loader

🐍 A more pythonic javascript for Vue component file. (Pug + CoffeeScript + Stylus)
https://github.com/qingwei-li/pue-loader

coffeescript pug stylus vue vue-components vue-loader

Last synced: 2 months ago
JSON representation

🐍 A more pythonic javascript for Vue component file. (Pug + CoffeeScript + Stylus)

Awesome Lists containing this project

README

        

# pue-loader

[![Build Status](https://img.shields.io/travis/QingWei-Li/pue-loader.svg?style=flat-square)](https://travis-ci.org/QingWei-Li/pue-loader)
[![npm](https://img.shields.io/npm/v/pue-loader.svg?style=flat-square)](https://www.npmjs.com/package/pue-loader)
![vue](https://img.shields.io/badge/vue-2.x-4fc08d.svg?colorA=2c3e50&style=flat-square)
[![](https://img.shields.io/badge/%24-donate-green.svg?style=flat-square)](https://github.com/QingWei-Li/donate)

> 🐍 A more pythonic javascript for Vue component file. (Pug + CoffeeScript + Stylus)

## Usage

Create a `app.pue` file

```coffee
template
div
span {{ count }}
button(@click="count++") +
button(@click="count--") -

script
export default {
name: 'compo'
data: () ->
count: 0
}

style(scoped="scoped")
span
color red
```

## Installation
```shell
npm i pue-loader css-loader vue-loader -D
```

webpack config

```javascript
modules.export = {
module: {
rules: [
{
test: /\.pue$/,
loader: 'pue-loader'
}
]
}
}
```

## Syntax highlight

- Sublime Text - https://github.com/QingWei-Li/pue-syntax-highlight

## License
WTFPL