packtor

1.0.2 • Public • Published

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/**/*']

Package Sidebar

Install

npm i packtor

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

4.67 kB

Total Files

5

Last publish

Collaborators

  • nilambar