@@ -87,19 +87,57 @@ var patternlab_engine = function (config) {
87
87
console . log ( patternlab . package . version ) ;
88
88
}
89
89
90
+
90
91
function help ( ) {
91
- console . log ( 'Patternlab Node Help' ) ;
92
+
93
+ console . log ( '' ) ;
94
+
95
+ console . log ( '|=======================================|' ) ;
96
+ plutils . logGreen ( ' Pattern Lab Node Help v ' + patternlab . package . version ) ;
97
+ console . log ( '|=======================================|' ) ;
98
+
99
+ console . log ( '' ) ;
100
+ console . log ( 'Command Line Interface - usually consumed by an edition' ) ;
101
+ console . log ( '' ) ;
102
+
103
+ plutils . logGreen ( ' patternlab:build' ) ;
104
+ console . log ( ' > Compiles the patterns and frontend, outputting to config.paths.public' ) ;
105
+ console . log ( '' ) ;
106
+
107
+ plutils . logGreen ( ' patternlab:patternsonly' ) ;
108
+ console . log ( ' > Compiles the patterns only, outputting to config.paths.public' ) ;
109
+ console . log ( '' ) ;
110
+
111
+ plutils . logGreen ( ' patternlab:version' ) ;
112
+ console . log ( ' > Return the version of patternlab-node you have installed' ) ;
113
+ console . log ( '' ) ;
114
+
115
+ plutils . logGreen ( ' patternlab:help' ) ;
116
+ console . log ( ' > Get more information about patternlab-node, pattern lab in general, and where to report issues.' ) ;
117
+ console . log ( '' ) ;
118
+
119
+ plutils . logGreen ( ' patternlab:liststarterkits' ) ;
120
+ console . log ( ' > Returns a url with the list of available starterkits hosted on the Pattern Lab organization Github account' ) ;
121
+ console . log ( '' ) ;
122
+
123
+ plutils . logGreen ( ' patternlab:loadstarterkit' ) ;
124
+ console . log ( ' > Load a starterkit into config.paths.soource/*' ) ;
125
+ console . log ( ' > NOTE: This does overwrite any existing contents, and does not clean the directory first.' ) ;
126
+ console . log ( ' > NOTE: In most cases, `npm install starterkit-name` will precede this call.' ) ;
127
+ console . log ( ' > arguments:' ) ;
128
+ console . log ( ' -- kit ' ) ;
129
+ console . log ( ' > the name of the starter kit to load' ) ;
130
+ console . log ( ' > example (gulp):' ) ;
131
+ console . log ( ' `gulp patternlab:starterkit-load --kit=starterkit-mustache-demo`' ) ;
132
+ console . log ( '' ) ;
133
+
92
134
console . log ( '===============================' ) ;
93
- console . log ( 'Command Line Arguments' ) ;
94
- console . log ( 'patternlab:only_patterns' ) ;
95
- console . log ( ' > Compiles the patterns only, outputting to config.patterns.public' ) ;
96
- console . log ( 'patternlab:v' ) ;
97
- console . log ( ' > Retrieve the version of patternlab-node you have installed' ) ;
98
- console . log ( 'patternlab:help' ) ;
99
- console . log ( ' > Get more information about patternlab-node, pattern lab in general, and where to report issues.' ) ;
135
+ console . log ( '' ) ;
136
+ console . log ( 'Visit http://patternlab.io/ for more info about Pattern Lab' ) ;
137
+ console . log ( 'Visit https://github.com/pattern-lab/patternlab-node/issues to open an issue.' ) ;
138
+ console . log ( 'Visit https://github.com/pattern-lab/patternlab-node/wiki to view the changelog, roadmap, and other info.' ) ;
139
+ console . log ( '' ) ;
100
140
console . log ( '===============================' ) ;
101
- console . log ( 'Visit http://patternlab.io/docs/index.html for general help on pattern-lab' ) ;
102
- console . log ( 'Visit https://github.com/pattern-lab/patternlab-node/issues to open a bug.' ) ;
103
141
}
104
142
105
143
function printDebug ( ) {
@@ -321,14 +359,14 @@ var patternlab_engine = function (config) {
321
359
help : function ( ) {
322
360
help ( ) ;
323
361
} ,
324
- build_patterns_only : function ( deletePatternDir ) {
362
+ patternsonly : function ( deletePatternDir ) {
325
363
buildPatterns ( deletePatternDir ) ;
326
364
printDebug ( ) ;
327
365
} ,
328
- list_starterkits : function ( ) {
366
+ liststarterkits : function ( ) {
329
367
return listStarterkits ( ) ;
330
368
} ,
331
- load_starterkit : function ( starterkitName ) {
369
+ loadstarterkit : function ( starterkitName ) {
332
370
loadStarterKit ( starterkitName ) ;
333
371
}
334
372
} ;
0 commit comments