Actually for this case you can have something like 
`<%= grunt.task.current.name === "alec" ? 'src/alec/ui.js' : 'src/ui.js' %>`

Or alternatively, you could build that as AMD modules to generate dependencies more easily according to the bootstrap element.