File tree 8 files changed +19
-15
lines changed
8 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 1
1
var Inflector = require ( 'inflected' ) ;
2
2
var tpl = require ( 'tpl_apply' ) ;
3
+ var moment = require ( 'moment' ) ;
3
4
4
5
// movies_controller
5
6
function g ( o ) {
6
-
7
+ this . created_at = moment ( ) . format ( 'MMMM Do YYYY, h:mm:ss a' ) ;
7
8
this . entity = Inflector . camelize ( o . model . entity ) ;
8
9
this . attrs = JSON . stringify ( o . model . attr ) ;
9
10
// console.log(o);
Original file line number Diff line number Diff line change 1
1
var Inflector = require ( 'inflected' ) ;
2
2
var tpl = require ( 'tpl_apply' ) ;
3
+ var moment = require ( 'moment' ) ;
3
4
4
5
// movies_controller
5
6
function g ( o ) {
6
-
7
+ this . created_at = moment ( ) . format ( 'MMMM Do YYYY, h:mm:ss a' ) ;
7
8
this . entity = Inflector . camelize ( o . model . entity ) ;
8
9
this . attrs = JSON . stringify ( o . model . attr ) ;
9
10
// console.log(o);
Original file line number Diff line number Diff line change 1
1
var Inflector = require ( 'inflected' ) ;
2
2
var tpl = require ( 'tpl_apply' ) ;
3
+ var moment = require ( 'moment' ) ;
3
4
4
5
// movies_controller
5
6
function g ( o ) {
6
-
7
+ this . created_at = moment ( ) . format ( 'MMMM Do YYYY, h:mm:ss a' ) ;
7
8
this . entity = Inflector . camelize ( o . model . entity ) ;
8
9
this . attrs = JSON . stringify ( o . model . attr ) ;
9
10
// console.log(o);
Original file line number Diff line number Diff line change 1
1
var Inflector = require ( 'inflected' ) ;
2
2
var tpl = require ( 'tpl_apply' ) ;
3
+ var moment = require ( 'moment' ) ;
3
4
4
5
// movies_controller
5
6
function g ( o ) {
6
-
7
+ this . created_at = moment ( ) . format ( 'MMMM Do YYYY, h:mm:ss a' ) ;
7
8
this . entity = Inflector . camelize ( o . model . entity ) ;
8
9
this . attrs = JSON . stringify ( o . model . attr ) ;
9
10
// console.log(o);
Original file line number Diff line number Diff line change 1
1
var Inflector = require ( 'inflected' ) ;
2
2
var tpl = require ( 'tpl_apply' ) ;
3
3
var fs = require ( 'fs' ) ;
4
+ var moment = require ( 'moment' ) ;
4
5
5
6
// movies_controller
6
7
function g ( o ) {
7
-
8
+ this . created_at = moment ( ) . format ( 'MMMM Do YYYY, h:mm:ss a' ) ;
8
9
this . entity = Inflector . camelize ( o . model . entity ) ;
9
10
this . attrs = JSON . stringify ( o . model . attr ) ;
10
11
this . model = o . model . entity ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"start" : " npm publish ." ,
8
8
"test" : " node test.js" ,
9
- "moag" :" node bin/moag.js user name:string password:string uid:object" ,
10
- "moad" :" node bin/moad.js user" ,
11
- "moan" :" node bin/moan.js new_project"
9
+ "moag" : " node bin/moag.js user name:string password:string uid:object" ,
10
+ "moad" : " node bin/moad.js user" ,
11
+ "moan" : " node bin/moan.js new_project"
12
12
},
13
13
"preferGlobal" : " true" ,
14
14
"bin" : {
29
29
"dependencies" : {
30
30
"inflected" : " ^1.1.6" ,
31
31
"mkdirp" : " ^0.5.1" ,
32
- "tpl_apply" : " ^1.0.2" ,
33
- "shelljs" : " ^0.5.0"
32
+ "moment" : " ^2.10.3" ,
33
+ "shelljs" : " ^0.5.0" ,
34
+ "tpl_apply" : " ^1.0.2"
34
35
},
35
- "devDependencies" : {
36
-
37
- }
36
+ "devDependencies" : {}
38
37
}
Original file line number Diff line number Diff line change 1
1
/**
2
- * Created by Moajs on 01/06/2015 .
2
+ * Created by Moajs on {{created_at}} .
3
3
*/
4
4
5
5
var $models = require ( 'mount-models' ) ;
Original file line number Diff line number Diff line change 1
1
/**
2
- * Created by alfred on 01/06/14 .
2
+ * Created by alfred on {{created_at}} .
3
3
*/
4
4
5
5
var mongoose = require ( 'mongoose' ) ;
You can’t perform that action at this time.
0 commit comments