Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): unbundle 3rd-party CLIs #434

Merged
merged 12 commits into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli-e2e/__tests__/angular.specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('ui:create:angular', () => {

await buildTerminal
.when(isGenericYesNoPrompt)
.on('stdout')
.on('stderr')
.do(answerPrompt(`y${EOL}`))
.until(buildTerminalExitPromise);
};
Expand Down
3 changes: 3 additions & 0 deletions packages/cli-e2e/entrypoints/ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Start-Process -FilePath $SetUserFTAPath -ArgumentList ' https ChromeHTML' -PassT
Start-Process -FilePath $SetUserFTAPath -ArgumentList '.htm ChromeHTML' -PassThru | Wait-Process
Start-Process -FilePath $SetUserFTAPath -ArgumentList '.html ChromeHTML' -PassThru | Wait-Process


do {
$ChromeTest = Test-NetConnection -ComputerName localhost -Port 9222 -InformationLevel Quiet
Write-Output "Chrome Test $ChromeTest"
Expand All @@ -25,6 +26,8 @@ do {
git config --global user.name "notgroot"
git config --global user.email "notgroot@coveo.com"

npm install -g @angular/cli

npm set registry http://localhost:4873
yarn config set registry http://localhost:4873
Write-Output "--mutex network" | Out-File -FilePath ~/.yarnrc -Encoding utf8 -Append
Expand Down
3 changes: 2 additions & 1 deletion packages/cli-e2e/entrypoints/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ git config --global user.email "notgroot@coveo.com"

while ! timeout 1 bash -c "echo > /dev/tcp/localhost/4873"; do sleep 10; done

npm install -g @angular/cli

export UI_TEMPLATE_VERSION=0.0.0
npm set registry http://localhost:4873
yarn config set registry http://localhost:4873
Expand All @@ -31,7 +33,6 @@ yarn config set -- --silent true
npm run npm:bump:template -- -- $UI_TEMPLATE_VERSION
npm run npm:publish:template
cd packages/cli-e2e

node entrypoints/utils/wait-for-published-packages.js

while ! timeout 1 bash -c "echo > /dev/tcp/localhost/9222"; do sleep 10; done
Expand Down
3 changes: 2 additions & 1 deletion packages/cli-e2e/entrypoints/dockerHeadless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ Xvfb :1 -screen 0 1024x768x16 & sleep 1

xdg-settings set default-web-browser google-chrome.desktop

npm install -g @angular/cli

rsync -r --exclude="node_modules" /home/notGroot/cli/* /home/notGroot/cli-copy/
cd /home/notGroot/cli-copy

npm run setup
npm run build

export UI_TEMPLATE_VERSION=0.0.0
npm set registry http://verdaccio:4873
yarn config set registry http://verdaccio:4873
Expand Down
2 changes: 2 additions & 0 deletions packages/cli-e2e/entrypoints/dockerX11Entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export DISPLAY=host.docker.internal:0.0

xdg-settings set default-web-browser google-chrome.desktop

npm install -g @angular/cli

rsync -r --exclude="node_modules" /home/notGroot/cli/* /home/notGroot/cli-copy/
cd /home/notGroot/cli-copy

Expand Down
Loading