xref: /third_party/weex-loader/deps/weex-scripter/gulpfile.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/weex-loader/deps/weex-scripter/
188c88e8eSopenharmony_civar gulp = require('gulp')
288c88e8eSopenharmony_civar jscs = require('gulp-jscs')
388c88e8eSopenharmony_civar mocha = require('gulp-mocha')
488c88e8eSopenharmony_ci
588c88e8eSopenharmony_cigulp.task('default', ['test'], function() {
688c88e8eSopenharmony_ci  console.log('done')
788c88e8eSopenharmony_ci})
888c88e8eSopenharmony_ci
988c88e8eSopenharmony_cigulp.task('watch', function () {
1088c88e8eSopenharmony_ci  return gulp.watch('**/*.js', ['test'])
1188c88e8eSopenharmony_ci})
1288c88e8eSopenharmony_ci
1388c88e8eSopenharmony_cigulp.task('test', ['jscs', 'mocha'], function () {
1488c88e8eSopenharmony_ci  console.log('test done')
1588c88e8eSopenharmony_ci})
1688c88e8eSopenharmony_ci
1788c88e8eSopenharmony_cigulp.task('mocha', function () {
1888c88e8eSopenharmony_ci  return gulp.src([
1988c88e8eSopenharmony_ci      'test/*.js'
2088c88e8eSopenharmony_ci    ]).pipe(mocha())
2188c88e8eSopenharmony_ci})
2288c88e8eSopenharmony_ci
2388c88e8eSopenharmony_cigulp.task('jscs', function () {
2488c88e8eSopenharmony_ci  return gulp.src('**/*.js').pipe(jscs())
2588c88e8eSopenharmony_ci})
26

Indexes created Thu Nov 07 10:32:03 CST 2024