• Stars
    star
    1,004
  • Rank 45,731 (Top 1.0 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 3 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vue's template compiler reimplemented in Rust!

Vue Compiler in Rust

WebAssembly ferris Vue

Try it out in the wasm playground!

CI Playground codecov

Evan says:

Maybe in the long run we want the whole transform (and even the Vue compiler!) to be implemented in native Go/Rust so performance would no longer be a concern ;)

Future is now!

Project Docs

Intended Usage

  • Rust library
  • CLI binary
  • napi based nodejs library
  • wasm based npm package: a fallback if napi fails to work and a toy for browser.
  • No Browser build No support since most features in full build are additional except for browser based expression checking or HTML escaping. Browser build removed them for size. But template compiler in browser is already for toy project. For browser specific summary see this google sheet.

Reference

  • vue-next: ご本家様
  • html spec is the definitive guide for parsing HTML-like files.
  • Vue Template Explorer gives instant results for code generation and error reporting.
  • Nu html checker is the official html validator from W3C. This is the canonical error reporter for html parsing, when there is a discrepancy between the framework and the spec.
  • AST explorer can inspect AST nodes interactively.

More Repositories

1

yats.vim

Yet Another TypeScript Syntax: The most advanced TypeScript Syntax Highlighting in Vim
Vim Script
639
star
2

av-ts

A modern, type-safe, idiomatic Vue binding library
TypeScript
218
star
3

typescript-repl

An upgraded TypeScript REPL
TypeScript
209
star
4

vue-ts-loader

Type-check your script in your vue-loader
JavaScript
90
star
5

vue-advanced-programming

A collection of tricks in Vue
JavaScript
82
star
6

kilimanjaro

typed vuex 2.0
TypeScript
62
star
7

gulp-progeny

Make Gulp Fast Again
CoffeeScript
53
star
8

vue-ts-example

An example repo for Vue2.0 and TypeScript2.0
Vue
39
star
9

vim-worksheet

Worksheet for Vim
Python
34
star
10

ts-css-plugin

TypeScript
28
star
11

compositional-xstate

XState's hook/compositional API
TypeScript
20
star
12

Pat-Mat

pattern match in Javascript
CoffeeScript
7
star
13

atom-vue

vue-language-server demo for Atom
JavaScript
6
star
14

vivio

TypeScript
6
star
15

awesome-tree-sitter

A curated list of tree-sitter resources.
6
star
16

av-ts-template

av-ts template for vue-cli
JavaScript
6
star
17

herringtondarkholme.github.io

HTML
4
star
18

jedi-syntax

vim syntax for jedi lang
Vim Script
4
star
19

JS-regex

A collection of useful RegExp
JavaScript
3
star
20

Python-SignatureSal

Python implementation of signature saliency
Python
2
star
21

gulp-jedi

Compile jedi templates to PHP
PHP
2
star
22

angry.im

prototype
TypeScript
2
star
23

rs-perf-talk

Slides for Rust performance in JavaScript land
Vue
2
star
24

lovelive

mock Google+ Valentine effect
JavaScript
2
star
25

js-crush

Vue
2
star
26

diana

TypeScript
1
star
27

Vimfile

JavaScript
1
star
28

scalatra-activerecord-boilerplate

template repo
Scala
1
star
29

byon

Angular2 demo
HTML
1
star
30

paranoid-router

typed router for vue
1
star
31

ast-grep

placeholder
HTML
1
star
32

HerringtonDarkholme

1
star
33

sponsors

Appreciate all my sponsors for helping me make web faster!
TypeScript
1
star
34

syn-checker

syn-checker
JavaScript
1
star
35

ImgSearchGesture

JavaScript
1
star
36

SharePicToGp

This repo is under construction !
CoffeeScript
1
star
37

rectangular

TypeScript
1
star
38

printheart

Happy Birthday!
CSS
1
star
39

Vim--Monokai-Terminal

Terminal Color Palette for Monokai Theme
Vim Script
1
star
40

android-example

scala example
Scala
1
star