Skip to content

Commit

Permalink
Created a stud for the muffin-generator-gae plugin so muffin won't re…
Browse files Browse the repository at this point in the history
…port error when loading plugins.
  • Loading branch information
ylian committed Nov 22, 2013
1 parent 14a9139 commit feece60
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
24 changes: 24 additions & 0 deletions plugins/muffin-generator-gae/index.coffee
@@ -0,0 +1,24 @@
# A Muffin plugin that generates GAE models and controllers.

fs = require 'fs'
sysPath = require 'path'

module.exports = (env, callback) ->

class GAEGenerator extends env.Generator

templatesDir: sysPath.join(__dirname, './templates')

constructor: ->
@project = env.project
@serverDir = @project.serverDir

generateModel: (model, app, args) -> {}

destroyModel: (model, app) -> {}

generateScaffold: (model, app, args) -> {}

destroyScaffold: (model, app) -> {}

callback(new GAEGenerator())
11 changes: 11 additions & 0 deletions plugins/muffin-generator-gae/package.json
@@ -0,0 +1,11 @@
{
"name": "muffin-generator-gae",
"version": "0.1.0",
"description": "A Muffin generator for Google App Engine backend",
"main": "index.coffee",
"keywords": [
"muffin"
],
"author": "Yaogang Lian",
"license": "MIT"
}
Empty file.
Empty file.
Empty file.

0 comments on commit feece60

Please sign in to comment.