maven-deploy
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -6,2 +6,6 @@ # Changelog | ||
## 1.3.1 | ||
* Add folders/directories to archive | ||
* Update dependencies | ||
## 1.3.0 | ||
@@ -8,0 +12,0 @@ * Revert breaking change accidentally shipped in 1.2.1 |
@@ -168,3 +168,3 @@ var fs = require('fs'); | ||
archive.file(convertPathIntoUnixLike(path.relative(conf.buildDir, filePath)), data); | ||
archive.file(convertPathIntoUnixLike(path.relative(conf.buildDir, filePath)), data, {createFolders: true}); | ||
}); | ||
@@ -171,0 +171,0 @@ |
{ | ||
"name": "maven-deploy", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A simple Node.js module to create a war-/jar-package and install/deploy to a local/remote Maven repository", | ||
@@ -28,8 +28,9 @@ "main": "index.js", | ||
"dependencies": { | ||
"coveralls": "^2.11.6", | ||
"define-options": "^0.1.3", | ||
"fs-walk": "0.0.1", | ||
"isbinaryfile": "^2.0.4", | ||
"isbinaryfile": "^3.0.0", | ||
"jszip": "^2.5.0", | ||
"semver": "^4.3.6", | ||
"util-extend": "^1.0.1" | ||
"semver": "^5.1.0", | ||
"util-extend": "^1.0.3" | ||
}, | ||
@@ -39,9 +40,9 @@ "devDependencies": { | ||
"finn-js-code-style": "4.3.0", | ||
"istanbul": "0.3.14", | ||
"mocha": "2.2.5", | ||
"mocha-lcov-reporter": "0.0.2", | ||
"mock-fs": "2.7.0", | ||
"proxyquire": "1.5.0", | ||
"sinon": "1.14.1" | ||
"istanbul": "^0.4.2", | ||
"mocha": "^2.4.5", | ||
"mocha-lcov-reporter": "^1.0.0", | ||
"mock-fs": "^3.7.0", | ||
"proxyquire": "^1.7.3", | ||
"sinon": "^1.17.3" | ||
} | ||
} |
21
test.js
@@ -59,2 +59,8 @@ /* globals describe, it, beforeEach, afterEach */ | ||
function warFileInDistAsZip () { | ||
var pathToWarFile = warFileInDist(); | ||
var context = fs.readFileSync('./dist/' + pathToWarFile); | ||
return new JSZip(context); | ||
} | ||
function assertWarFileToEqual (expectedName) { | ||
@@ -191,3 +197,3 @@ var warFile = warFileInDist(); | ||
config.finalName = '{name}-{version}'; | ||
maven.config(config); | ||
@@ -221,13 +227,18 @@ maven.install(); | ||
it('should zip file with unix-style path', function () { | ||
maven.config(TEST_CONFIG); | ||
maven.package(); | ||
var pathToWarFile = warFileInDist(); | ||
var context = fs.readFileSync('./dist/' + pathToWarFile); | ||
var zip = new JSZip(context); | ||
var zip = warFileInDistAsZip(); | ||
assert.ok(zip.file('js/index.js')); | ||
}); | ||
it('should zip file with non-virtual folders', function () { | ||
maven.config(TEST_CONFIG); | ||
maven.package(); | ||
var zip = warFileInDistAsZip(); | ||
assert.equal(zip.folder(/^js/).length, 1); | ||
}); | ||
}); | ||
}); |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
21250
365
7
1
+ Addedcoveralls@^2.11.6
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@0.2.01.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.6.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedboom@2.10.1(transitive)
+ Addedbuffer-alloc@1.2.0(transitive)
+ Addedbuffer-alloc-unsafe@1.1.0(transitive)
+ Addedbuffer-fill@1.0.0(transitive)
+ Addedcaseless@0.11.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addedcoveralls@2.13.3(transitive)
+ Addedcryptiles@2.0.5(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@2.7.3(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.1.4(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-validator@2.0.6(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhawk@3.1.3(transitive)
+ Addedhoek@2.16.3(transitive)
+ Addedhttp-signature@1.1.1(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisbinaryfile@3.0.3(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjs-yaml@3.6.1(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlcov-parse@0.0.10(transitive)
+ Addedlog-driver@1.2.5(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimist@1.2.0(transitive)
+ Addedoauth-sign@0.8.2(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedqs@6.3.3(transitive)
+ Addedrequest@2.79.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsntp@1.0.9(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstringstream@0.0.6(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtough-cookie@2.3.4(transitive)
+ Addedtunnel-agent@0.4.3(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedisbinaryfile@2.0.4(transitive)
- Removedsemver@4.3.6(transitive)
Updatedisbinaryfile@^3.0.0
Updatedsemver@^5.1.0
Updatedutil-extend@^1.0.3