@breakside/jskit 2022.49.0 → 2022.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/HTMLBuilder.js +68 -0
- package/Node/io.breakside.jskit-bundle.js +2 -2
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/UICheckbox.js +2 -1
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
4
|
-
"JSBundleVersion": "2022.49.
|
|
4
|
+
"JSBundleVersion": "2022.49.1",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "DOM+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
6
|
-
"JSBundleVersion": "2022.49.
|
|
6
|
+
"JSBundleVersion": "2022.49.1",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
11
11
|
"node": "DOM+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
4
|
-
"JSBundleVersion": "2022.49.
|
|
4
|
+
"JSBundleVersion": "2022.49.1",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
8
8
|
"html": "FontKit+HTML.js"
|
|
9
9
|
},
|
|
10
10
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
6
|
-
"JSBundleVersion": "2022.49.
|
|
6
|
+
"JSBundleVersion": "2022.49.1",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
10
10
|
"html": "FontKit+HTML.js"
|
|
11
11
|
},
|
|
12
12
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [],
|
|
16
16
|
"ResourceLookup": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
4
|
-
"JSBundleVersion": "2022.49.
|
|
4
|
+
"JSBundleVersion": "2022.49.1",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "Foundation+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
6
|
-
"JSBundleVersion": "2022.49.
|
|
6
|
+
"JSBundleVersion": "2022.49.1",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
11
11
|
"node": "Foundation+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [
|
|
17
17
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
4
|
-
"JSBundleVersion": "2022.49.
|
|
4
|
+
"JSBundleVersion": "2022.49.1",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "SecurityKit+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
6
|
-
"JSBundleVersion": "2022.49.
|
|
6
|
+
"JSBundleVersion": "2022.49.1",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
11
11
|
"node": "SecurityKit+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
package/Info.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "node",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
4
|
-
"JSBundleVersion": "2022.49.
|
|
4
|
+
"JSBundleVersion": "2022.49.1",
|
|
5
5
|
"JSExecutableName": "jskit",
|
|
6
6
|
"NPMOrganization": "breakside",
|
|
7
7
|
"JSResources": [
|
|
8
8
|
"Tests/HTMLTestRunner.js",
|
|
9
9
|
"Tests/NodeTestRunner.js"
|
|
10
10
|
],
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
12
12
|
}
|
package/Node/HTMLBuilder.js
CHANGED
|
@@ -56,6 +56,7 @@ JSClass("HTMLBuilder", Builder, {
|
|
|
56
56
|
bundleURL: null,
|
|
57
57
|
wwwURL: null,
|
|
58
58
|
confURL: null,
|
|
59
|
+
s3URL: null,
|
|
59
60
|
logsURL: null,
|
|
60
61
|
cacheBustingURL: null,
|
|
61
62
|
sourcesURL: null,
|
|
@@ -86,6 +87,7 @@ JSClass("HTMLBuilder", Builder, {
|
|
|
86
87
|
this.bundleURL = this.buildURL.appendingPathComponent(this.project.name, true);
|
|
87
88
|
this.wwwURL = this.bundleURL.appendingPathComponent('www', true);
|
|
88
89
|
this.confURL = this.bundleURL.appendingPathComponent('conf', true);
|
|
90
|
+
this.s3URL = this.bundleURL.appendingPathComponent('s3', true);
|
|
89
91
|
this.logsURL = this.bundleURL.appendingPathComponent('logs', true);
|
|
90
92
|
this.tzURL = this.bundleURL.appendingPathComponent('tz', true);
|
|
91
93
|
this.cacheBustingURL = this.wwwURL.appendingPathComponent(this.debug ? 'debug' : this.buildId);
|
|
@@ -128,6 +130,7 @@ JSClass("HTMLBuilder", Builder, {
|
|
|
128
130
|
await this.bundleWWW();
|
|
129
131
|
await this.buildServiceWorker();
|
|
130
132
|
await this.bundleConf();
|
|
133
|
+
await this.bundleS3DeployScript();
|
|
131
134
|
await this.copyLicense();
|
|
132
135
|
await this.bundleInfo();
|
|
133
136
|
await this.buildDocker();
|
|
@@ -582,6 +585,8 @@ JSClass("HTMLBuilder", Builder, {
|
|
|
582
585
|
}
|
|
583
586
|
},
|
|
584
587
|
|
|
588
|
+
indexURL: null,
|
|
589
|
+
|
|
585
590
|
buildIndex: async function(sourceURL, toURL){
|
|
586
591
|
let contents = await this.fileManager.contentsAtURL(sourceURL);
|
|
587
592
|
let html = contents.stringByDecodingUTF8();
|
|
@@ -654,6 +659,7 @@ JSClass("HTMLBuilder", Builder, {
|
|
|
654
659
|
let serializer = new XMLSerializer();
|
|
655
660
|
html = serializer.serializeToString(document);
|
|
656
661
|
await this.fileManager.createFileAtURL(toURL, html.utf8());
|
|
662
|
+
this.indexURL = toURL;
|
|
657
663
|
},
|
|
658
664
|
|
|
659
665
|
buildCSS: async function(){
|
|
@@ -893,6 +899,68 @@ JSClass("HTMLBuilder", Builder, {
|
|
|
893
899
|
this.commands.push("nginx -p %s".sprintf(bundlePath));
|
|
894
900
|
},
|
|
895
901
|
|
|
902
|
+
// -----------------------------------------------------------------------
|
|
903
|
+
// MARK: - S3 Deploy
|
|
904
|
+
|
|
905
|
+
bundleS3DeployScript: async function(){
|
|
906
|
+
this.printer.setStatus("Creating s3 deploy script...");
|
|
907
|
+
var emptyURL = this.s3URL.appendingPathComponent("empty");
|
|
908
|
+
await this.fileManager.createFileAtURL(emptyURL, JSData.initWithLength(0));
|
|
909
|
+
var scriptURL = this.s3URL.appendingPathComponent("deploy.sh");
|
|
910
|
+
var localRootPath = this.fileManager.pathForURL(this.wwwURL.settingHasDirectoryPath(false));
|
|
911
|
+
var lines = [];
|
|
912
|
+
lines.push("#!/bin/sh");
|
|
913
|
+
lines.push("");
|
|
914
|
+
lines.push("S3_BUCKET=$1");
|
|
915
|
+
lines.push("S3_PREFIX=$2");
|
|
916
|
+
lines.push("S3_ROOT=s3://${S3_BUCKET}${S3_PREFIX}");
|
|
917
|
+
lines.push("LOCAL_ROOT=%s".sprintf(localRootPath));
|
|
918
|
+
lines.push("");
|
|
919
|
+
lines.push("if [ -z \"$S3_ROOT\" ]; then");
|
|
920
|
+
lines.push(" echo \"Usage: deploy.sh s3-bucket [s3-prefix]\"");
|
|
921
|
+
lines.push(" exit 1");
|
|
922
|
+
lines.push("fi");
|
|
923
|
+
lines.push("");
|
|
924
|
+
let resourcesPath = this.resourcesURL.settingHasDirectoryPath(true).encodedStringRelativeTo(this.wwwURL);
|
|
925
|
+
let cacheBustingPath = this.cacheBustingURL.settingHasDirectoryPath(true).encodedStringRelativeTo(this.wwwURL);
|
|
926
|
+
let indexPath = this.indexURL.encodedStringRelativeTo(this.wwwURL);
|
|
927
|
+
let preflightPath = this.preflightURL.encodedStringRelativeTo(this.wwwURL);
|
|
928
|
+
let manifestPath = null;
|
|
929
|
+
let serviceWorkerPath = null;
|
|
930
|
+
let bootstrapperPath = "HTMLAppBootstrapper.js";
|
|
931
|
+
let excludes = [
|
|
932
|
+
cacheBustingPath + "*",
|
|
933
|
+
resourcesPath + "*",
|
|
934
|
+
preflightPath,
|
|
935
|
+
indexPath,
|
|
936
|
+
bootstrapperPath
|
|
937
|
+
];
|
|
938
|
+
if (this.manifestURL !== null){
|
|
939
|
+
manifestPath = this.manifestURL.encodedStringRelativeTo(this.wwwURL);
|
|
940
|
+
excludes.push(manifestPath);
|
|
941
|
+
}
|
|
942
|
+
if (this.serviceWorkerURL !== null){
|
|
943
|
+
serviceWorkerPath = this.serviceWorkerURL.encodedStringRelativeTo(this.wwwURL);
|
|
944
|
+
excludes.push(serviceWorkerPath);
|
|
945
|
+
}
|
|
946
|
+
lines.push("aws s3 sync ${LOCAL_ROOT} ${S3_ROOT} %s || exit 1".sprintf(excludes.map(e => "--exclude '" + e + "'").join(" ")));
|
|
947
|
+
lines.push("aws s3 sync ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --cache-control='max-age=315360000' --expires 'Thu, 31 Dec 2037 23:55:55 GMT' || exit 1".sprintf(cacheBustingPath));
|
|
948
|
+
lines.push("aws s3 sync ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --size-only --cache-control='max-age=315360000' --expires 'Thu, 31 Dec 2037 23:55:55 GMT' || exit 1".sprintf(resourcesPath));
|
|
949
|
+
lines.push("aws s3 cp ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --cache-control='max-age=315360000' --expires 'Thu, 31 Dec 2037 23:55:55 GMT' || exit 1".sprintf(preflightPath));
|
|
950
|
+
lines.push("aws s3 cp ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --cache-control='no-cache' --expires 'Thu, 01 Jan 1970 00:00:01 GMT' || exit 1".sprintf(bootstrapperPath));
|
|
951
|
+
lines.push("aws s3 cp ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --cache-control='no-cache' --expires 'Thu, 01 Jan 1970 00:00:01 GMT' || exit 1".sprintf(indexPath));
|
|
952
|
+
if (manifestPath !== null){
|
|
953
|
+
lines.push("aws s3 cp ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --cache-control='no-cache' --expires 'Thu, 01 Jan 1970 00:00:01 GMT' --content-type='text/cache-manifest' || exit 1".sprintf(manifestPath));
|
|
954
|
+
}
|
|
955
|
+
if (serviceWorkerPath !== null){
|
|
956
|
+
lines.push("aws s3 cp ${LOCAL_ROOT}/%1$s ${S3_ROOT}/%1$s --cache-control='no-cache' --expires 'Thu, 01 Jan 1970 00:00:01 GMT' || exit 1".sprintf(serviceWorkerPath));
|
|
957
|
+
}
|
|
958
|
+
lines.push("");
|
|
959
|
+
var contents = lines.join("\n").utf8();
|
|
960
|
+
await this.fileManager.createFileAtURL(scriptURL, contents);
|
|
961
|
+
await this.fileManager.makeExecutableAtURL(scriptURL);
|
|
962
|
+
},
|
|
963
|
+
|
|
896
964
|
// -----------------------------------------------------------------------
|
|
897
965
|
// MARK: - Info & License
|
|
898
966
|
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "node",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
6
|
-
"JSBundleVersion": "2022.49.
|
|
6
|
+
"JSBundleVersion": "2022.49.1",
|
|
7
7
|
"JSExecutableName": "jskit",
|
|
8
8
|
"NPMOrganization": "breakside",
|
|
9
9
|
"JSResources": [
|
|
10
10
|
"Tests/HTMLTestRunner.js",
|
|
11
11
|
"Tests/NodeTestRunner.js"
|
|
12
12
|
],
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [
|
|
16
16
|
{
|
|
@@ -329,8 +329,9 @@ JSClass("UICheckboxDefaultStyler", UICheckboxStyler, {
|
|
|
329
329
|
maxTitleSize.width -= boxWidth;
|
|
330
330
|
checkbox._titleLabel.sizeToFitSize(maxTitleSize);
|
|
331
331
|
checkbox.bounds = JSRect(0, 0, boxWidth + checkbox._titleLabel.frame.size.width, height);
|
|
332
|
+
}else{
|
|
333
|
+
checkbox.bounds = JSRect(0, 0, height, height);
|
|
332
334
|
}
|
|
333
|
-
checkbox.bounds = JSRect(0, 0, height, height);
|
|
334
335
|
},
|
|
335
336
|
|
|
336
337
|
intrinsicSizeOfControl: function(checkbox){
|