Skip to content

Commit

Permalink
rename project folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Sep 24, 2024
1 parent 19b2c6f commit 750e357
Show file tree
Hide file tree
Showing 63 changed files with 40 additions and 38 deletions.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"plugins": [
"./examples/e2e/cli-e2e-original/tooling/original.plugin.ts",
{
"plugin": "./projects/build-env/src/plugin/build-env.plugin.ts",
"plugin": "./projects/nx-verdaccio-env/src/plugin/build-env.plugin.ts",
"options": {
"publishable": {
"filterByTags": ["publishable"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["../../.eslintrc.json"],
"extends": ["../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
Expand All @@ -9,12 +9,10 @@
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["projects/build-env/tsconfig.*?.json"]
"project": ["projects/nx-verdaccio-env/tsconfig.*?.json"]
},
"rules": {
// Nx plugins don't yet support ESM: https://github.com/nrwl/nx/issues/15682
"unicorn/prefer-module": "off",
// used instead of verbatimModuleSyntax tsconfig flag (requires ESM)
"@typescript-eslint/consistent-type-imports": [
"warn",
{
Expand All @@ -24,7 +22,9 @@
],
"@typescript-eslint/consistent-type-exports": [
"warn",
{ "fixMixedExportsWithInlineTypeSpecifier": true }
{
"fixMixedExportsWithInlineTypeSpecifier": true
}
]
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# @push-based/build-env
# @push-based/nx-verdaccio-env

## Plugins

### Build Environment Plugin

Add dynamic targets to execute environment tasks.

See [build-environment plugin docs](./src/plugin/README.md) for details
See [nx-verdaccio-environment plugin docs](./src/plugin/README.md) for details

Examples:

- `nx g @push-based/build-env-env-setup` - generates NPM workspace and installs packages
- `nx g @push-based/build-env-env-setup --keepServerRunning` - keeps Verdaccio running for debug reasons
- `nx g @push-based/nx-verdaccio-env-env-setup` - generates NPM workspace and installs packages
- `nx g @push-based/nx-verdaccio-env-env-setup --keepServerRunning` - keeps Verdaccio running for debug reasons

## Executor

Expand All @@ -25,8 +25,8 @@ This executor helps to initiate an [environment folder](../../../../../README.md
{
"name": "my-project",
"targets": {
"build-env--env-bootstrap": {
"executor": "@code-pushup/build-env:env-bootstrap",
"nx-verdaccio-env--env-bootstrap": {
"executor": "@code-pushup/nx-verdaccio-env:env-bootstrap",
"options": {
"keepServerRunning": false
"envRoot": "/tmp/test-npm-workspace"
Expand All @@ -37,7 +37,7 @@ This executor helps to initiate an [environment folder](../../../../../README.md
}
```

Read more under [setup executor docs](./projects/build-env/src/executors/setup/README.md).
Read more under [setup executor docs](./projects/nx-verdaccio-env/src/executors/setup/README.md).

### Bootstrap Environment Executor

Expand All @@ -49,8 +49,8 @@ This executor helps to initiate [environment](../../../../../README.md#-environm
{
"name": "my-project",
"targets": {
"build-env--env-bootstrap": {
"executor": "@code-pushup/build-env:env-bootstrap",
"nx-verdaccio-env--env-bootstrap": {
"executor": "@code-pushup/nx-verdaccio-env:env-bootstrap",
"options": {
"keepServerRunning": false
"envRoot": "/tmp/test-npm-workspace"
Expand All @@ -61,7 +61,7 @@ This executor helps to initiate [environment](../../../../../README.md#-environm
}
```

Read more under [bootstrap executor docs](./projects/build-env/src/executors/bootstrap/README.md).
Read more under [bootstrap executor docs](./projects/nx-verdaccio-env/src/executors/bootstrap/README.md).

### Kill Process Executor

Expand All @@ -73,8 +73,8 @@ This executor helps to kill processes by `ProcessID` or a JSON file containing a
{
"name": "my-project",
"targets": {
"build-env--kill-process": {
"executor": "@push-based/build-env:kill-process"
"nx-verdaccio-env--kill-process": {
"executor": "@push-based/nx-verdaccio-env:kill-process"
"options": {
"pid": "42312"
"filePath": "/tmp/test-npm-workspace/process-id.json"
Expand All @@ -85,7 +85,7 @@ This executor helps to kill processes by `ProcessID` or a JSON file containing a
}
```

Read more under [kill-process executor docs](./projects/build-env/src/executors/kill-process/README.md).
Read more under [kill-process executor docs](./projects/nx-verdaccio-env/src/executors/kill-process/README.md).

### NPM Install Executor

Expand All @@ -97,8 +97,8 @@ This executor helps to install a [`pubishable`](../../../../../README.md#fine-gr
{
"name": "my-project",
"targets": {
"build-env--npm-install": {
"executor": "@code-pushup/build-env:release-install",
"nx-verdaccio-env--npm-install": {
"executor": "@code-pushup/nx-verdaccio-env:release-install",
"options": {
"pkgVersion": "1.2.3"
"envRoot": "/tmp/test-npm-workspace"
Expand All @@ -109,7 +109,7 @@ This executor helps to install a [`pubishable`](../../../../../README.md#fine-gr
}
```

Read more under [release install executor docs](./projects/build-env/src/executors/npm-install/README.md).
Read more under [release install executor docs](./projects/nx-verdaccio-env/src/executors/npm-install/README.md).

### NPM Publish Executor

Expand All @@ -121,8 +121,8 @@ This executor helps to publish a [`pubishable`](../../../../../README.md#fine-gr
{
"name": "my-project",
"targets": {
"build-env--npm-publish": {
"executor": "@code-pushup/build-env:release-publish",
"nx-verdaccio-env--npm-publish": {
"executor": "@code-pushup/nx-verdaccio-env:release-publish",
"options": {
"pkgVersion": "1.2.3"
"envRoot": "/tmp/test-npm-workspace"
Expand All @@ -133,7 +133,7 @@ This executor helps to publish a [`pubishable`](../../../../../README.md#fine-gr
}
```

Read more under [release publish executor docs](./projects/build-env/src/executors/npm-publish/README.md).
Read more under [release publish executor docs](./projects/nx-verdaccio-env/src/executors/npm-publish/README.md).

## Debugging e2e environments

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
{
"name": "build-env",
"name": "nx-verdaccio-env",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/build-env/src",
"sourceRoot": "projects/nx-verdaccio-env/src",
"projectType": "library",
"tags": ["scope:shared", "type:feature"],
"implicitDependencies": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/projects/build-env",
"main": "projects/build-env/src/index.ts",
"tsConfig": "projects/build-env/tsconfig.lib.json",
"outputPath": "dist/projects/nx-verdaccio-env",
"main": "projects/nx-verdaccio-env/src/index.ts",
"tsConfig": "projects/nx-verdaccio-env/tsconfig.lib.json",
"assets": [
"projects/build-env/*.md",
"projects/nx-verdaccio-env/*.md",
{
"input": "./projects/build-env/src",
"input": "./projects/nx-verdaccio-env/src",
"glob": "**/!(*.ts)",
"output": "./src"
},
{
"input": "./projects/build-env/src",
"input": "./projects/nx-verdaccio-env/src",
"glob": "**/*.d.ts",
"output": "./src"
},
{
"input": "./projects/build-env",
"input": "./projects/nx-verdaccio-env",
"glob": "executors.json",
"output": "."
}
Expand All @@ -44,9 +45,8 @@
"unit-test": {
"executor": "@nx/vite:test",
"options": {
"configFile": "projects/build-env/vite.config.ts"
"configFile": "projects/nx-verdaccio-env/vite.config.ts"
}
}
},
"tags": ["scope:shared", "type:feature"]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@push-based/build-env": ["projects/build-env/src/index.ts"],
"@push-based/cli": ["projects/cli/src/index.ts"],
"@push-based/core": ["examples/projects/core/src/index.ts"],
"@push-based/models": ["examples/projects/models/src/index.ts"],
"@push-based/nx-verdaccio-env": [
"projects/nx-verdaccio-env/src/index.ts"
],
"@push-based/test-setup": ["testing/test-setup/src/index.ts"],
"@push-based/test-utils": ["testing/test-utils/src/index.ts"],
"@push-based/utils": ["examples/projects/utils/src/index.ts"]
Expand Down

0 comments on commit 750e357

Please sign in to comment.