Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

NodeJS script to get easy way to modify vue component sections(script/template/style/customBlocks)

License

Notifications You must be signed in to change notification settings

s0d3s/vue-greedy-components-repacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-greedy-components-repacker [Archived as a memory😉]

About

The script processes each section of the component, and then packs it back. You can use standard section handlers or write your own By default, script processing only <script> section (via javascript-obfuscator), other is copied.

enter image description here

Introduce

Arguments

--source --src

Input directory

--dist

Output directory

--create-conf -c

Copy default section processor to current dir

--alt-handler --alt

Path to custom section handler

--rewrite -r

If passed, then origin file fill be overwritten

--verbose -v

Pring trace info

--exclude

Exclude some files from processing

Sections custom handler

At first your handler must have module.exports, like:

module.exports = {
  options: {
    entry:'src',
    dist:'repacked',
    exclude:[],
    verbose: false,
    overwrite: false,
    copyOther: false
  },
  template: function(obj),
  script: function(obj),
  style: function(obj),
  customBlock: function(obj)
}

This options may be overwritten with the global options

template/style/script/customBlock retrieves block object and must return string.

About

NodeJS script to get easy way to modify vue component sections(script/template/style/customBlocks)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published