lundi 23 février 2015

ember-cli project within Django application

Up till now I was using ember by including all required vendor files in Django static folders. With the rise of ember-cli more and more ember related files are not available in stand-alone version. They require using npm and/or ember-cli.


Ember-cli uses npm, and it creates and manages its own files, create all project files and manages loading them... so now how can I integrate than withing a Django application. Like:



  • I want to hook up an ember application on a given page in Django. ember-cli doesn't seems to cover such scenarios?

  • all vendor files (JS and other) must be served by Django / found by staticfiles finders. npm won't install to Django project staticfiles directory.

  • and it would be good to be able to collect files/make apps withing separate subfolders so that older apps won't break when newer app pulls newer vendor files etc.


So is that somewhat doable with ember-cli and Django? What is the best way to handle such projects?





Aucun commentaire:

Enregistrer un commentaire