Merge pull request #6 from We-Dont-Byte/johnBreaux

Install vsce instead of yo and generator-code.
This commit is contained in:
John Breaux 2022-05-10 12:29:11 -05:00 committed by GitHub
commit 7087b99867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 9 deletions

View File

@ -10,3 +10,5 @@ vsc-extension-quickstart.md
**/.eslintrc.json
**/*.map
**/*.ts
setup-development/**

View File

@ -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"

View File

@ -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