by dotnetnerd
5. October 2017 12:05
I recently started a new project, based on my own medicine of not using a framework, but building a simple architecture, that can grow and change freely based on needs as they arise. It is coming along very nicely, and has allowed us to have a pretty clean architecture.
For this project we chose to base the solution on TypeScript, and use handlebars for views along with a few other small libraries. As a clientside build tool we wanted to use webpack, because it is fast, has a lot of plugins that we can use, and is well suited for working with css modules. Getting webpack set up correctly, to work with TypeScript, handlebars and css took a bit of work, so I created a small github project called typescript-webpack-handlebars that can be used as template, by others and possibly myself in the future.
It is meant as a starting point for anyone using TypeScript and Webpack. Handling handlebars templates is included for completeness, but quite easy to replace if you wish to use some other templating engine.