From db03f216d747be3600671c025628d25537128a2c Mon Sep 17 00:00:00 2001 From: aayushRedHat Date: Wed, 20 Dec 2023 15:28:50 +0530 Subject: [PATCH] Add private template doc --- docs/installing-privateTemplate | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 docs/installing-privateTemplate diff --git a/docs/installing-privateTemplate b/docs/installing-privateTemplate deleted file mode 100644 index 329e74ae6..000000000 --- a/docs/installing-privateTemplate +++ /dev/null @@ -1,17 +0,0 @@ -How to Fetch template from the private repository - -* Starting creating local npm repositry in local using docker: - -`npm config set registry http://localhost:8081/repository//` - -Refer to this article to understand how to configure properly registry: https://developer.entando.com/v6.1/tutorials/ecr/how-to-create-local-npm-registry.html - -* Publishing the Template to the Repositry that is running in the docker. We can publish the [this](https://github.com/asyncapi/cli/tree/master/test/fixtures/minimaltemplate) template to the local npm using below command. - -`npm publish --registry=http://localhost:8081/repository//` - -* Fetching the template from the private repositry that is running on docker. - - ` const gen = new Generator('nameOfTestTemplate', __dirname, {debug: true, registry: {url: 'registryUrl', username: 'user', password: 'password', token: 'token'}});` - - ` await gen.installTemplate();` \ No newline at end of file