/**
 * Part of windwalker project.
 *
 * @copyright  Copyright (C) 2018 Asikart.
 * @license    LGPL-2.0+
 */

const fusion = require('windwalker-fusion');

// The task `main`
fusion.task('main', function () {
  // Watch start
  fusion.watch('www/asset/scss/**/*.scss');
  // Watch end

  // Compile Start
  fusion.sass('www/asset/scss/**/*.scss', 'www/asset/css/app.css');
  // Compile end
});

fusion.default(['main']);

/*
 * APIs
 *
 * Compile entry:
 * fusion.js(source, dest, options = {})
 * fusion.babel(source, dest, options = {})
 * fusion.ts(source, dest, options = {})
 * fusion.typeScript(source, dest, options = {})
 * fusion.css(source, dest, options = {})
Example #2
0
/**
 * Part of fusion project.
 *
 * @copyright  Copyright (C) 2018 Asikart.
 * @license    MIT
 */

const fusion = require('windwalker-fusion');

// The task `sass`
fusion.task('sass', function () {
  // Watch start
  fusion.watch('src/sass/**/*.scss');
  // Watch end

  // Compile Start
  fusion.sass('src/sass/**/vue2-animate.scss', 'dist/vue2-animate.css');
  fusion.copy('dist/*', 'docs/dist/');
  // Compile end
});

// The task `less`
fusion.task('less', function () {
  // Watch start
  fusion.watch('src/less/**/*.less');
  // Watch end

  // Compile Start
  fusion.less('src/less/**/vue2-animate.scss', 'dist/vue2-animate.css');
  // Compile end
});