create-js-project icon indicating copy to clipboard operation
create-js-project copied to clipboard

Template import functionality

Open Chalarangelo opened this issue 6 years ago • 1 comments

I was thinking of adding some functionality, via a second bin script that will allow users to specify a folder on their local environment where multiple template folders will exist. Then, create-js-project, will load those templates on runtime and provide the templates as options.

This will make the tool infinitely customizable and allow developers to test their templates before submitting them to the project, if they want to do so.

The main points of interest I can think of are:

  • How will the path to that folder be stored? Maybe an environment variable?
  • What happens if a template folder is not properly structured? It's kind of important to have error handling probably.
  • Naming conflicts can cause issues, if the same template name exists in the tool's defaults and imports, which one is prioritized?
  • Would it be possible to import templates from multiple locations? Maybe even git repositories?

Chalarangelo avatar Jan 23 '19 19:01 Chalarangelo

Once we have created a working project, how do we build it ? Angular provide a ng build command which minify and package everything nicely. How do we do the same with normal javascript projects ? Can npm commands help there ?

ankitminglani avatar Dec 17 '22 11:12 ankitminglani