Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sudongyuer/tiny-svelte
- Owner: sudongyuer
- Created: 2022-09-16T14:56:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-20T12:34:53.000Z (about 2 years ago)
- Last Synced: 2023-03-06T04:08:15.258Z (over 1 year ago)
- Topics: compiler, framework, frontend, svelte
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 34
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)