imperodesign / generator-impero

Impero's website skeleton generator, courtesy of Yeoman
Other
1 stars 1 forks source link

Add backend/Node transpiling #78

Open samhh opened 7 years ago

samhh commented 7 years ago

This provides two benefits.

  1. You can use newer features if they haven't yet shown up in Node e.g. import syntax.

  2. You can share modules between backend and frontend as they'll be using the same export syntax.

Regarding 2), we may want to consider shuffling the folders around a little. And perhaps some sort of global import shortcut ('../../../../../xxx/xxx' is not a nice pattern to see everywhere).

Check out backpack.

samhh commented 7 years ago

Backpack may be a PITA for now: Backpack handles file-watching and reloading in a way that will make things like webpack-hot-middleware annoying to work with.