A set of useful commands for dealing with Vue single-file components.
npm install sfcA set of useful commands for dealing with Vue single-file components.
``bash`
yarn global add sfcor
npm i -g sfc
Normalize (pre-compile) each block of your SFC:
`bashnormalize a .vue file
sfc normalize example.vue -o output.vuenormalize all .vue files inside a directory
sfc normalize src -d lib
__Then you can publish normalized
.vue files to npm registry without compiling them to .js files.__Supported transforms:
-
tag:
- html (default)
-
`
Out:
`vue
{{ count }}
`
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
sfc © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
> github.com/egoist · GitHub @egoist · Twitter @_egoistlily