UNPKG

adgile

Version:

An easy-to-use automated front-end setup.

35 lines (29 loc) 1.02 kB
'use strict' /** * A submodule for running the `adg build` task, * responsible for copying the remaining miscellaneous files to the export folder * @module task.misc */ const settings = require('../settings.default'), helpers = require('../helpers/index'), chalk = require('chalk'), gulp = require('gulp'), path = require('path'), plugins = require('gulp-load-plugins')({ config: path.join(__dirname, '../package.json') }); /** * Make a functional version of htaccess.txt * Copy all other files (except for _-files and htaccess) to the export folder */ function runTask() { helpers.verbose(chalk.grey('Running task "misc"')); gulp.src('misc/htaccess.txt', { allowEmpty: true }) .pipe(plugins.rename('.htaccess')) .pipe(gulp.dest(config.export_misc)); gulp.src(['misc/*', '!misc/htaccess.txt', '!_*']) .pipe(gulp.dest(config.export_misc)); } module.exports = { runTask }