From bf494b639e1a1f74c1f5518d878d8f3861116220 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 9 May 2022 20:03:24 -0500 Subject: [PATCH 1/2] Prepare extension for building setup-development: - linux: - Install vsce (visual studio code extension tool) - Don't install yo generator-code (unnecessary) - windows: - Install vsce (see above) - Don't install uo generator-code --- .vscodeignore | 2 ++ setup-development/linux/upgrade-linux.sh | 4 ++-- setup-development/windows/upgrade-windows.ps1 | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index fbd8824..c5a93c2 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -10,3 +10,5 @@ vsc-extension-quickstart.md **/.eslintrc.json **/*.map **/*.ts + +setup-development/** \ No newline at end of file diff --git a/setup-development/linux/upgrade-linux.sh b/setup-development/linux/upgrade-linux.sh index 1cfa484..9399b59 100755 --- a/setup-development/linux/upgrade-linux.sh +++ b/setup-development/linux/upgrade-linux.sh @@ -114,8 +114,8 @@ dryrun nvm install "$nodeversion" dryrun nvm use "$nodeversion" # Use npm to install electron-rebuild and yo -printf "Installing electron-rebuild, yo, and generator-code\n" -dryrun npm install electron-rebuild yo generator-code +printf "Installing electron-rebuild and vsce\n" +dryrun npm install -g electron-rebuild vsce # use npm to acquire dependencies for Mind-Reader printf "\nAcquiring dependencies...\n" diff --git a/setup-development/windows/upgrade-windows.ps1 b/setup-development/windows/upgrade-windows.ps1 index 0e7a549..49e19ad 100644 --- a/setup-development/windows/upgrade-windows.ps1 +++ b/setup-development/windows/upgrade-windows.ps1 @@ -165,11 +165,11 @@ function EnsureNodePackageInstalled { } } -# Check if electron-rebuild is installed, if not, install it +# electron-rebuild is used to rebuild the extension for a given version of Electron EnsureNodePackageInstalled electron-rebuild -# These are useful (but not necessary) packages to have installed when working on new VSCode extensions -EnsureNodePackageInstalled yo, generator-code +# vsce is used to package the extension +EnsureNodePackageInstalled vsce # We're about to do some path traversal, so save the current directory $prev_directory = $pwd From 8dab64c95693231280cca33bcbeaa5c5408cd26a Mon Sep 17 00:00:00 2001 From: John Date: Mon, 9 May 2022 20:07:34 -0500 Subject: [PATCH 2/2] "No newline at end of file" --- .vscodeignore | 2 +- setup-development/linux/install-linux.sh | 2 +- setup-development/windows/install-windows.ps1 | 2 +- setup-development/windows/upgrade-windows.ps1 | 2 +- setup-development/windows/winget/dependencies.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index c5a93c2..2d946ef 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -11,4 +11,4 @@ vsc-extension-quickstart.md **/*.map **/*.ts -setup-development/** \ No newline at end of file +setup-development/** diff --git a/setup-development/linux/install-linux.sh b/setup-development/linux/install-linux.sh index 608223a..bc784f3 100755 --- a/setup-development/linux/install-linux.sh +++ b/setup-development/linux/install-linux.sh @@ -62,4 +62,4 @@ bash ./upgrade-linux.sh $@ echo "Opening VS Code..." cd $gitdir/Mind_Reader -code . \ No newline at end of file +code . diff --git a/setup-development/windows/install-windows.ps1 b/setup-development/windows/install-windows.ps1 index dba9613..9956922 100644 --- a/setup-development/windows/install-windows.ps1 +++ b/setup-development/windows/install-windows.ps1 @@ -176,4 +176,4 @@ Invoke-DryRun "code ." Set-Location $dir if ( -not $NoPrompt ) { Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1) -} \ No newline at end of file +} diff --git a/setup-development/windows/upgrade-windows.ps1 b/setup-development/windows/upgrade-windows.ps1 index 49e19ad..3955bcf 100644 --- a/setup-development/windows/upgrade-windows.ps1 +++ b/setup-development/windows/upgrade-windows.ps1 @@ -211,4 +211,4 @@ else { Set-Location $prev_directory if ( -not $NoPrompt ) { Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1) -} \ No newline at end of file +} diff --git a/setup-development/windows/winget/dependencies.json b/setup-development/windows/winget/dependencies.json index a20180d..d53a3d6 100644 --- a/setup-development/windows/winget/dependencies.json +++ b/setup-development/windows/winget/dependencies.json @@ -26,4 +26,4 @@ } ], "WinGetVersion": "1.2.10271" -} \ No newline at end of file +}