-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(js): add verdaccio executor (#16928)
- Loading branch information
Showing
21 changed files
with
611 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "verdaccio", | ||
"implementation": "/packages/js/src/executors/verdaccio/verdaccio.impl.ts", | ||
"schema": { | ||
"$schema": "http://json-schema.org/schema", | ||
"version": 2, | ||
"title": "Verdaccio Local Registry", | ||
"description": "Start a local registry with Verdaccio.", | ||
"cli": "nx", | ||
"type": "object", | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "Location option for npm config", | ||
"default": "user", | ||
"enum": ["global", "user", "project"] | ||
}, | ||
"storage": { | ||
"type": "string", | ||
"description": "Path to the custom storage directory for Verdaccio" | ||
}, | ||
"port": { | ||
"type": "number", | ||
"description": "Port of local registry that Verdaccio should listen to", | ||
"default": 4873 | ||
}, | ||
"config": { | ||
"type": "string", | ||
"description": "Path to the custom Verdaccio config file" | ||
}, | ||
"clear": { | ||
"type": "boolean", | ||
"description": "Clear local registry storage before starting Verdaccio", | ||
"default": true | ||
} | ||
}, | ||
"required": ["port"], | ||
"presets": [] | ||
}, | ||
"description": "Start local registry with verdaccio", | ||
"aliases": [], | ||
"hidden": false, | ||
"path": "/packages/js/src/executors/verdaccio/schema.json", | ||
"type": "executor" | ||
} |
28 changes: 28 additions & 0 deletions
28
docs/generated/packages/js/generators/setup-verdaccio.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "setup-verdaccio", | ||
"factory": "./src/generators/setup-verdaccio/generator#setupVerdaccio", | ||
"schema": { | ||
"$schema": "http://json-schema.org/schema", | ||
"$id": "SetupVerdaccio", | ||
"title": "Setup Verdaccio", | ||
"description": "Setup Verdaccio local-registry.", | ||
"type": "object", | ||
"properties": { | ||
"skipFormat": { | ||
"description": "Skip formatting files.", | ||
"type": "boolean", | ||
"default": false, | ||
"x-priority": "internal" | ||
} | ||
}, | ||
"required": [], | ||
"presets": [] | ||
}, | ||
"alias": ["verdaccio"], | ||
"description": "Setup Verdaccio for local package management.", | ||
"implementation": "/packages/js/src/generators/setup-verdaccio/generator#setupVerdaccio.ts", | ||
"aliases": [], | ||
"hidden": false, | ||
"path": "/packages/js/src/generators/setup-verdaccio/schema.json", | ||
"type": "generator" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { convertNxExecutor } from '@nx/devkit'; | ||
|
||
import { verdaccioExecutor } from './verdaccio.impl'; | ||
|
||
export default convertNxExecutor(verdaccioExecutor); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface VerdaccioExecutorSchema { | ||
location?: string; | ||
storage?: string; | ||
port: number; | ||
config?: string; | ||
clear?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"version": 2, | ||
"title": "Verdaccio Local Registry", | ||
"description": "Start a local registry with Verdaccio.", | ||
"cli": "nx", | ||
"type": "object", | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "Location option for npm config", | ||
"default": "user", | ||
"enum": ["global", "user", "project"] | ||
}, | ||
"storage": { | ||
"type": "string", | ||
"description": "Path to the custom storage directory for Verdaccio" | ||
}, | ||
"port": { | ||
"type": "number", | ||
"description": "Port of local registry that Verdaccio should listen to", | ||
"default": 4873 | ||
}, | ||
"config": { | ||
"type": "string", | ||
"description": "Path to the custom Verdaccio config file" | ||
}, | ||
"clear": { | ||
"type": "boolean", | ||
"description": "Clear local registry storage before starting Verdaccio", | ||
"default": true | ||
} | ||
}, | ||
"required": ["port"] | ||
} |
Oops, something went wrong.
be2ccb8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nx-dev – ./
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app