build: pipe modules, ngm-main and templates into single file