Adding a custom banner/header to Ember CLI Blueprints


#1

Hi,

I’m currently adding a copyright banner to every file after generating it with Ember CLI, such as:

/**** Copyright (C) etc ****/

import Ember from 'ember';

export default Ember.Controller.extend({
});

It would be a huge time saver if this was auto-generated as part of the Ember CLI blueprint. One way of doing this would be to create a custom blueprint for every default one to override it, but this creates a risk of our blueprints not staying up to date with future Ember / CLI versions.

Is there a simple way to add a header into every blueprint generated by Ember CLI?


#2

I know, I know the simplest way!

It calls “stop messing up with developers mind and just create LICENSE.md in the root directory”. %)