2017-07-10 49 views
0

を失敗した後、私はmagento2-frontoolsと協力してこの問題を解決しようとしています:を終了一気-タスクによってロードされたタスクが

https://github.com/SnowdogApps/magento2-frontools/issues/231

問題はgulp stylesが非ゼロを持つべきであるということであり、エラーが発生した場合の終了コードですが、0で終了します。

一気ファイル次のようになります。this approachのを見ている場合は

'use strict'; 
    module.exports = function() { // eslint-disable-line func-names 
    // Global variables 
    const gulp = this.gulp, 
     plugins = this.opts.plugins, 
     config = this.opts.configs, 
     themes = plugins.getThemes(), 
     streams = plugins.mergeStream(); 

    // Generate all necessary symlinks before styles compilation, but ony if not a part of tasks pipeline 
    if (!plugins.util.env.pipeline) { 
     plugins.runSequence('inheritance'); 
    } 

    // Loop through themes to compile scss or less depending on your config.json 
    themes.forEach(name => { 
     streams.add(require('../helper/scss')(gulp, plugins, config, name)); 
    }); 

    return streams; 
    }; 

(それはすべてのfound on GitHubすることができます)

:このような

// Tasks loading 
require('gulp-task-loader')({ 
    dir : 'task', 
    plugins: plugins, 
    configs: config 
}); 

そしてstyles.jsタスク問題を解決してください:

.once("error", function() { 
    this.once("finish",() => process.exit(1)); 
}) 

しかし、そのコードをどこに追加できますか?

答えて

1

ちょうど--ciフラグを使用する必要があります。

関連する問題