SoCreate / angular-playground

A drop in app module for working on Angular components in isolation (Angular version 2.x and above).
http://www.angularplayground.it
MIT License
457 stars 62 forks source link

Custom builder #309

Open oschlegel opened 2 years ago

oschlegel commented 2 years ago

Angular provides the possibility to extend the default builders by wrapping it with a custom builder. This means that the angular playground package could provide a custom builder for the build, serve and possibly even additional commands which are custom to angular playground like check-errors. These builders could include the logic which is currently included in the angular playground cli and therefore eliminate the need for the angular playground cli. This could also eliminate the need for angular-playground.json since the configuration for the playground could then be placed in the configuration of the build command in the angular.json.

Using the native angular cli commands instead of a custom cli would make the angular playground more intuitive and easier to use. Another benefit would be that in multi project workspaces the angular playground would be easier to integrate in continuous integration workflows.

Please let me know what you think of the idea, of if you already discussed a similar approach.

lurock commented 2 years ago

This is something we have discussed before and are interested in making these changes. It would be awesome if this is something you would like to work on and submit us a pull request with the changes. At this time we just don't have the time or resources to do it ourselves.