@neonwilderness/moveskins 1.3.0 → 1.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.0 (07.05.2026)
4
+
5
+ - Add --layout CLI param string to address different Twoday layouts for up-/downloads
6
+
3
7
  ## 1.3.0 (02.05.2026)
4
8
 
5
9
  - Add --toolbar CLI switch to additionally download 3 related modToolbar skins
package/dist/index.js CHANGED
@@ -61354,7 +61354,10 @@ var E_ = A(process.cwd(), "skins"), D_ = A(process.cwd(), "backup"), O_ = A(E_,
61354
61354
  try {
61355
61355
  await e.login();
61356
61356
  for (let r of t) {
61357
- console.log(Fi.green(`\nNow processing alias "${r}"...`));
61357
+ if (console.log(Fi.green(`\nNow processing alias "${r}"...`)), n.layout) {
61358
+ let t = await e.useLayout(r, n.layout);
61359
+ console.log(Fi.green(`Switching to layout "${t.activeLayoutName} of alias "${r}".`));
61360
+ }
61358
61361
  let t = A_(r, n.backup), i = await e.getModifiedSkins(r), a = {};
61359
61362
  i.length && !v(t) && y(t), console.log(Fi.yellow(`${r} has ${i.length} modified skin${i.length === 1 ? "" : "s"}`)), n.skin && console.log(Fi.yellow(`Filtering skins for ${n.skin}.`));
61360
61363
  for (let t of i) {
@@ -61406,7 +61409,10 @@ var E_ = A(process.cwd(), "skins"), D_ = A(process.cwd(), "backup"), O_ = A(E_,
61406
61409
  try {
61407
61410
  await e.login();
61408
61411
  for (let r of t) {
61409
- console.log(Fi.green(`\nNow processing alias "${r}"...`));
61412
+ if (console.log(Fi.green(`\nNow processing alias "${r}"...`)), n.layout) {
61413
+ let t = await e.useLayout(r, n.layout);
61414
+ console.log(Fi.green(`Switching to layout "${t.activeLayoutName} of alias "${r}".`));
61415
+ }
61410
61416
  let t = M_(r, n.backup);
61411
61417
  console.log(Fi.yellow(`${r} has ${t.length} local skins. `) + Fi.red(`${t.length === 0 ? "Got nothing to do!" : ""}`)), n.skin && console.log(Fi.yellow(`Filtering skins for ${n.skin}.`));
61412
61418
  let i = await e.getModifiedSkins(r), a = new Set(i.map((e) => e.name)), o = A_(r, n.backup);
@@ -61576,6 +61582,12 @@ Make sure to add them to ${t} or directly to the environment.`, o = e ? "" : "If
61576
61582
  description: "Skin selection string (regex) to filter the skins to upload",
61577
61583
  type: "string"
61578
61584
  },
61585
+ layout: {
61586
+ alias: "l",
61587
+ description: "Uses this layout name for all subsequent actions",
61588
+ default: "",
61589
+ type: "string"
61590
+ },
61579
61591
  modules: {
61580
61592
  alias: "m",
61581
61593
  description: "Download sidebar module skins/freetext as well",
@@ -61621,6 +61633,7 @@ else {
61621
61633
  e === "down" && W_.clean && (j_(q_, W_.backup), console.log(Fi.yellow(`Cleaning target download folder/s for "${q_}".`))), console.log(`Start ${e}loading modified skins of alias${q_.length > 1 ? "es" : ""} ${Fi.yellow(q_.join(", "))} ${t} remote ${Fi.green(K_.fullDomain)}...`), n(K_, q_, {
61622
61634
  backup: W_.backup,
61623
61635
  debug: W_.debug,
61636
+ layout: W_.layout,
61624
61637
  modules: W_.modules,
61625
61638
  skin: W_.skin ? new RegExp(W_.skin) : null,
61626
61639
  toolbar: W_.toolbar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neonwilderness/moveskins",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Download/Upload/Compare modified skins for selected aliases on Twoday",
5
5
  "keywords": [
6
6
  "antville",
package/src/_download.js CHANGED
@@ -42,6 +42,12 @@ const downloadModifiedSkins = async (td, aliases, options) => {
42
42
 
43
43
  for (let alias of aliases) {
44
44
  console.log(chalk.green(`\nNow processing alias "${alias}"...`));
45
+
46
+ if (options.layout) {
47
+ const layout = await td.useLayout(alias, options.layout);
48
+ console.log(chalk.green(`Switching to layout "${layout.activeLayoutName} of alias "${alias}".`));
49
+ }
50
+
45
51
  const aliasSkinDir = aliasSkinFolder(alias, options.backup);
46
52
  const modifiedSkins = await td.getModifiedSkins(alias);
47
53
  let skinContainer = {};
package/src/_upload.js CHANGED
@@ -20,6 +20,12 @@ const uploadModifiedSkins = async (td, aliases, options) => {
20
20
 
21
21
  for (let alias of aliases) {
22
22
  console.log(chalk.green(`\nNow processing alias "${alias}"...`));
23
+
24
+ if (options.layout) {
25
+ const layout = await td.useLayout(alias, options.layout);
26
+ console.log(chalk.green(`Switching to layout "${layout.activeLayoutName} of alias "${alias}".`));
27
+ }
28
+
23
29
  const localSkinFiles = getLocalSkins(alias, options.backup);
24
30
  console.log(
25
31
  chalk.yellow(`${alias} has ${localSkinFiles.length} local skins. `) +
package/src/index.js CHANGED
@@ -33,6 +33,12 @@ const argv = yargs(process.argv.slice(2)).options({
33
33
  description: "Skin selection string (regex) to filter the skins to upload",
34
34
  type: "string",
35
35
  },
36
+ layout: {
37
+ alias: "l",
38
+ description: "Uses this layout name for all subsequent actions",
39
+ default: '',
40
+ type: "string",
41
+ },
36
42
  modules: {
37
43
  alias: "m",
38
44
  description: "Download sidebar module skins/freetext as well",
@@ -123,6 +129,7 @@ if (argv.compare) {
123
129
  execTask(td, aliases, {
124
130
  backup: argv.backup,
125
131
  debug: argv.debug,
132
+ layout: argv.layout,
126
133
  modules: argv.modules,
127
134
  skin: argv.skin ? new RegExp(argv.skin) : null,
128
135
  toolbar: argv.toolbar,