@@ -87,6 +87,9 @@ if (fs.existsSync('./controlWiseSamples.json')) {
87
87
sampleList = JSON . parse ( fs . readFileSync ( './controlWiseSample.json' ) ) ;
88
88
}
89
89
90
+ gulp . task ( 'ship-search-file' , function ( done ) {
91
+ console . log ( 'ship-search-file' ) ;
92
+ } ) ;
90
93
gulp . task ( 'sample-json' , function ( done ) {
91
94
if ( sampleList && sampleList . length ) {
92
95
var controls = getControls ( ) ;
@@ -183,7 +186,7 @@ gulp.task('copy-source', function (done) {
183
186
} ) ;
184
187
185
188
gulp . task ( 'build' , function ( done ) {
186
- shelljs . exec ( 'gulp CDN-changes && gulp combine-samplelist && gulp generate-routes && gulp styles-ship && gulp copy-source && gulp src-ship' , done )
189
+ shelljs . exec ( 'gulp combine-samplelist && gulp generate-routes && gulp styles-ship && gulp copy-source && gulp src-ship' , done )
187
190
} ) ;
188
191
189
192
gulp . task ( 'src-ship' , function ( done ) {
@@ -211,22 +214,4 @@ gulp.task('serve', gulp.series('build', function(done) {
211
214
done ( ) ;
212
215
} ) ) ;
213
216
214
- // Install log task.
215
- gulp . task ( 'ls-log' , function ( done ) {
216
- shelljs . mkdir ( '-p' , './cireports/logs' ) ;
217
- shelljs . exec ( 'npm ls >./cireports/logs/install.log' ) ;
218
- done ( ) ;
219
- } ) ;
220
217
221
- gulp . task ( 'CDN-changes' , function ( done ) {
222
- var samples = glob . sync ( './newWindowSamples/**/**/index.html' ) ;
223
- if ( fs . existsSync ( './node_modules/@syncfusion/ej2-sample-helpers/config.json' ) ) {
224
- for ( var i = 0 ; i < samples . length ; i ++ ) {
225
- var htmlFile = fs . readFileSync ( samples [ i ] , 'utf8' ) ;
226
- var config = JSON . parse ( fs . readFileSync ( './node_modules/@syncfusion/ej2-sample-helpers/config.json' , 'utf-8' ) ) ;
227
- htmlFile = htmlFile . replace ( / h t t p s : \/ \/ c d n .s y n c f u s i o n .c o m \/ e j 2 \/ / , 'https://cdn.syncfusion.com/ej2/' + config . releaseVersion + '/' ) ;
228
- fs . writeFileSync ( samples [ i ] , htmlFile , 'utf8' ) ;
229
- }
230
- }
231
- done ( ) ;
232
- } ) ;
0 commit comments