Steps to reproduce
Generate two model, repository and controllers and build, then delete one of the model, repository, and controllers, and try to build again. In my case, I got an error from the model and repository which I already deleted, and it was trying to access it before the build process was complete
Current Behavior
The application on npm start tries to access deleted model or repository after I delete model and repository file, and also its link from index.ts
Expected Behavior
An easy way to delete a model, repository, and controllers using CLI to reduce such errors, And also not getting an error on manually deleting files.
Additionally, I tried to delete dist directory to rebuild the project, and I was getting an error that it was not able to build the project again without having access to dist directory which sounds odd if you compare it with other frameworks which dist is in .gitignore because it's only useful for build purposes.
Additional information
Windows 10 'win32', 'x64', '10.16.0'
Acceptance criteria
🎆 Hacktoberfest 2020
Greetings 👋 to all Hacktoberfest 2020 participants!
Here are few tips 👀 to make your start easier, see also #6456:
- Before you start working on this issue, please leave a comment to let others know.
- This issue consists of several tasks to work on, it may feel like a too big effort to undertake. Don't worry! It's perfectly fine to pick just one item from the list and leave the rest for somebody else. In fact, we prefer to have a dedicated pull request for each part, to make it easier for us to review the changes and get the pull request landed faster. Baby steps FTW! Remember, every little helps.
- If you are new to GitHub pull requests, then you can learn about the process in Submitting a pull request to LoopBack 4.
- If this is your first contribution to LoopBack, then please take a look at our Developer guide.
- Feel free to ask for help in
#loopback-contributors channel, you can join our Slack workspace here.
Steps to reproduce
Generate two model, repository and controllers and build, then delete one of the model, repository, and controllers, and try to build again. In my case, I got an error from the model and repository which I already deleted, and it was trying to access it before the build process was complete
Current Behavior
The application on
npm starttries to access deleted model or repository after I delete model and repository file, and also its link from index.tsExpected Behavior
An easy way to delete a model, repository, and controllers using CLI to reduce such errors, And also not getting an error on manually deleting files.
Additionally, I tried to delete
distdirectory to rebuild the project, and I was getting an error that it was not able to build the project again without having access todistdirectory which sounds odd if you compare it with other frameworks whichdistis in.gitignorebecause it's only useful for build purposes.Additional information
Windows 10
'win32', 'x64', '10.16.0'Acceptance criteria
Modify the project template files
package.json.ejsandpackage.plain.json.ejsto runnpm run cleanas part of theprestartscript.🎆 Hacktoberfest 2020
Greetings 👋 to all Hacktoberfest 2020 participants!
Here are few tips 👀 to make your start easier, see also #6456:
#loopback-contributorschannel, you can join our Slack workspace here.