Commit b34542b38a16f2c07a08205da254672e7a1d1e00
1 parent
a15ab2a1
feat: add copy oss file flow to glup
Showing
2 changed files
with
24 additions
and
2 deletions
Too many changes to show.
To preserve performance only 2 of 3 files are displayed.
@@ -72,6 +72,28 @@ function generatoreVersion(cb) { | @@ -72,6 +72,28 @@ function generatoreVersion(cb) { | ||
72 | cb() | 72 | cb() |
73 | } | 73 | } |
74 | 74 | ||
75 | +function copyFileUsageOssServer(cb) { | ||
76 | + // const shapesMinSrc = 'js/shapes-14-6-5.min.js' | ||
77 | + // const stenclisMinSrc = 'js/stencils.min.js' | ||
78 | + // const extensionsMinSrc = 'js/extensions.min.js' | ||
79 | + | ||
80 | + const copyFileList = [ | ||
81 | + './src/main/webapp/js/app.min.js', | ||
82 | + './src/main/webapp/js/shapes-14-6-5.min.js', | ||
83 | + './src/main/webapp/js/stencils.min.js', | ||
84 | + './src/main/webapp/js/extensions.min.js', | ||
85 | + ] | ||
86 | + | ||
87 | + const outPath = './build/oss' | ||
88 | + | ||
89 | + for (const filePath of copyFileList) { | ||
90 | + src(path.resolve(__dirname, filePath)) | ||
91 | + .pipe((dest(outPath))) | ||
92 | + } | ||
93 | + | ||
94 | + cb() | ||
95 | +} | ||
96 | + | ||
75 | // exports.default = series(generatoreVersion) | 97 | // exports.default = series(generatoreVersion) |
76 | 98 | ||
77 | -exports.default = series(copyFile, complieFormat, generatoreVersion, buildWar, reductionFile, clean) | 99 | +exports.default = series(copyFile, complieFormat, generatoreVersion, buildWar, copyFileUsageOssServer, reductionFile, clean) |
@@ -312,7 +312,7 @@ | @@ -312,7 +312,7 @@ | ||
312 | var supportedDomain = (hostName.substring(hostName.length - 8, hostName.length) === '.draw.io') || | 312 | var supportedDomain = (hostName.substring(hostName.length - 8, hostName.length) === '.draw.io') || |
313 | (hostName.substring(hostName.length - 13, hostName.length) === '.diagrams.net'); | 313 | (hostName.substring(hostName.length - 13, hostName.length) === '.diagrams.net'); |
314 | 314 | ||
315 | - const releaseVersion = '1658718818196' | 315 | + const releaseVersion = '1658728457597' |
316 | // const appMinSrc = `js/app.min.js?v=${releaseVersion}` | 316 | // const appMinSrc = `js/app.min.js?v=${releaseVersion}` |
317 | const appMinSrc = `https://oss.yuntengcloud.com/iotdocs/thingskit-scada/app.min.js?v=${releaseVersion}` | 317 | const appMinSrc = `https://oss.yuntengcloud.com/iotdocs/thingskit-scada/app.min.js?v=${releaseVersion}` |
318 | function loadAppJS() { | 318 | function loadAppJS() { |