sebastien-d-me / vue-separate-blocks

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

Home Page:https://www.npmjs.com/package/vue-separate-blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

https://www.npmjs.com/package/vue-separate-blocks

License:MIT License


Languages

Language:TypeScript 100.0%