Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filemanager-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filemanager-webpack-plugin - npm Package Compare versions

Comparing version 2.0.5 to 3.0.0-alpha.0

CHANGELOG.md

85

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc