-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81f1478
commit c1e3cbf
Showing
99 changed files
with
5,278 additions
and
349 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
# @nxlv/nx-plugins | ||
|
||
## What is Nx | ||
|
||
🔎 Extensible Dev Tools for Monorepos. | ||
|
||
## Plugins available | ||
|
||
- [@nxlv/nx-plugins](packages/nx-python/README.md) |
File renamed without changes.
File renamed without changes.
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,86 @@ | ||
import { | ||
ensureNxProject, | ||
readJson, | ||
runNxCommandAsync, | ||
updateFile, | ||
checkFilesExist, | ||
} from '@nrwl/nx-plugin/testing'; | ||
describe('nx-python e2e', () => { | ||
it('should create nx-python project', async (done) => { | ||
const app1 = 'app1'; | ||
const lib1 = 'lib1'; | ||
ensureNxProject('@nxlv/python', 'dist/packages/nx-python'); | ||
|
||
const nxJson = readJson('nx.json'); | ||
nxJson.plugins = ['@nxlv/nx-python']; | ||
|
||
updateFile('nx.json', JSON.stringify(nxJson, null, 4)); | ||
|
||
await runNxCommandAsync( | ||
`generate @nxlv/python:project ${app1} --type "application"` | ||
); | ||
|
||
await runNxCommandAsync( | ||
`generate @nxlv/python:project ${lib1} --type "library"` | ||
); | ||
|
||
await runNxCommandAsync(`run ${app1}:add --name ${lib1} --local`); | ||
|
||
await runNxCommandAsync(`run ${lib1}:add --name pendulum`); | ||
|
||
await runNxCommandAsync(`run ${app1}:lint`); | ||
|
||
await runNxCommandAsync(`run ${app1}:build`); | ||
|
||
expect(() => | ||
checkFilesExist( | ||
`apps/${app1}/dist/${app1.replace('-', '_')}-1.0.0-py3-none-any.whl`, | ||
`apps/${app1}/dist/${app1}-1.0.0.tar.gz` | ||
) | ||
).not.toThrow(); | ||
|
||
done(); | ||
}, 3000000); | ||
|
||
it('should create nx-python project with 3 levels', async (done) => { | ||
const app1 = 'app1'; | ||
const lib1 = 'lib1'; | ||
const lib2 = 'lib2'; | ||
|
||
ensureNxProject('@nxlv/python', 'dist/packages/nx-python'); | ||
|
||
const nxJson = readJson('nx.json'); | ||
nxJson.plugins = ['@nxlv/python']; | ||
|
||
updateFile('nx.json', JSON.stringify(nxJson, null, 4)); | ||
|
||
await runNxCommandAsync( | ||
`generate @nxlv/python:project ${app1} --type "application"` | ||
); | ||
|
||
await runNxCommandAsync( | ||
`generate @nxlv/python:project ${lib1} --type "library"` | ||
); | ||
|
||
await runNxCommandAsync( | ||
`generate @nxlv/python:project ${lib2} --type "library"` | ||
); | ||
|
||
await runNxCommandAsync(`run ${lib1}:add --name ${lib2} --local`); | ||
|
||
await runNxCommandAsync(`run ${app1}:add --name ${lib1} --local`); | ||
|
||
await runNxCommandAsync(`run ${lib2}:add --name numpy`); | ||
|
||
await runNxCommandAsync(`run ${app1}:build`); | ||
|
||
expect(() => | ||
checkFilesExist( | ||
`apps/${app1}/dist/${app1.replace('-', '_')}-1.0.0-py3-none-any.whl`, | ||
`apps/${app1}/dist/${app1}-1.0.0.tar.gz` | ||
) | ||
).not.toThrow(); | ||
|
||
done(); | ||
}, 3000000); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
lucasvieira/packages/nx-python/src/executors/build/executor.spec.ts
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
lucasvieira/packages/nx-python/src/executors/build/executor.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
lucasvieira/packages/nx-python/src/executors/build/schema.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
lucasvieira/packages/nx-python/src/generators/nx-python/files/src/index.ts__template__
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
lucasvieira/packages/nx-python/src/generators/nx-python/generator.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.