mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
Merge pull request #6 from We-Dont-Byte/johnBreaux
Install vsce instead of yo and generator-code.
This commit is contained in:
commit
7087b99867
@ -10,3 +10,5 @@ vsc-extension-quickstart.md
|
|||||||
**/.eslintrc.json
|
**/.eslintrc.json
|
||||||
**/*.map
|
**/*.map
|
||||||
**/*.ts
|
**/*.ts
|
||||||
|
|
||||||
|
setup-development/**
|
||||||
|
@ -62,4 +62,4 @@ bash ./upgrade-linux.sh $@
|
|||||||
|
|
||||||
echo "Opening VS Code..."
|
echo "Opening VS Code..."
|
||||||
cd $gitdir/Mind_Reader
|
cd $gitdir/Mind_Reader
|
||||||
code .
|
code .
|
||||||
|
@ -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"
|
||||||
|
@ -176,4 +176,4 @@ Invoke-DryRun "code ."
|
|||||||
Set-Location $dir
|
Set-Location $dir
|
||||||
if ( -not $NoPrompt ) {
|
if ( -not $NoPrompt ) {
|
||||||
Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1)
|
Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1)
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
@ -211,4 +211,4 @@ else {
|
|||||||
Set-Location $prev_directory
|
Set-Location $prev_directory
|
||||||
if ( -not $NoPrompt ) {
|
if ( -not $NoPrompt ) {
|
||||||
Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1)
|
Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1)
|
||||||
}
|
}
|
||||||
|
@ -26,4 +26,4 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"WinGetVersion": "1.2.10271"
|
"WinGetVersion": "1.2.10271"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user