-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nx-python): automatically activate shared virtual environment (#138
) * feat(nx-python): automatically activate shared virtual environment Changes all the `@nxlv/python` executors to first verify if the shared virtual environment is available in the workspace, if yes, activate before running the commands, also adds a new `@nxlv/python:run-commands` executors to wrap the `nx:run-commands` and activate the virtual environment before running the commands, if you are using `@nxlv/python` version 16> you can use this following command to migrate all your `nx:run-commands` to `@nxlv/python:run-commands`: `npx nx migrate @nxlv/python` re #132
- Loading branch information
1 parent
297244e
commit e275534
Showing
40 changed files
with
763 additions
and
110 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,10 @@ | ||
{ | ||
"generators": { | ||
"16-1-0-replace-nx-run-commands": { | ||
"version": "16.1.0", | ||
"description": "Migrate all nx:run-commands to @nxlv/python:run-commands", | ||
"cli": "nx", | ||
"implementation": "./src/migrations/update-16-1-0/replace-nx-run-commands" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,5 +13,8 @@ | |
}, | ||
"peerDependencies": { | ||
"@nx/devkit": "^16.0.0" | ||
}, | ||
"nx-migrations": { | ||
"migrations": "./migrations.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
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
Oops, something went wrong.