mardi 21 juin 2016

ember.js addon: how to manipulate files?

We have 5+ ember.js projects. I've extracted all common features as an addon. Other projects depend my addon with package.json (as npm module).

I want to do some post-processing after my addon upgraded on any project (via npm install). I need to do such processing:

  • Override /app/styles.css file.
  • Override router.js
  • Put some files on /translations directory.

Is there any hook to do these? Is there any documentation for hooks?




Aucun commentaire:

Enregistrer un commentaire