@@ -124,27 +124,10 @@ function pscMake(opts) {
124
124
} ) ;
125
125
}
126
126
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 ) {
145
128
return acc ( function ( files , cb ) {
146
129
var args = options ( OPTIONS . docgen , opts ) . concat ( files )
147
- , cmd = cp . spawn ( 'docgen ' , args )
130
+ , cmd = cp . spawn ( 'psc-docs ' , args )
148
131
, buffero = new Buffer ( 0 )
149
132
, buffere = new Buffer ( 0 )
150
133
, that = this
@@ -164,9 +147,26 @@ function docgen(opts) {
164
147
} ) ;
165
148
}
166
149
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
+
167
167
module . exports = {
168
- docgen : docgen ,
169
- dotPsci : dotPsci ,
170
168
psc : psc ,
171
- pscMake : pscMake
169
+ pscMake : pscMake ,
170
+ pscDocs : pscDocs ,
171
+ dotPsci : dotPsci
172
172
}
0 commit comments