Move from npm to Yarn for markdown tests (#9312)

Yarn is better because...
* it validates package checksums
* it has emojis 🤟
* it is faster and employs better caching
This commit is contained in:
Reece Dunham
2019-04-10 14:16:22 -07:00
committed by Travis Plunk
parent 46a62991d6
commit 2d87948d8e
4 changed files with 2601 additions and 3426 deletions
+6
View File
@@ -37,6 +37,12 @@ jobs:
condition: succeededOrFailed()
- bash: |
curl -o- --progress-bar -L https://yarnpkg.com/install.sh | bash
displayName: Bootstrap Yarn
condition: succeededOrFailed()
- bash: |
# Installing globally with yarn is a pain, please don't try
sudo npm install -g markdown-spellcheck@0.11.0
# Sometimes this folder is left behind with root permissions and is needed by later npm installs which don't need sudo
sudo rm -rf ~/.npm/_cacache
+3 -2
View File
@@ -17,11 +17,12 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' {
{
$NpmInstalled = "Installed"
Write-Verbose -Message "NPM is checking Gulp is installed. This may take a few moments." -Verbose
start-nativeExecution { npm install --silent }
start-nativeExecution { npm install 'gulp@4.0.0' --silent }
start-nativeExecution { yarn }
start-nativeExecution { yarn add gulp@4.0.0 }
if(!(Get-Command -Name 'gulp' -ErrorAction SilentlyContinue))
{
start-nativeExecution {
# Installing globally with yarn is a pain, please don't try it
sudo npm install -g 'gulp@4.0.0' --silent
# Sometimes this folder is left behind with root permissions and is needed by later NPM installs which don't need sudo
sudo rm -rf ~/.npm/_cacache
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff