@ovipakla/gm-cli 2.0.3 → 2.1.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.
Files changed (2) hide show
  1. package/app.js +9 -5
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -492,19 +492,20 @@ program
492
492
  log_info "Clean '$project_path/tmp/igor'"
493
493
  rm -rf $project_path/tmp/igor
494
494
 
495
- log_info "Execute shell command:\n\\\e[33m$igor_path \\ \n --runtimePath="$runtime_path" \\ \n --runtime=$runtime \\ \n --project="$\{project_path\}/$\{project_yyp\}" \\ \n --projectool="$\{project_tool\}" \\ \n -- $target Clean\n\\\e[0m"
495
+ log_info "Execute shell command:\n\\\e[33m$igor_path \\ \n --runtimePath="$runtime_path" \\ \n --runtime=$runtime \\ \n --project="$\{project_path\}/$\{project_yyp\}" \\ \n --projectool="$\{project_tool\}" \\ \n --uf="$user_path" \\ \n -- $target Clean\n\\\e[0m"
496
496
  $igor_path \
497
497
  --runtimePath="$runtime_path" \
498
498
  --runtime=$runtime \
499
499
  --project="$\{project_path\}/$\{project_yyp\}" \
500
500
  --projectool="$\{project_tool\}" \
501
+ --uf="$user_path" \
501
502
  -- $target Clean | GREP_COLORS='mt=01;31' grep --color=always -E 'Error : |$'
502
503
  fi
503
504
 
504
505
  log_info "Clean '$\{project_path\}/tmp/igor/out'"
505
506
  rm -rf $\{project_path\}/tmp/igor/out
506
507
 
507
- log_info "Execute shell command:\n\\\e[33m$igor_path \\ \n --project="$\{project_path\}/$\{project_yyp\}" \\ \n --user="$user_path" \\ \n --runtimePath="$runtime_path" \\ \n --runtime=$runtime \\ \n --cache="$\{project_path\}/tmp/igor/cache" \\ \n --temp="$\{project_path\}/tmp/igor/temp" \\ \n --of="$\{project_path\}/tmp/igor/out/$\{project_name\}.win" \\ \n --tf="$\{zip_name\}.zip" \\ \n --projectool="$\{project_tool\}" \\ \n -- $target ${config.launch}\\\e[0m"
508
+ log_info "Execute shell command:\n\\\e[33m$igor_path \\ \n --project="$\{project_path\}/$\{project_yyp\}" \\ \n --user="$user_path" \\ \n --runtimePath="$runtime_path" \\ \n --runtime=$runtime \\ \n --cache="$\{project_path\}/tmp/igor/cache" \\ \n --temp="$\{project_path\}/tmp/igor/temp" \\ \n --of="$\{project_path\}/tmp/igor/out/$\{project_name\}.win" \\ \n --tf="$\{zip_name\}.zip" \\ \n --projectool="$\{project_tool\}" \\ \n --uf="$user_path" \\ \n -- $target ${config.launch}\\\e[0m"
508
509
  $igor_path \
509
510
  --project="$\{project_path\}/$\{project_yyp\}" \
510
511
  --user="$user_path" \
@@ -515,6 +516,7 @@ program
515
516
  --of="$\{project_path\}/tmp/igor/out/$\{project_name\}.win" \
516
517
  --tf="$\{zip_name\}.zip" \
517
518
  --projectool="$\{project_tool\}" \
519
+ --uf="$user_path" \
518
520
  -- $target ${config.launch} | GREP_COLORS='mt=01;31' grep --color=always -E 'Error : |$'
519
521
 
520
522
  exit 0
@@ -545,12 +547,14 @@ program
545
547
  const propertyProjectoolPath = await askQuestion('Path to ProjectTool.exe: ');
546
548
  const propertyRuntimePath = await askQuestion('Path to gamemaker runtime: ');
547
549
  const propertyUserPath = await askQuestion('Path to gamemaker user: ');
550
+ const propertyVsDevCmdPath = await askQuestion('Path to VsDevCmd.bat: ');
548
551
  const data = {
549
552
  GM_CLI_DEFAULT_RUNTIME: runtimes.includes(propertyDefaultRuntime) ? propertyDefaultRuntime : runtimes[0],
550
553
  GM_CLI_DEFAULT_TARGET: runtimes.includes(propertyDefaultTarget) ? propertyDefaultTarget : targets[0],
551
554
  GM_CLI_PROJECT_TOOL_PATH: path.normalize(propertyProjectoolPath),
552
555
  GM_CLI_RUNTIME_PATH: path.normalize(propertyRuntimePath),
553
- GM_CLI_USER_PATH: path.normalize(propertyUserPath)
556
+ GM_CLI_USER_PATH: path.normalize(propertyUserPath),
557
+ GM_CLI_VS_DEV_CMD_PATH: path.normalize(propertyVsDevCmdPath),
554
558
  };
555
559
 
556
560
  const filePath = path.join(projectPath, '.gm-cli.env');
@@ -827,7 +831,7 @@ resource
827
831
  .description("Delete a resource")
828
832
  .requiredOption("-n, --name <name>", "Resource name")
829
833
  .option("--type <type>", "Resource type")
830
- .action((name, options) => {
834
+ .action((options) => {
831
835
  const packageGM = getPackageGM()
832
836
  const yypPath = getYYPPathFromPackageGM(packageGM)
833
837
  const typeOptions = options.type !== undefined ? `type=${options.type}` : ``
@@ -839,7 +843,7 @@ resource
839
843
  .command("list")
840
844
  .description("List resources")
841
845
  .option("--type <type>", "Resource type")
842
- .action((name, options) => {
846
+ .action((options) => {
843
847
  const packageGM = getPackageGM()
844
848
  const yypPath = getYYPPathFromPackageGM(packageGM)
845
849
  const typeOptions = options.type !== undefined ? `type=${options.type}` : ``
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.0.3",
6
+ "version": "2.1.1",
7
7
  "description": "Gamemaker CLI toolkit. Watch &amp; sync gml sources with yyp project.",
8
8
  "main": "app.js",
9
9
  "scripts": {},