UNPKG

@swift-ws/gulp-kit

Version:

A starter kit for automating frontend development using Gulp.js.

75 lines 2.39 kB
export const config = { task: { script: { src: ['src/**/*.{js,ts,tsx}', '!src/**/_*.{js,ts,tsx}'], dest: {default: 'build'}, watch: 'src/**/*.{js,ts,tsx}', dirSrc: 'src' }, style: { src: ['src/**/*.{css,scss,sass}', '!src/**/_*.{css,scss,sass}'], dest: {default: 'build'}, watch: 'src/**/*.{css,scss,sass}', sassOptions: {}, outputUnminified: false, //sassOptions: {includePaths: ['node_modules'], silenceDeprecations: ['import', 'color-functions', 'global-builtin']}, }, image: { src: ['src/**/*.{png,jpg,jpeg,svg,ico,webp}', '!src/**/_*.{png,jpg,jpeg,svg,ico,webp}'], dest: {default: 'build'}, watch: 'src/**/*.{png,jpg,jpeg,svg,ico,webp}', optimize: false, }, core: { src: ['src/**/*.{html,xml,php,twig,json}', '!src/**/_*.{html,xml,php,twig,json}'], watch: 'src/**/*.{html,xml,php,twig,json}', dest: {default: 'build'}, }, fonts: { src: ['src/**/*.{woff,woff2}', '!src/**/_*.{woff,woff2}'], watch: 'src/**/*.{woff,woff2}', dest: {default: 'build'}, }, static: { paths: [ //{src: 'vendor/**/*.*', dest: 'vendor/'} ], dest: {default: 'build'}, watch: '', }, ftp: { host: '', user: '', password: '', port: 21, parallel: 5, log: '', src: [], remotePath: '/', base: './build/', watch: '', }, zip: { pattern: '{name}-{version}.zip', prefix: '', src: '', dest: '', delay: 1000 }, googleFonts: { outputDir: '/fonts/{_family}/', path: '../../fonts/{_family}/', template: '{_family}-{weight}-{comment}.{ext}', list: { //'Roboto': 'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap', }, dest: {default: 'build'}, }, clean: { dir: { default: 'build', } } }, replacements: [], };