Skip to content

How you execute the cli package? #836

Answered by louis-bompart
jon9090 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jon9090,

In development, we use the https://github.com/coveo/cli/blob/master/packages/cli/bin/dev file. You can see from the shebang that this file is meant to be executed with NodeJS.

This is however only valid for the @coveo/cli packages. This repo uses a mono repo architecture, so there are other projects relative to the CLI here. Still, those changes are not directly bundled with the CLI, but instead published on npm, for example, our angular schematic, @coveo/angular.

So, to test 'the full loop' (for changes outside the packages/cli), we use Verdaccio to start a local npm registry where we can publish the changed version.

This is what we do in our End-to-End tests.

I hope this an…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by louis-bompart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #835 on June 11, 2022 18:24.