filemanager-webpack-plugin
Advanced tools
Comparing version 2.0.5 to 3.0.0-alpha.0
{ | ||
"name": "filemanager-webpack-plugin", | ||
"version": "2.0.5", | ||
"version": "3.0.0-alpha.0", | ||
"description": "This Webpack plugin allows you to copy, archive (.zip), move, delete files and directories before and after builds", | ||
"author": "gregnb", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"engines": { | ||
"node": ">= 10" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
"build": "npm run prettier && rollup -c", | ||
"test": "npm run test-webpack3 && npm run test-webpack4", | ||
"test-webpack3": "cd tests/webpack-3 && npm install && npm run test", | ||
"test-webpack4": "cd tests/webpack-4 && npm install && npm run test", | ||
"prettier": "find src | xargs prettier --write", | ||
"webpack": "webpack --progress", | ||
"webpack-dev-server": "webpack-dev-server --colors --progress" | ||
}, | ||
"contributors": [ | ||
"sibiraj-s" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gregnb/filemanager-webpack-plugin.git" | ||
"url": "https://github.com/gregnb/filemanager-webpack-plugin.git" | ||
}, | ||
"keywords": [ | ||
"webpack" | ||
], | ||
"author": "gregnb", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -31,32 +25,39 @@ "url": "https://github.com/gregnb/filemanager-webpack-plugin/issues" | ||
"homepage": "https://github.com/gregnb/filemanager-webpack-plugin#readme", | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"delay": "^2.0.0", | ||
"eslint": "^4.16.0", | ||
"glob": "^7.1.2", | ||
"jszip": "^3.1.5", | ||
"prettier": "^1.10.2", | ||
"rollup": "^0.63.5", | ||
"rollup-plugin-babel": "^3.0.7", | ||
"rollup-plugin-commonjs": "^9.1.4", | ||
"rollup-plugin-includepaths": "^0.2.3", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"webpack": "^4.2.0", | ||
"webpack-cli": "2.0.12", | ||
"webpack-dev-server": "^3.1.1" | ||
"keywords": [ | ||
"webpack" | ||
], | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "rimraf tests/fixtures/testing && ava", | ||
"prettier": "prettier . --write" | ||
}, | ||
"dependencies": { | ||
"archiver": "^3.0.0", | ||
"cpx": "^1.5.0", | ||
"fs-extra": "^7.0.0", | ||
"make-dir": "^1.1.0", | ||
"archiver": "^5.0.2", | ||
"cpy": "^8.1.1", | ||
"make-dir": "^3.1.0", | ||
"mv": "^2.1.1", | ||
"rimraf": "^2.6.2" | ||
"rimraf": "^3.0.2", | ||
"schema-utils": "^2.7.1" | ||
}, | ||
"devDependencies": { | ||
"@ava/babel": "^1.0.1", | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/register": "^7.11.5", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-commonjs": "^15.1.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"ava": "^3.13.0", | ||
"glob": "^7.1.6", | ||
"husky": "^4.3.0", | ||
"jszip": "^3.5.0", | ||
"prettier": "^2.1.2", | ||
"pretty-quick": "^3.0.2", | ||
"regenerator-runtime": "^0.13.7", | ||
"rollup": "^2.28.2", | ||
"webpack": "^4.44.2", | ||
"webpack-cli": "3.3.12", | ||
"webpack-dev-server": "^3.11.0" | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
<div align="center"> | ||
@@ -9,2 +8,3 @@ <img src="https://user-images.githubusercontent.com/19170080/29996498-a5ed1944-8fcd-11e7-8729-625eb997dbfe.png" /> | ||
[![Build Status](https://travis-ci.org/gregnb/filemanager-webpack-plugin.svg?branch=master)](https://travis-ci.org/gregnb/filemanager-webpack-plugin) | ||
[![NPM Downloads](https://img.shields.io/npm/dt/filemanager-webpack-plugin.svg?style=flat)](https://npmcharts.com/compare/filemanager-webpack-plugin?minimal=true) | ||
[![dependencies Status](https://david-dm.org/gregnb/filemanager-webpack-plugin/status.svg)](https://david-dm.org/gregnb/filemanager-webpack-plugin) | ||
@@ -15,3 +15,2 @@ [![npm version](https://badge.fury.io/js/filemanager-webpack-plugin.svg)](https://badge.fury.io/js/filemanager-webpack-plugin) | ||
## Install | ||
@@ -59,5 +58,5 @@ | ||
{ source: '/path/fromfile.txt', destination: '/path/to.zip', format: 'tar' }, | ||
{ | ||
source: '/path/fromfile.txt', | ||
destination: '/path/to.tar.gz', | ||
{ | ||
source: '/path/fromfile.txt', | ||
destination: '/path/to.tar.gz', | ||
format: 'tar', | ||
@@ -113,22 +112,21 @@ options: { | ||
## Options | ||
```js | ||
new FileManagerPlugin(fileEvents, options) | ||
new FileManagerPlugin(fileEvents, options); | ||
``` | ||
#### File Events | ||
* `onStart`: Commands to execute before Webpack begins the bundling process | ||
* `onEnd`: Commands to execute after Webpack has finished the bundling process | ||
- `onStart`: Commands to execute before Webpack begins the bundling process | ||
- `onEnd`: Commands to execute after Webpack has finished the bundling process | ||
#### File Actions | ||
|Name|Description|Example | ||
|:--:|:----------|:-----| | ||
|**`copy`**|Copy individual files or entire directories from a source folder to a destination folder. Also supports glob pattern |copy: [<br /> { source: 'dist/bundle.js', destination: '/home/web/js/'<br /> }<br />] | ||
|**`delete`**|Delete individual files or entire directories. |delete: [<br />'file.txt', '/path/to'<br />] | ||
|**`move`**|Move individual files or entire directories. |move: [<br /> { source: 'dist/bundle.js', destination: '/home/web/js/'<br /> }<br />] | ||
|**`mkdir`**|Create a directory path. Think mkdir -p |mkdir: [ <br />'/path/to/directory/', '/another/path/' <br/> ] | ||
|**`archive`**|Archive individual files or entire directories. Defaults to .zip unless 'format' and 'options' provided. Uses [node-archiver](https://github.com/archiverjs/node-archiver) |archive: [<br />{ source: 'dist/bundle.js', destination: '/home/web/archive.zip'<br />format: 'tar' or 'zip'<br />options: { options passed to archiver }<br /> }<br />] | ||
| Name | Description | Example | | ||
| :-----------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **`copy`** | Copy individual files or entire directories from a source folder to a destination folder. Also supports glob pattern | copy: [<br /> { source: 'dist/bundle.js', destination: '/home/web/js/'<br /> }<br />] | | ||
| **`delete`** | Delete individual files or entire directories. | delete: [<br />'file.txt', '/path/to'<br />] | | ||
| **`move`** | Move individual files or entire directories. | move: [<br /> { source: 'dist/bundle.js', destination: '/home/web/js/'<br /> }<br />] | | ||
| **`mkdir`** | Create a directory path. Think mkdir -p | mkdir: [ <br />'/path/to/directory/', '/another/path/' <br/> ] | | ||
| **`archive`** | Archive individual files or entire directories. Defaults to .zip unless 'format' and 'options' provided. Uses [node-archiver](https://github.com/archiverjs/node-archiver) | archive: [<br />{ source: 'dist/bundle.js', destination: '/home/web/archive.zip'<br />format: 'tar' or 'zip'<br />options: { options passed to archiver }<br /> }<br />] | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1088576
19
6
9848
3
1
129
3
+ Addedcpy@^8.1.1
+ Addedschema-utils@^2.7.1
+ Added@mrmlnc/readdir-enhanced@2.2.1(transitive)
+ Added@nodelib/fs.stat@1.1.3(transitive)
+ Added@types/glob@7.2.0(transitive)
+ Added@types/json-schema@7.0.15(transitive)
+ Added@types/minimatch@5.1.2(transitive)
+ Added@types/node@22.9.3(transitive)
+ Addedaggregate-error@3.1.0(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedajv-keywords@3.5.2(transitive)
+ Addedarchiver@5.3.2(transitive)
+ Addedarchiver-utils@3.0.4(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedarrify@2.0.1(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcall-me-maybe@1.0.2(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedcompress-commons@4.1.2(transitive)
+ Addedcp-file@7.0.0(transitive)
+ Addedcpy@8.1.2(transitive)
+ Addedcrc-32@1.2.2(transitive)
+ Addedcrc32-stream@4.0.3(transitive)
+ Addeddir-glob@2.2.2(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-glob@2.2.7(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedglob-parent@3.1.0(transitive)
+ Addedglob-to-regexp@0.3.0(transitive)
+ Addedglobby@9.2.0(transitive)
+ Addedhas-glob@1.0.0(transitive)
+ Addedignore@4.0.6(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@3.1.04.0.3(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjunk@3.1.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedminimatch@5.1.6(transitive)
+ Addednested-error-stacks@2.1.1(transitive)
+ Addedp-all@2.1.0(transitive)
+ Addedp-event@4.2.0(transitive)
+ Addedp-filter@2.1.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-map@2.1.03.0.0(transitive)
+ Addedp-timeout@3.2.0(transitive)
+ Addedpath-dirname@1.0.2(transitive)
+ Addedpath-type@3.0.0(transitive)
+ Addedpify@4.0.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedreaddir-glob@1.1.3(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedschema-utils@2.7.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedslash@2.0.0(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedzip-stream@4.1.1(transitive)
- Removedcpx@^1.5.0
- Removedfs-extra@^7.0.0
- Removedanymatch@1.3.2(transitive)
- Removedarchiver@3.1.1(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedasync@2.6.4(transitive)
- Removedasync-each@1.0.6(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbinary-extensions@1.13.1(transitive)
- Removedbindings@1.5.0(transitive)
- Removedbraces@1.8.5(transitive)
- Removedchokidar@1.7.0(transitive)
- Removedcompress-commons@2.1.1(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedcpx@1.5.0(transitive)
- Removedcrc@3.8.0(transitive)
- Removedcrc32-stream@3.0.1(transitive)
- Removedduplexer@0.1.2(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfind-index@0.1.1(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedfs-extra@7.0.1(transitive)
- Removedfsevents@1.2.13(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.0(transitive)
- Removedglob2base@0.0.12(transitive)
- Removedis-binary-path@1.0.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extglob@1.0.0(transitive)
- Removedis-glob@2.0.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmake-dir@1.3.0(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removednan@2.22.0(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedreaddirp@2.2.1(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedshell-quote@1.8.1(transitive)
- Removedsubarg@1.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedzip-stream@2.1.3(transitive)
Updatedarchiver@^5.0.2
Updatedmake-dir@^3.1.0
Updatedrimraf@^3.0.2