के बाद लटकता है मैं किसी भी प्रकार के "उचित" वातावरण में नोड और विकास के लिए नया हूं। मैंने मोचा और कुछ अन्य मॉड्यूल के साथ, मेरे वर्तमान प्रोजेक्ट के लिए गल्प स्थापित किया है।गुलप "फिनिशिंग"
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var eslint = require('gulp-eslint');
gulp.task('lint', function() {
return gulp.src(['js/**/*.js'])
// eslint() attaches the lint output to the eslint property
// of the file object so it can be used by other modules.
.pipe(eslint())
// eslint.format() outputs the lint results to the console.
// Alternatively use eslint.formatEach() (see Docs).
.pipe(eslint.format())
// To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failOnError last.
.pipe(eslint.failOnError());
});
gulp.task('test', function() {
return gulp.src('tests/test.js', {read: false})
// gulp-mocha needs filepaths so you can't have any plugins before it
.pipe(mocha({reporter: 'list'}));
});
gulp.task('default', ['lint','test'], function() {
// This will only run if the lint task is successful...
});
जब मैं 'घूंट' चलाने के लिए, यह अपने सभी कार्य है, लेकिन रुक जाता है पूरा करने के लिए प्रकट होता है: यहाँ मेरी gulpfile.js है। कमांड प्रॉम्प्ट पर वापस जाने के लिए मुझे ctrl + c करना होगा। मैं इसे ठीक से खत्म करने के लिए कैसे प्राप्त करूं?
आप खुद से कार्यों के किसी भी चलाते हैं, वे लटका करते हैं? मैंने यहां अपना कोड काट दिया है और चिपकाया है और इसे चलाने में कोई समस्या नहीं है। कुछ भी लटका नहीं है। – Louis
मैं इसे बाद में कोशिश करूंगा, धन्यवाद। – Ooberdan