-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nx-plugin): slim down default generated nx-plugin #16168
feat(nx-plugin): slim down default generated nx-plugin #16168
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0408eb3
to
069ace9
Compare
069ace9
to
e62d519
Compare
e62d519
to
c6c5f07
Compare
c6c5f07
to
16ee5bf
Compare
16ee5bf
to
987a07e
Compare
92adec8
to
d591a21
Compare
d591a21
to
b9d5e2b
Compare
4d11406
to
d2cdbe5
Compare
0b3b4e7
to
ddd08c1
Compare
ddd08c1
to
0ccbd8a
Compare
0ccbd8a
to
73d754d
Compare
// it('should be able to build generated projects', async () => { | ||
// const name = uniq('proj') | ||
// await runNxCommandAsync(`generate <%= npmPackageName %>:{my-generator} --name ${name}`); | ||
// expect(() => runNxCommand('build ${proj}')).not.toThrow(); | ||
// expect(() => checkFilesExist([`dist/${name}/index.js`])).not.toThrow(); | ||
// }); |
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.
Uncomment and use xit
// | ||
// it('should be able to build generated projects', async () => { | ||
// const name = uniq('proj') | ||
// await runNxCommandAsync(`generate <%= npmPackageName %>:{my-generator} --name ${name}`); |
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.
const generator = 'PLACEHOLDER'
{ | ||
generators: {}, | ||
} | ||
); | ||
if (!skipLintChecks) { | ||
await pluginLintCheckGenerator(host, { | ||
projectName, |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
await createExecutorsJson(tree, root, options.pluginName); | ||
await createGeneratorsJson(tree, root, options.pluginName); |
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.
Remove this.
73d754d
to
a99c0d2
Compare
a99c0d2
to
3bed512
Compare
3bed512
to
2f146ec
Compare
packageJson.generators ?? packageJson.schematics | ||
); | ||
const generatorsJson = readJson<GeneratorsJson>(tree, generatorsPath); | ||
return generatorsJson.generators[generatorName] !== undefined; |
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.
Check schematics too
2f146ec
to
ac7ec35
Compare
ac7ec35
to
da953d6
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
nx g plugin creates:
Expected Behavior
--e2eTestRunner jest
, or generate it withnx g @nrwl/nx-plugin:e2e-project
nx g generator
Related Issue(s)
Fixes #