1.0.2 • Published 11 months ago

packtor v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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 folder
  • bower_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/**/*']
1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago