generator-joomla-spc
Version:
Joomla-spc generator for Yeoman. Creates Joomla 2.5 and 3.0 files
83 lines (68 loc) • 2.69 kB
text/coffeescript
###
/*
generator-joomla-spc
index.coffee
###
# coffeelint: disable=max_line_length
(->
'use strict'
ControllerGenerator = undefined
path = undefined
yeoman = undefined
extend = (child, parent) ->
Ctor = ->
return
for key of parent
if hasProp.call(parent, key)
child[key] = parent[key]
Ctor.prototype = parent.prototype
child.prototype = new Ctor()
child.__super__ = parent.prototype
child
hasProp = {}.hasOwnProperty
yeoman = require('yeoman-generator')
yosay = require('yosay')
chalk = require('chalk')
path = require('path')
###
###
module.exports = ControllerGenerator = ((superClass) ->
'var ControllerGenerator'
ControllerGenerator = (args, options, config) ->
pkg = undefined
ref = undefined
ref1 = undefined
ref2 = undefined
ref3 = undefined
ControllerGenerator.__super__.constructor.call this, args, options, config
pkg = JSON.parse(@readFileAsString(path.join(process.cwd(), './package.json')))
# @log(yosay(chalk.white('You called the controller subgenerator with the argument ' + this.name + '.\nNow let\'s create that controller ' + this.controllerClassName + '.php for you...')))
return
extend ControllerGenerator, superClass
ControllerGenerator::generateController = ->
ControllerGenerator
)(yeoman.generators.NamedBase)
return
).call this
## sourceMappingURL=index.js.map
# ---
# generated by js2coffee 2.1.0