     return new Promise (resolve, reject) =>
       steroidsCli.debug "ModuleGenerator", "Generating generator Module"
 
-      steroidsGenerators.module {
-        @moduleName
-      }, ->
-        steroidsCli.debug "ModuleGenerator", "Generated generator Module"
-        resolve()
+      steroidsGenerator = require "generator-steroids"
+      inquirer = require "inquirer"
+
+      scriptExtPrompt =
+        type: "list"
+        name: "scriptExt"
+        message: "Do you want your module to be generated with CoffeeScript or JavaScript files?"
+        choices: [
+          { name: "CoffeeScript", value: "coffee" }
+          { name: "JavaScript", value: "js"}
+        ]
+        default: "coffee"
+
+      promptList = [
+        scriptExtPrompt
+      ]
+
+      inquirer.prompt promptList, (answers) =>
+
+        steroidsGenerator.module {
+          scriptExt: answers.scriptExt
+          moduleName: @moduleName
+        }, ->
+          steroidsCli.debug "ModuleGenerator", "Generated Module #{@moduleName}"
+          resolve()
 
 
 module.exports = ModuleGenerator


    For a module named #{chalk.bold("cars")}, the following files will be created:

        - app/cars/index.coffee
        - app/cars/views/index.html
        - app/cars/scripts/IndexController.coffee

    """


Base = require "./Base"
chalk = require "chalk"

