There is a growing list of examples that need to be maintained and kept up to date with the latest version of LoopBack especially as there are breaking changes that might be made during the development of MVP.
The example repos are kept in their own repository right now so it's easy for users to be able to clone the examples and play around with working code and this won't be possible if we move the examples to the monorepo but it would make maintenance a lot easier.
The purpose of this task is to explore options for doing this in a user friendly manner. Some avenues of exploration are:
-
A CLI command that can get the relevant example from the monorepo, update package.json and stand up the example without the monorepo dependencies. Ex commands: lb4 example getting-started or lb4 example log-extension, etc.
-
A new monorepo just for examples. Not as clean but users will be able to clone the entire repo and run the individual examples by going to the appropriate section. NOTE: When I say monorepo here, I mean more a big folder of example repos and not a lerna monorepo since different examples shouldn't have dependencies on each other.
Tasks
Things to change as part of migration:
- run
slt license and slt copyright
- mark the package as private
- review package.json scripts - make them consistent with other monorepo packages
- add an entry to CODEOWNERS
- add an entry to the list of examples used by
lb4 example
- update README with instructions mentioning
lb4 example
- move the original repo to strongloop-archive
- remove all files from the original repo, keep README pointing to our monorepo only
- archive the original repo (make it read-only)
See also #855
There is a growing list of examples that need to be maintained and kept up to date with the latest version of LoopBack especially as there are breaking changes that might be made during the development of MVP.
The example repos are kept in their own repository right now so it's easy for users to be able to clone the examples and play around with working code and this won't be possible if we move the examples to the monorepo but it would make maintenance a lot easier.
The purpose of this task is to explore options for doing this in a user friendly manner. Some avenues of exploration are:
A CLI command that can get the relevant example from the monorepo, update package.json and stand up the example without the monorepo dependencies. Ex commands:
lb4 example getting-startedorlb4 example log-extension, etc.A new monorepo just for examples. Not as clean but users will be able to clone the entire repo and run the individual examples by going to the appropriate section. NOTE: When I say monorepo here, I mean more a big folder of example repos and not a lerna monorepo since different examples shouldn't have dependencies on each other.
Tasks
lb4 exampleCLI command - see feat(cli): lb4 example [<example-name>] #848See docs: add example-microservices #933Move sample controller/provider/etc. source files from toSee strongloop-archive/loopback4-extension-starter@8e869c0lb4 extensiontemplatesThings to change as part of migration:
slt licenseandslt copyrightlb4 examplelb4 exampleSee also #855