Skip to content

Commit

Permalink
v5.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTschudi committed Mar 5, 2024
2 parents 3fd27c0 + 0cd486c commit c3329c6
Show file tree
Hide file tree
Showing 39 changed files with 265 additions and 308 deletions.
53 changes: 0 additions & 53 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -44,63 +44,10 @@ pushd demos\verifySolution
call npm install
popd

rem clear out older builds
rmdir/s/q packages\common\dist 2>nul
rmdir/s/q packages\creator\dist 2>nul
rmdir/s/q packages\deployer\dist 2>nul
rmdir/s/q packages\feature-layer\dist 2>nul
rmdir/s/q packages\file\dist 2>nul
rmdir/s/q packages\form\dist 2>nul
rmdir/s/q packages\group\dist 2>nul
rmdir/s/q packages\hub-types\dist 2>nul
rmdir/s/q packages\simple-types\dist 2>nul
rmdir/s/q packages\storymap\dist 2>nul
rmdir/s/q packages\velocity\dist 2>nul
rmdir/s/q packages\viewer\dist 2>nul
rmdir/s/q packages\web-experience\dist 2>nul
rmdir/s/q demos\copyItemInfo\dist 2>nul
rmdir/s/q demos\copySolutions\dist 2>nul
rmdir/s/q demos\createSolution\dist 2>nul
rmdir/s/q demos\deleteSolution\dist 2>nul
rmdir/s/q demos\deploySolution\dist 2>nul
rmdir/s/q demos\getItemInfo\dist 2>nul
rmdir/s/q demos\implementedTypes\dist 2>nul
rmdir/s/q demos\verifySolution\dist 2>nul

rem install and build the packages
call npm install
call npm run build

rem remove package.json files in distributions to keep lerna happy
del/q packages\common\dist\cjs\package.json 2>nul
del/q packages\common\dist\esm\package.json 2>nul
del/q packages\creator\dist\cjs\package.json 2>nul
del/q packages\creator\dist\esm\package.json 2>nul
del/q packages\deployer\dist\cjs\package.json 2>nul
del/q packages\deployer\dist\esm\package.json 2>nul
del/q packages\feature-layer\dist\cjs\package.json 2>nul
del/q packages\feature-layer\dist\esm\package.json 2>nul
del/q packages\file\dist\cjs\package.json 2>nul
del/q packages\file\dist\esm\package.json 2>nul
del/q packages\form\dist\cjs\package.json 2>nul
del/q packages\form\dist\esm\package.json 2>nul
del/q packages\group\dist\cjs\package.json 2>nul
del/q packages\group\dist\esm\package.json 2>nul
del/q packages\hub-types\dist\cjs\package.json 2>nul
del/q packages\hub-types\dist\esm\package.json 2>nul
del/q packages\simple-types\dist\cjs\package.json 2>nul
del/q packages\simple-types\dist\esm\package.json 2>nul
del/q packages\storymap\dist\cjs\package.json 2>nul
del/q packages\storymap\dist\esm\package.json 2>nul
del/q packages\velocity\dist\cjs\package.json 2>nul
del/q packages\velocity\dist\esm\package.json 2>nul
del/q packages\viewer\dist\cjs\package.json 2>nul
del/q packages\viewer\dist\esm\package.json 2>nul
del/q packages\web-experience\dist\cjs\package.json 2>nul
del/q packages\web-experience\dist\esm\package.json 2>nul
del/q packages\workflow\dist\cjs\package.json 2>nul
del/q packages\workflow\dist\esm\package.json 2>nul

rem build the demos
pushd demos\compareJSON
call npm run build
Expand Down
20 changes: 15 additions & 5 deletions check_npm_package_versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
package_json => {
currentVersion = package_json.version;
html = "<b>Current repository version: " + currentVersion + "</b><br><br>" +
"<table><tr><th class='package'>Package in unpkg</th><th>.umd.js</th><th>.umd.min.js</th></tr>";
"<table><tr><th class='package'>Package in unpkg</th><th>esm</th><th>cjs</th></tr>";

html += addPackageVersionsToTable("@esri/solution-common", "common");
html += addPackageVersionsToTable("@esri/solution-creator", "creator");
Expand Down Expand Up @@ -95,10 +95,10 @@
setTimeout(() => addSpecificPackageVersionToTable(packageName, packageFileName, false), 10);
setTimeout(() => addSpecificPackageVersionToTable(packageName, packageFileName, true), 10);
return "<tr><td class='package'><a href='https://www.npmjs.com/package/" + packageName + "' target='_blank'>" + packageName + "</td><td id='" +
packageFileName + "_reg'></td><td id='" + packageFileName + "_min'></td></tr>";
packageFileName + "_esm'></td><td id='" + packageFileName + "_cjs'></td></tr>";
}

function addSpecificPackageVersionToTable(packageName, packageFileName, useMinimized) {
function addSpecificPackageVersionToTable(packageName, packageFileName, useCJS) {
fetch("https://unpkg.com/" + packageName).then(
packageFile => {
const packageUrl = packageFile.url;
Expand All @@ -111,10 +111,20 @@
} else if (packageVersion !== currentVersion) {
packageVersion = "<span class='bad'>&nbsp;&nbsp;" + packageVersion + "</span>";
} else {
packageVersion = "<span class='good'>&nbsp;&nbsp;" + packageVersion + "</span>";
const versionRoot = packageUrl.substring(0, iVersionEnd);
const urlToFetch = versionRoot + (useCJS ? "/dist/cjs/index.js" : "/dist/esm/index.js");
fetch(urlToFetch).then(
packageVersionFile => {
if (packageVersionFile.status === 404) {
packageVersion = "<span class='bad'>&nbsp;&nbsp;" + packageVersion + "</span>";
} else {
packageVersion = "<span class='good'>&nbsp;&nbsp;" + packageVersion + "</span>";
}
document.getElementById(packageFileName + (useCJS ? "_cjs" : "_esm")).innerHTML = packageVersion;
}
);
}

document.getElementById(packageFileName + (useMinimized ? "_min" : "_reg")).innerHTML = packageVersion;
}
);
}
Expand Down
6 changes: 3 additions & 3 deletions demos/compareJSON/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions demos/compareJSON/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "compareJSON",
"version": "5.2.3",
"version": "5.2.4",
"description": "compareJSON demo",
"author": "Esri",
"license": "Apache-2.0",
Expand All @@ -19,7 +19,7 @@
"@esri/hub-initiatives": "^14.0.0",
"@esri/hub-sites": "^14.2.2",
"@esri/hub-teams": "^14.1.0",
"@esri/solution-common": "^5.2.3",
"@esri/solution-common": "^5.2.4",
"css-loader": "^6.9.0",
"html-webpack-plugin": "^5.5.1",
"postcss": "^8.4.33",
Expand Down
6 changes: 3 additions & 3 deletions demos/compareSolutions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions demos/compareSolutions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "compareSolutions",
"version": "5.2.3",
"version": "5.2.4",
"description": "compareSolutions demo",
"author": "Esri",
"license": "Apache-2.0",
Expand All @@ -19,7 +19,7 @@
"@esri/hub-initiatives": "^14.0.0",
"@esri/hub-sites": "^14.2.2",
"@esri/hub-teams": "^14.1.0",
"@esri/solution-common": "^5.2.3",
"@esri/solution-common": "^5.2.4",
"css-loader": "^6.9.0",
"html-webpack-plugin": "^5.5.1",
"postcss": "^8.4.33",
Expand Down
6 changes: 3 additions & 3 deletions demos/copyItemInfo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions demos/copyItemInfo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "copyItemInfo",
"version": "5.2.3",
"version": "5.2.4",
"description": "copyItemInfo demo",
"author": "Esri",
"license": "Apache-2.0",
Expand All @@ -19,7 +19,7 @@
"@esri/hub-initiatives": "^14.0.0",
"@esri/hub-sites": "^14.2.2",
"@esri/hub-teams": "^14.1.0",
"@esri/solution-common": "^5.2.3",
"@esri/solution-common": "^5.2.4",
"css-loader": "^6.9.0",
"html-webpack-plugin": "^5.5.1",
"postcss": "^8.4.33",
Expand Down
6 changes: 3 additions & 3 deletions demos/copySolutions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions demos/copySolutions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "copySolutions",
"version": "5.2.3",
"version": "5.2.4",
"description": "copySolutions demo",
"author": "Esri",
"license": "Apache-2.0",
Expand All @@ -20,7 +20,7 @@
"@esri/hub-initiatives": "^14.0.0",
"@esri/hub-sites": "^14.2.2",
"@esri/hub-teams": "^14.1.0",
"@esri/solution-common": "^5.2.3",
"@esri/solution-common": "^5.2.4",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.9.0",
"html-webpack-plugin": "^5.5.1",
Expand Down
32 changes: 16 additions & 16 deletions demos/createSolution/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions demos/createSolution/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "createSolution",
"version": "5.2.3",
"version": "5.2.4",
"description": "createSolution demo",
"author": "Esri",
"license": "Apache-2.0",
Expand All @@ -19,20 +19,20 @@
"@esri/hub-initiatives": "^14.0.0",
"@esri/hub-sites": "^14.2.2",
"@esri/hub-teams": "^14.1.0",
"@esri/solution-common": "^5.2.3",
"@esri/solution-creator": "^5.2.3",
"@esri/solution-deployer": "^5.2.3",
"@esri/solution-feature-layer": "^5.2.3",
"@esri/solution-file": "^5.2.3",
"@esri/solution-form": "^5.2.3",
"@esri/solution-group": "^5.2.3",
"@esri/solution-hub-types": "^5.2.3",
"@esri/solution-simple-types": "^5.2.3",
"@esri/solution-storymap": "^5.2.3",
"@esri/solution-velocity": "^5.2.3",
"@esri/solution-viewer": "^5.2.3",
"@esri/solution-web-experience": "^5.2.3",
"@esri/solution-workflow": "^5.2.3",
"@esri/solution-common": "^5.2.4",
"@esri/solution-creator": "^5.2.4",
"@esri/solution-deployer": "^5.2.4",
"@esri/solution-feature-layer": "^5.2.4",
"@esri/solution-file": "^5.2.4",
"@esri/solution-form": "^5.2.4",
"@esri/solution-group": "^5.2.4",
"@esri/solution-hub-types": "^5.2.4",
"@esri/solution-simple-types": "^5.2.4",
"@esri/solution-storymap": "^5.2.4",
"@esri/solution-velocity": "^5.2.4",
"@esri/solution-viewer": "^5.2.4",
"@esri/solution-web-experience": "^5.2.4",
"@esri/solution-workflow": "^5.2.4",
"css-loader": "^6.9.0",
"html-webpack-plugin": "^5.5.1",
"postcss": "^8.4.33",
Expand Down
6 changes: 3 additions & 3 deletions demos/deleteSolution/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c3329c6

Please sign in to comment.