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
This commit is contained in:
John 2022-05-09 20:03:24 -05:00
parent faba55822c
commit bf494b639e
3 changed files with 7 additions and 5 deletions

View File

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

View File

@ -114,8 +114,8 @@ dryrun nvm install "$nodeversion"
dryrun nvm use "$nodeversion" dryrun nvm use "$nodeversion"
# Use npm to install electron-rebuild and yo # Use npm to install electron-rebuild and yo
printf "Installing electron-rebuild, yo, and generator-code\n" printf "Installing electron-rebuild and vsce\n"
dryrun npm install electron-rebuild yo generator-code dryrun npm install -g electron-rebuild vsce
# use npm to acquire dependencies for Mind-Reader # use npm to acquire dependencies for Mind-Reader
printf "\nAcquiring dependencies...\n" 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 EnsureNodePackageInstalled electron-rebuild
# These are useful (but not necessary) packages to have installed when working on new VSCode extensions # vsce is used to package the extension
EnsureNodePackageInstalled yo, generator-code EnsureNodePackageInstalled vsce
# We're about to do some path traversal, so save the current directory # We're about to do some path traversal, so save the current directory
$prev_directory = $pwd $prev_directory = $pwd