@wix/himalaya-cli 0.2012.0 → 0.2014.0
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/dist/cli.mjs +9 -7
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -3964,7 +3964,6 @@ var init_himi_package = __esm({
|
|
|
3964
3964
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
3965
3965
|
var init_icon_catalog_generated = __esm({
|
|
3966
3966
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
3967
|
-
"use strict";
|
|
3968
3967
|
init_define_HHP_CATALOG();
|
|
3969
3968
|
ICON_VIEW_BOX = 24;
|
|
3970
3969
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -9496,6 +9495,7 @@ __export(splash_exports, {
|
|
|
9496
9495
|
DEFAULT_BACKGROUND_TOKEN: () => DEFAULT_BACKGROUND_TOKEN,
|
|
9497
9496
|
IOS_COLORSET_NAME: () => IOS_COLORSET_NAME,
|
|
9498
9497
|
IOS_LAUNCH_ICON_NAME: () => IOS_LAUNCH_ICON_NAME,
|
|
9498
|
+
IOS_SPLASH_COLORSET_ONLY: () => IOS_SPLASH_COLORSET_ONLY,
|
|
9499
9499
|
LABEL_IOS_SPLASH: () => LABEL_IOS_SPLASH,
|
|
9500
9500
|
LOGO_WIDTH_DEFAULT: () => LOGO_WIDTH_DEFAULT,
|
|
9501
9501
|
ROUNDED_SQUARE_CORNER_FRACTION: () => ROUNDED_SQUARE_CORNER_FRACTION,
|
|
@@ -9815,9 +9815,10 @@ function assertNoStoryboard(app2, projectYml) {
|
|
|
9815
9815
|
function androidOptedIn(manifestPath) {
|
|
9816
9816
|
return existsSync4(manifestPath) && readFileSync4(manifestPath, "utf8").includes(`@style/${ANDROID_STYLE_NAME}`);
|
|
9817
9817
|
}
|
|
9818
|
-
function splashPlan(app2, configTs, manifestPath, hasIosMarkers) {
|
|
9818
|
+
function splashPlan(app2, configTs, manifestPath, hasIosMarkers, iosColorsetOnly = false) {
|
|
9819
9819
|
const androidIn = androidOptedIn(manifestPath);
|
|
9820
|
-
|
|
9820
|
+
const iosColorset = hasIosMarkers || iosColorsetOnly;
|
|
9821
|
+
if (!iosColorset && !androidIn) return { artifacts: [] };
|
|
9821
9822
|
if (hasIosMarkers) {
|
|
9822
9823
|
const ymlPath = iosProjectYml(app2);
|
|
9823
9824
|
if (existsSync4(ymlPath)) assertNoStoryboard(app2, readFileSync4(ymlPath, "utf8"));
|
|
@@ -9826,13 +9827,13 @@ function splashPlan(app2, configTs, manifestPath, hasIosMarkers) {
|
|
|
9826
9827
|
return {
|
|
9827
9828
|
colors,
|
|
9828
9829
|
artifacts: [
|
|
9829
|
-
...
|
|
9830
|
+
...iosColorset ? iosSplashArtifacts(app2, colors) : [],
|
|
9830
9831
|
...androidIn ? androidSplashArtifacts(app2, colors, manifestPath) : [],
|
|
9831
9832
|
...macosSplashArtifacts()
|
|
9832
9833
|
]
|
|
9833
9834
|
};
|
|
9834
9835
|
}
|
|
9835
|
-
var LABEL_IOS_SPLASH, IOS_COLORSET_NAME, ANDROID_COLOR_RES, ANDROID_STYLE_NAME, ANDROID_SPLASH_FILE, ANDROID_SPLASH_PARENT, DEFAULT_BACKGROUND_TOKEN, IOS_LAUNCH_ICON_NAME, ANDROID_LAUNCH_ICON_ART, LOGO_WIDTH_DEFAULT, ANDROID_SPLASH_ICON_CANVAS_DP, ANDROID_SPLASH_ICON_MASK_DP, ROUNDED_SQUARE_CORNER_FRACTION, ANDROID_SPLASH_ROUNDED_SQUARE_MAX_DP, GENERATED_XML_NOTE;
|
|
9836
|
+
var LABEL_IOS_SPLASH, IOS_SPLASH_COLORSET_ONLY, IOS_COLORSET_NAME, ANDROID_COLOR_RES, ANDROID_STYLE_NAME, ANDROID_SPLASH_FILE, ANDROID_SPLASH_PARENT, DEFAULT_BACKGROUND_TOKEN, IOS_LAUNCH_ICON_NAME, ANDROID_LAUNCH_ICON_ART, LOGO_WIDTH_DEFAULT, ANDROID_SPLASH_ICON_CANVAS_DP, ANDROID_SPLASH_ICON_MASK_DP, ROUNDED_SQUARE_CORNER_FRACTION, ANDROID_SPLASH_ROUNDED_SQUARE_MAX_DP, GENERATED_XML_NOTE;
|
|
9836
9837
|
var init_splash = __esm({
|
|
9837
9838
|
"../native-config/splash.ts"() {
|
|
9838
9839
|
init_define_HHP_CATALOG();
|
|
@@ -9840,6 +9841,7 @@ var init_splash = __esm({
|
|
|
9840
9841
|
init_config_ast();
|
|
9841
9842
|
init_schema3();
|
|
9842
9843
|
LABEL_IOS_SPLASH = "himalaya:splash:info";
|
|
9844
|
+
IOS_SPLASH_COLORSET_ONLY = "himalaya:splash:colorset-only";
|
|
9843
9845
|
IOS_COLORSET_NAME = "HimalayaLaunchBackground";
|
|
9844
9846
|
ANDROID_COLOR_RES = "himalaya_splash_background";
|
|
9845
9847
|
ANDROID_STYLE_NAME = "Theme.Himalaya.Splash";
|
|
@@ -47236,7 +47238,6 @@ function shouldRevealError(args) {
|
|
|
47236
47238
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
47237
47239
|
var init_validation = __esm({
|
|
47238
47240
|
"../../core/ts/src/validation.ts"() {
|
|
47239
|
-
"use strict";
|
|
47240
47241
|
init_define_HHP_CATALOG();
|
|
47241
47242
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
47242
47243
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -200563,7 +200564,8 @@ function genNativeConfig(app2, opts = {}) {
|
|
|
200563
200564
|
}
|
|
200564
200565
|
const iosSplashManaged = existsSync82(iosYml) && hasMarkers(readFileSync91(iosYml, "utf8"), "yaml", LABEL_IOS_SPLASH);
|
|
200565
200566
|
const manifest2 = androidManifestPath2(app2);
|
|
200566
|
-
const
|
|
200567
|
+
const iosColorsetOnly = existsSync82(iosYml) && readFileSync91(iosYml, "utf8").includes(IOS_SPLASH_COLORSET_ONLY);
|
|
200568
|
+
const splash = splashPlan(app2, configTs, manifest2, iosSplashManaged, iosColorsetOnly);
|
|
200567
200569
|
for (const artifact of splash.artifacts) files.push(applyWholeFile(artifact.path, artifact.content, check));
|
|
200568
200570
|
for (const artifact of iconPlan(app2, configTs)) files.push(applyWholeFile(artifact.path, artifact.content, check));
|
|
200569
200571
|
files.push(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2014.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "df173d217ce32136dd26aa3abc8ad7f04ce8149855501925d5cad447"
|
|
86
86
|
}
|