https://github.com/originjs/vue-sfc-ast-parser
Extracted from vue-codemod. A ast parser for vue sfc.
https://github.com/originjs/vue-sfc-ast-parser
Last synced: 12 months ago
JSON representation
Extracted from vue-codemod. A ast parser for vue sfc.
- Host: GitHub
- URL: https://github.com/originjs/vue-sfc-ast-parser
- Owner: originjs
- License: other
- Created: 2021-06-30T08:18:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T12:57:02.000Z (about 4 years ago)
- Last Synced: 2025-06-10T23:04:18.938Z (about 1 year ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-sfc-ast-parser
An AST parser for `vue-sfc`. This is extracted from [vue-codemod](https://github.com/originjs/vue-codemod)
## Template parser
The AST parser for `template` part of `vue-sfc` is [vue-eslint-parser](https://github.com/vuejs/vue-eslint-parser).
## Script parser
The AST parser for `script` part of `vue-sfc` is [jscodeshift](https://github.com/facebook/jscodeshift). Actually it's using [babel parser](https://github.com/babel/babel/tree/master/packages/babel-parser).
## Style parser
There is no valid AST parser for `style` part yet. Contributions are welcome. :-)