packtor
v1.0.2
Published
Copy files and folders to a directory and create its zip.
Downloads
4
Maintainers
Readme
packtor
Copy given files and folders to a directory and create its zip.
Note:
Following files and folders are excluded by default.
- Dot files and folders
node_modules
folderbower_components
folder
Install
npm install --save-dev packtor
Example
In package.json
scripts:
...
"packtor": {
"destFolder": "deploy",
"files" : [
"**/*",
"!tests/**/*",
"!*.json",
"!*.lock",
"!*.yaml"
]
},
...
"scripts": {
...
"deploy": "packtor"
}
Defaults
- destFolder:
deploy
- createZip:
true
- files:
['**/*', '!node_modules/**/*', '!bower_components/**/*']