generator-joomla-spc
Version:
Joomla-spc generator for Yeoman. Creates Joomla 2.5 and 3.0 files
120 lines (105 loc) • 4.02 kB
text/coffeescript
###
generator-joomla-spc
index.coffee
Sean Goresht
uses Codoc
https://github.com/mklabs/yeoman/wiki/generators coffeescript with yeoman
https://github.com/coffeedoc/codo
###
(->
(->
(->
'use strict'
# coffeelint: disable=max_line_length
ViewGenerator = undefined
extend = undefined
hasProp = undefined
path = undefined
yeoman = undefined
ViewGenerator = undefined
extend = undefined
hasProp = undefined
path = undefined
yeoman = undefined
ViewGenerator = undefined
path = undefined
yeoman = undefined
extend = (child, parent) ->
Ctor = undefined
key = undefined
Ctor = undefined
key = undefined
Ctor = ->
= child
return
for key of parent
key = key
key = key
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')
###
ViewGenerator sub-generator for joomla component controllers
###
module.exports = ViewGenerator = ((superClass) ->
'var ViewGenerator'
ViewGenerator = (args, options, config) ->
pkg = undefined
ref = undefined
ref1 = undefined
ref2 = undefined
ref3 = undefined
pkg = undefined
ref = undefined
ref1 = undefined
ref2 = undefined
ref3 = undefined
pkg = undefined
ref = undefined
ref1 = undefined
ref2 = undefined
ref3 = undefined
ViewGenerator.__super__.constructor.call this, args, options, config
pkg = JSON.parse()
= pkg.componentName
= pkg.description
= pkg.requireManageRights
= if (ref = pkg.author) != null then ref.name else undefined
= if (ref1 = pkg.author) != null then ref1.email else undefined
= if (ref2 = pkg.author) != null then ref2.url else undefined
= if (ref3 = pkg.licenses[0]) != null then ref3.type else undefined
= (new Date()).getFullYear()
= .slugify()
= .classify()
#
'You called the view subgenerator with the argument ' + + '.\nNow let\'s create that view under the subdirectory views/' + + ' for you...'
return
extend ViewGenerator, superClass
# need to change views line to "views/#{@viewFolderName}/view.html.php"
# "_view.html.php", "views/#{@viewFolderName}/view.html.php"
# "_default.php", "views/#{@viewFolderName}/default.php"
ViewGenerator::generateView = ->
'_view.html.php', 'app/admin/' + "views/#{@viewFolderName}/view.html.php"
'_default.php', 'app/admin/' + "views/#{@viewFolderName}/default.php"
'_view.html.php', 'app/site/' + 'views/' + + '/view.html.php'
'_default.php', 'app/site/' + "views/#{@viewFolderName}/view.html.php"
return
ViewGenerator
)(yeoman.generators.NamedBase)
return
).call this
return
).call this
return
).call this
## sourceMappingURL=index.js.map
# ---
# generated by js2coffee 2.1.0