Skip to content

Commit 7a1b7b4

Browse files
authored
Merge pull request #8 from DevWurm/feature/archiver-options
archiver options
2 parents 631d3b0 + 1f5de2e commit 7a1b7b4

34 files changed

Lines changed: 18330 additions & 14469 deletions

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ node_js:
33
- node
44
- 7
55
- 6
6-
cache: yarn
6+
cache: npm
77
install:
8-
- yarn install
9-
- yarn run test:functional:setup
8+
- npm install
9+
- npm run test:functional:setup
1010
before_script:
11-
- yarn run build
11+
- npm run build
1212
script:
13-
- yarn run test:coverage
14-
- yarn run test:functional
13+
- npm run test:coverage
14+
- npm run test:functional
1515
after_success:
16-
- yarn run coveralls
16+
- npm run coveralls
1717
deploy:
1818
provider: npm
1919
email: devwurm@devwurm.net

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ type WebpackWarPluginOptions = {
4242
path: string;
4343
destPath?: string;
4444
}[];
45+
archiverOptions?: {}
4546
};
4647
```
4748
| Option | Effect |
4849
| --- | --- |
4950
| `archiveName` *[optional]* | Sets the output name of the archive |
5051
| `webInf` *[optional]* | Specifies a path to a directory (or file) which will be included into the archive with the path `WEB-INF` |
5152
| `additionalElements` *[optional]* | Specifies multiple files or directories, which will be included in the archive. Each entry is a object with the following properties: `path` (The path of the source element), `destPath` (*[optional]* The path of the specified file / directory inside of the archive [by default `path` is used]) |
53+
| `archiverOptions` *[optional]* | Specifies the options that should be used by `archiver` (used to create the archive). See https://archiverjs.com/docs/ for more information. |
5254

5355
### Example
5456
The following plugin configuration:
@@ -68,7 +70,12 @@ module.exports = {
6870
{ path: 'context/context.xml', destPath: 'META-INF/context.xml'},
6971
{ path: 'package.json' },
7072
{ path: 'images', destPath: 'assets/images' }
71-
]
73+
],
74+
archiverOptions: {
75+
zlib: {
76+
level: 9
77+
}
78+
}
7279
}),
7380
...
7481
],

functional_tests/fixture_1/fixture_1.func.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Fixture 1: just bundling the assets', function () {
1111

1212
before('Run webpack build', function () {
1313
cd(resolve(__dirname));
14-
const { code, stderr, stdout } = exec('yarn run build');
14+
const { code, stderr, stdout } = exec('npm run build');
1515

1616
if (code != 0) return expect.fail(stderr, '', 'Webpack build failed');
1717

0 commit comments

Comments
 (0)