Skip to content

Commit

Permalink
fix(hexonet registrar module): patches issue with getRegistrationDate…
Browse files Browse the repository at this point in the history
… for domains
  • Loading branch information
AsifNawaz-cnic committed Nov 7, 2024
1 parent 0dc6980 commit 393b18d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
"changelogFile": "HISTORY.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "gulp release"
}
],
[
"semantic-release-replace-plugin",
{
Expand Down Expand Up @@ -50,6 +44,12 @@
]
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "gulp release"
}
],
[
"@semantic-release/git",
{
Expand Down
Binary file modified blesta-ispapi-registrar-latest.zip
Binary file not shown.
25 changes: 24 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,29 @@ function doZip(callback) {
})();
}

exports.copy = series(doComposerUpdate, doDistClean, doCopyFiles);

/**
* build latest zip archive
* @return stream
*/
function buildHxZip(callback) {
(async () => {
try {
const zip = await import('gulp-zip');
src(`./${cfg.archiveHxBuildPath}/**`)
.pipe(zip.default(`${cfg.archiveHXFileName}-latest.zip`))
.pipe(dest('.'))
.on('end', () => {
console.log('Archive generated successfully');
callback(null); // Pass null for success, or an error object for failure
});
} catch (error) {
console.error('Error importing module:', error);
callback(error); // Pass the error to the callback
}
})();
}

exports.copy = series(doComposerUpdate, doDistClean, doCopyFiles);
exports.buildHx = buildHxZip;
exports.release = series(exports.copy, doZip, doFullClean);
1 change: 1 addition & 0 deletions gulpfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"archiveFileName": "blesta-cnr-registrar",
"archiveHXFileName": "blesta-ispapi-registrar",
"archiveBuildPath": "build",
"archiveHxBuildPath": "components/modules/ispapi",
"filesForArchive": [
"README.md",
"CONTRIBUTING.md",
Expand Down

0 comments on commit 393b18d

Please sign in to comment.