-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
queue-it
committed
Nov 22, 2021
1 parent
cee5ec6
commit b0f5073
Showing
8 changed files
with
6,529 additions
and
6,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[merge] | ||
tool = kdiff3 | ||
guitool = kdiff3 | ||
[diff] | ||
guitool = kdiff3 | ||
tool = vsdiffmerge | ||
[core] | ||
editor = \"F:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor | ||
autocrlf = false | ||
[user] | ||
name = Vasil | ||
email = [email protected] | ||
[pull] | ||
rebase = false | ||
[fetch] | ||
prune = false | ||
[rebase] | ||
autoStash = false | ||
[winUpdater] | ||
recentlySeenVersion = 2.26.1.windows.1 | ||
[mergetool "kdiff3"] | ||
path = C:/Program Files/KDiff3/kdiff3.exe | ||
cmd = \"C:/Program Files/KDiff3/kdiff3.exe\" \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\" | ||
[difftool "kdiff3"] | ||
path = C:/Program Files/KDiff3/kdiff3.exe | ||
cmd = \"C:/Program Files/KDiff3/kdiff3.exe\" \"$LOCAL\" \"$REMOTE\" | ||
[url "[email protected]:"] | ||
insteadOf = https://git.smartmodule.net/ | ||
[difftool] | ||
prompt = true | ||
[difftool "vsdiffmerge"] | ||
cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t | ||
keepBackup = false | ||
[filter "lfs"] | ||
clean = git-lfs clean -- %f | ||
smudge = git-lfs smudge -- %f | ||
process = git-lfs filter-process | ||
required = true | ||
[credential] | ||
helper = "!f() { /root/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/node /tmp/vscode-remote-containers-9669530c1ddca4fa7b1438b95129151b954035ef.js $*; }; f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"flags": { | ||
"gulpfile": "gulpfile.cjs" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
const {src, dest} = require("gulp"); | ||
const tar = require('gulp-tar'); | ||
const gzip = require('gulp-gzip'); | ||
const modifyFile = require('gulp-modify-file'); | ||
const jsonModify = require('gulp-json-modify') | ||
const path = require('path') | ||
|
||
function addExports(content) { | ||
content = "var exportObject = {};\n" + content; | ||
content += ` | ||
var Utils = exportObject.Utils; | ||
var KnownUser = exportObject.KnownUser; | ||
export { KnownUser, Utils };`; | ||
const lastPropertyDefinition = content.lastIndexOf('Object.defineProperty('); | ||
const newLine = content.indexOf('\n', lastPropertyDefinition); | ||
const firstPart = content.substring(0, newLine); | ||
const secondPart = content.substring(newLine + 1); | ||
return firstPart + ` | ||
exportObject.KnownUser = KnownUser_1.KnownUser; | ||
exportObject.Utils = QueueITHelpers_1.Utils; | ||
` + secondPart; | ||
} | ||
|
||
exports.packageArtifacts = () => { | ||
return src([ | ||
'bundle.json', | ||
'outDir/*.js', | ||
'outDir/**/*.js' | ||
]) | ||
.pipe(modifyFile((content, filePath, _) => { | ||
let filename = path.basename(filePath); | ||
if (filename !== 'queueit-knownuserv3-sdk.js') { | ||
return content; | ||
} | ||
content = addExports(content); | ||
return content; | ||
})) | ||
.pipe(tar('kuedge.tar')) | ||
.pipe(gzip()) | ||
.pipe(dest('dist')); | ||
} | ||
|
||
exports.prepare = () => { | ||
return src([ | ||
'sdk/*.js' | ||
]) | ||
.pipe(modifyFile((content, filePath, _) => { | ||
let filename = path.basename(filePath); | ||
if (filename !== 'queueit-knownuserv3-sdk.js') { | ||
return content; | ||
} | ||
content = addExports(content); | ||
return content; | ||
})) | ||
.pipe(dest('outDir/sdk')); | ||
} | ||
|
||
exports.stripPackage = () => { | ||
return src(['./package.json']) | ||
.pipe(jsonModify({ key: 'devDependencies', value: {}})) | ||
.pipe(jsonModify({ key: 'scripts', value: {}})) | ||
.pipe(dest('./')) | ||
} | ||
|
||
exports.packageForDeployment = () => { | ||
return src([ | ||
'bundle.json', | ||
'edgegrid.edgerc', | ||
'outDir/*.js', | ||
'outDir/**/*.js' | ||
]) | ||
.pipe(modifyFile((content, filePath, _) => { | ||
let filename = path.basename(filePath); | ||
if (filename !== 'queueit-knownuserv3-sdk.js') { | ||
return content; | ||
} | ||
content = addExports(content); | ||
return content; | ||
})) | ||
.pipe(tar('kuedge.deployment.tar')) | ||
.pipe(gzip()) | ||
.pipe(dest('dist')); | ||
} |
Oops, something went wrong.