UNPKG

ember-source

Version:

A JavaScript framework for creating ambitious web applications

19 lines (13 loc) 469 B
'use strict'; const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints'); module.exports = { description: 'Generates a controller.', shouldTransformTypeScript: true, init() { this._super && this._super.init.apply(this, arguments); maybePolyfillTypeScriptBlueprints(this); }, normalizeEntityName: function (entityName) { return entityName.replace(/\.js$/, ''); //Prevent generation of ".js.js" files }, };