File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
require ( 'shelljs/global' ) ;
3
-
3
+
4
+ var program = require ( 'commander' ) ;
5
+
6
+ var version = require ( '../package.json' ) . version
7
+ program
8
+ . version ( version )
9
+ . parse ( process . argv ) ;
10
+ //
11
+ // console.log('you ordered a pizza with:');
12
+ // if (program.peppers) console.log(' - peppers');
13
+ // if (program.pineapple) console.log(' - pineapple');
14
+ // if (program.bbqSauce) console.log(' - bbq');
15
+ // console.log(' - %s cheese', program.cheese);
16
+
4
17
echo ( 'Moajs HELP:' ) ;
5
18
echo ( '' ) ;
6
19
echo ( 'moan: 【创建新项目】 moan new_project_name' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " moajs" ,
3
- "version" : " 1.0.26 " ,
3
+ "version" : " 1.0.27 " ,
4
4
"description" : " Moajs is a full stack framework based expressjs、mongoose、bluebird、mocha." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
17
17
"moad" : " bin/moad.js" ,
18
18
"moan" : " bin/moan.js" ,
19
19
"moas" : " bin/moas.js" ,
20
- "km" : " bin/km.js" ,
20
+ "km" : " bin/km.js" ,
21
21
"moalink" : " bin/link.js"
22
22
},
23
23
"repository" : {
33
33
"dependencies" : {
34
34
"bluebird" : " ^2.9.27" ,
35
35
"body-parser" : " ~1.12.4" ,
36
+ "commander" : " ^2.8.1" ,
36
37
"config" : " ^1.14.0" ,
37
38
"connect-mongo" : " ^0.8.1" ,
38
39
"cookie-parser" : " ~1.3.5" ,
You can’t perform that action at this time.
0 commit comments