Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sudongyuer/tiny-svelte

🐈 Tiny svelte implement
https://github.com/sudongyuer/tiny-svelte

compiler framework frontend svelte

Last synced: 9 days ago
JSON representation

🐈 Tiny svelte implement

Awesome Lists containing this project

README

        



## πŸ‘€ Why
Very interest in svelte, and i want to know how svelte works,i found that svelte is just a compiler, so i write this tiny svelte to learn it.

## 🌈 Features
> WIP!!!
- [x] parse
- [x] parseFragments
- [x] parseScript
- [x] parseElement
- [x] parseAttributeList
- [x] parseAttribute
- [x] parseExpression
- [x] parseText
- [x] parseJavaScript
- [x] match
- [x] eat
- [x] analyse
- [x] generate

## πŸ“¦ How to use

- cd src dir && node index.js to compile svelte to js
- then you will get app.js which is compiled by index.js
- serve index.html then you can see the result

## πŸ‘¦ Author

sudongyuer email:[email protected]

## πŸ“„ License

[MIT](./LICENSE) License Β© 2022 [SuDongYu](https://github.com/sudongyuer)