Skip to content
Browse files

delete server and generators (useless)

  • Loading branch information...
1 parent edb9681 commit 21ad88f9ab3383f429f28dda831cd9ec34a84162 @icholy committed
Showing with 6 additions and 38 deletions.
  1. +0 −8 config.coffee
  2. +2 −4 generators/controller.js
  3. +2 −4 generators/model.js
  4. +2 −4 generators/view.js
  5. +0 −18 server.coffee
View
8 config.coffee
@@ -35,15 +35,7 @@ exports.config =
joinTo: 'javascripts/app.js' : /^app/
server:
- #path: 'server.coffee'
port: 3333
base: '/'
run: no
- generators:
- model: (name)->
- fs.readFileSync(path.join(__dirname, 'generators', 'model.js')).toString().replace("\#{name}", name)
- view: (name)->
- fs.readFileSync(path.join(__dirname, 'generators', 'view.js')).toString().replace("\#{name}", name)
- controller: (name)->
- fs.readFileSync(path.join(__dirname, 'generators', 'controller.js')).toString().replace("\#{name}", name)
View
6 generators/controller.js
@@ -1,7 +1,5 @@
var App = require('app');
-module.exports = App.Controllers.#{name} = Em.Object.extend({
- init: function(){
- this._super();
- }
+App.#{name} = Em.Controller.extend({
+
});
View
6 generators/model.js
@@ -1,7 +1,5 @@
var App = require('app');
-module.exports = App.Models.#{name} = Em.Object.extend({
- init: function(){
- this._super();
- }
+App.#{name} = Em.Object.extend({
+
});
View
6 generators/view.js
@@ -1,7 +1,5 @@
var App = require('app');
-module.exports = App.Views.#{name} = Em.View.extend({
- init: function(){
- this._super();
- }
+App.#{name} = Em.View.extend({
+
});
View
18 server.coffee
@@ -1,18 +0,0 @@
-express = require 'express'
-
-exports.startServer = (port, path, callback = (->)) ->
-
- server = express.createServer()
-
- server.configure ->
- server.use express.static path
- server.set 'views', path
- server.set 'view options', layout: no
- server.register '.html', compile: (str, options) ->
- (locals) -> str
-
- server.get '/', (req, res) ->
- res.render 'index.html'
-
- server.listen parseInt port, 10
- server.on 'listening', callback

4 comments on commit 21ad88f

@sidthesloth

Hi
Why did you see it necessary to delete the scaffolding code?

@icholy
Owner

Paul ended up incorporating generators like this into brunch. The plan was to delete mine and create ones as per the official api. I got half way through that plan and forgot about it. Open an issue and I'll get to it when I have time, a PR would be even better :)

@sidthesloth

Oh ok great...for now if Im developing an application using ember-brunch will I have to created the model view artifacts manually?

@icholy
Owner

yep.

Please sign in to comment.
Something went wrong with that request. Please try again.