Skip to content
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

handle edge cases for schematics #25

Open
5 tasks
nongrata081 opened this issue Apr 28, 2019 · 0 comments
Open
5 tasks

handle edge cases for schematics #25

nongrata081 opened this issue Apr 28, 2019 · 0 comments

Comments

@nongrata081
Copy link
Owner

nongrata081 commented Apr 28, 2019

  • e.g.commitlint: what if commitlint object in package.json already exists, but with different content?

  • what if husky hook, intended for use for this current schematics, also exists, with different content? should we replace it? prepend it, as with pre-push?

  • check all schematics against the edge cases checklist

  • what if packages that schematics brings already are used in consuming repository, but their configs are not in package.json, but rather in .rc files? e.g. husky. - in that case we might specifically for each schematics (husky, and each and every other one) check if in consuming repo (tree) any of the available package configs exists, and then inform user about it, and maybe prompt him for an action (rewrite? create a backup of package.json (should we do it by default?)), etc.

  • what do we do if scripts we intend to add are already existing? in which cases do we prepend? in which do smth else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant