zioinfo-mail/app/node_modules/memory-cache/gulpfile.js
DESKTOP-TKLFCPR\ython 11c670f2a0 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

66 lines
1.2 KiB
JavaScript

/**************/
/* REQUIRES */
/**************/
var gulp = require('gulp');
// File I/O
var exit = require('gulp-exit');
var jshint = require('gulp-jshint');
// Testing
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
/****************/
/* FILE PATHS */
/****************/
var paths = {
js: [
'index.js'
],
tests: [
'test.js'
]
};
/***********/
/* TASKS */
/***********/
// Lints the JavaScript files
gulp.task('lint', function() {
return gulp.src(paths.js)
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'))
.on('error', function(error) {
throw error;
});
});
// Runs the Mocha test suite
gulp.task('test', function() {
return gulp.src(paths.js)
.pipe(istanbul())
.pipe(istanbul.hookRequire())
.on('finish', function () {
gulp.src(paths.tests)
.pipe(mocha({
reporter: 'spec',
timeout: 5000
}))
.pipe(istanbul.writeReports())
.pipe(exit());
});
});
// Re-runs the linter every time a JavaScript file changes
gulp.task('watch', function() {
gulp.watch(paths.js, ['lint']);
});
// Default task
gulp.task('default', ['lint', 'test']);