@@ -124,27 +124,10 @@ function pscMake(opts) {
124124 } ) ;
125125}
126126
127- function dotPsci ( opts ) {
128- var stream = through . obj ( function ( file , env , cb ) {
129- if ( file . isNull ( ) ) {
130- this . push ( file ) ;
131- return cb ( ) ;
132- }
133- if ( file . isStream ( ) ) {
134- this . emit ( 'error' , new gutil . PluginError ( PLUGIN , 'Streaming not supported' ) ) ;
135- return cb ( ) ;
136- }
137- this . push ( new Buffer ( LOADM + ' ' + path . relative ( CWD , file . path ) + '\n' ) ) ;
138- cb ( ) ;
139- } ) ;
140- stream . pipe ( fs . createWriteStream ( DOTPSCI ) ) ;
141- return stream ;
142- }
143-
144- function docgen ( opts ) {
127+ function pscDocs ( opts ) {
145128 return acc ( function ( files , cb ) {
146129 var args = options ( OPTIONS . docgen , opts ) . concat ( files )
147- , cmd = cp . spawn ( 'docgen ' , args )
130+ , cmd = cp . spawn ( 'psc-docs ' , args )
148131 , buffero = new Buffer ( 0 )
149132 , buffere = new Buffer ( 0 )
150133 , that = this
@@ -164,9 +147,26 @@ function docgen(opts) {
164147 } ) ;
165148}
166149
150+ function dotPsci ( opts ) {
151+ var stream = through . obj ( function ( file , env , cb ) {
152+ if ( file . isNull ( ) ) {
153+ this . push ( file ) ;
154+ return cb ( ) ;
155+ }
156+ if ( file . isStream ( ) ) {
157+ this . emit ( 'error' , new gutil . PluginError ( PLUGIN , 'Streaming not supported' ) ) ;
158+ return cb ( ) ;
159+ }
160+ this . push ( new Buffer ( LOADM + ' ' + path . relative ( CWD , file . path ) + '\n' ) ) ;
161+ cb ( ) ;
162+ } ) ;
163+ stream . pipe ( fs . createWriteStream ( DOTPSCI ) ) ;
164+ return stream ;
165+ }
166+
167167module . exports = {
168- docgen : docgen ,
169- dotPsci : dotPsci ,
170168 psc : psc ,
171- pscMake : pscMake
169+ pscMake : pscMake ,
170+ pscDocs : pscDocs ,
171+ dotPsci : dotPsci
172172}
0 commit comments