UNPKG

@markusantonwolf/ta-foodtrucks

Version:

TA-Foodtrucks plugin shows the next food truck and street food dates in your area based on Craftplaces API. You can customize the endpoints to get all dates for a specific vendor, for a specific city or just for a location you are interested in. The light

35 lines (31 loc) 993 B
const config = require('config') const { src, dest, parallel } = require('gulp') const print = require('gulp-print').default const DISTRIBUTION_STYLES = config.get('distribution.styles') const DISTRIBUTION_SCRIPTS = config.get('distribution.scripts') const DISTRIBUTION_VIEWS = config.get('distribution.views') const PUBLIC_SCRIPTS = config.get('public.scripts') const PUBLIC_STYLES = config.get('public.styles') const PUBLIC_VIEWS = config.get('public.views') const copy_css = () => { return src(DISTRIBUTION_STYLES, { allowEmpty: true, }) .pipe(dest(PUBLIC_STYLES)) .pipe(print()) } const copy_js = () => { return src(DISTRIBUTION_SCRIPTS, { allowEmpty: true, }) .pipe(dest(PUBLIC_SCRIPTS)) .pipe(print()) } const copy_html = () => { return src(DISTRIBUTION_VIEWS, { allowEmpty: true, }) .pipe(dest(PUBLIC_VIEWS)) .pipe(print()) } module.exports.copy = parallel(copy_css, copy_js, copy_html)