Skip to content

sebastien-d-me/vue-separate-blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue separate blocks - Sébastien D

📖 Description

Automatically separates the script, template, and style blocks of your Vue.js files by a custom number of new line(s).

📜Installation

npm i vue-separate-blocks --save-dev

⚙️ Use

  1. Add this script into your "package.json" and customize the number of new line(s) you want (replace number with a integer). And change the folder path :
"separate-blocks": "node -e \"require('vue-separate-blocks').separateBlocks(number, folder)\""
  1. Run the command :
npm run separate-blocks

Example :

"separate-blocks": "node -e \"require('vue-separate-blocks').separateBlocks(2, 'src')\""

Before : Before command

After : After command

📝 License

MIT © sebastien-d-me

About

Automatically separates the script, template, and style blocks of your Vue.js files by a custom number of new line(s).

Topics

Resources

License

Stars

Watchers

Forks