TeamMaestro / angular-native-seed

Build web apps and NativeScript applications from one codebase using the AngularCLI.
265 stars 71 forks source link

Added Makefile #84

Open noumaans opened 6 years ago

noumaans commented 6 years ago

Added a traditional Makefile which can take over existing tasks of gulpfile.

Why?

  1. No need for gulp and dealing with gulp issues - why use a JS based tool to solve a build problem that has been solved in *nix world for decades.
  2. Existing gulpfile was causing livesync issues with TNS 4.
  3. Gulpfile is copying more files than necessary during directory copy, which: a) causes file clobbering during writes b) explicitly is not copying over fonts - they were being copied implicitly during directory copy, so when user goes to webpack they may not realize the fonts directory needs to get bundled as well.
  4. Makefile executes about 25% faster on my particular project.
  5. Ability to add more capabilities to Makefile in future to generate other items needed by {N} apps such as assets, launch screen, etc.

Limitations:

  1. Tested on macOS (code should run on Linux / BSD systems - no Windows computers available to test)
  2. Currently only supports prepTablet dependencies. Plan on future to add prepPhone support.