ember-source
Version:
A JavaScript framework for creating ambitious web applications
17 lines (12 loc) • 431 B
JavaScript
import typescriptBlueprintPolyfill from 'ember-cli-typescript-blueprint-polyfill';
export default {
description: 'Generates a service.',
shouldTransformTypeScript: true,
init() {
this._super && this._super.init.apply(this, arguments);
typescriptBlueprintPolyfill(this);
},
normalizeEntityName: function (entityName) {
return entityName.replace(/\.js$/, ''); //Prevent generation of ".js.js" files
},
};