Best practice about folder structure in Ionic 2 Project


#1

I noticed we have our images in www/assets stored and are moving them with gulp into build/assets. So far so good, but for external JS Files that come not with npm nor bower nor cordova we are having them also there. Wouldn’t it make more sense to have JS Files in a vendors folder?

Is there a github Ionic 2 project that showcases the best-practice folder layout or any other resource?


#2

I know it’s kinda late but you should take a look at an ionic resource page.

Take a look at the whole thing but focus on the copy, ionic_copy elements. There is configuration script that you can copy into your project and redirect to in package.json. Modify your copied configuration file, update your package.json. You can manipulate the copy phase to include files in other locations of your project.