text: const gulp = require('gulp');
  const less = require('gulp-less');
  const cssmin = require('gulp-clean-css');
  const rename = require('gulp-rename');
  
  gulp.task('compile-css', gulp.series(function(done) {
      return gulp.src(['../src/**/*.less', '!../src/**/_*.less'])
          .pipe(less())
          .pipe(cssmin())
          .pipe(rename((path) => {
              path.extname = '.wxss';
          }))
          .pipe(gulp.dest('../dist/'));
  }));
  
  gulp.task('compile-js', gulp.series(function(done) {
      return gulp.src(['../src/**/*.js'])
          .pipe(gulp.dest('../dist/'));
  }));
  
  gulp.task('compile-json', gulp.series(function(done) {
      return gulp.src(['../src/**/*.json'])
          .pipe(gulp.dest('../dist/'));
  }));
  
  gulp.task('compile-wxml', gulp.series(function(done) {
      return gulp.src(['../src/**/*.wxml'])
          .pipe(gulp.dest('../dist/'));
  }));
  
  gulp.task('default', gulp.series(['compile-css', 'compile-js', 'compile-json', 'compile-wxml']));
  