// Sources
const SRC_DIR = `_src`;
const DEST_DIR = '_dist';
const CSS_GLOB = `${ SRC_DIR }/assets/styles/main.css`;
const CSS_DEST = `${ DEST_DIR }/assets/styles`;
const CSS_SRC = `${ SRC_DIR }/assets/styles`;
const SCRIPTS_SRC = `${ SRC_DIR }/assets/scripts`;
const SCRIPTS_DEST = `${ DEST_DIR }/assets/scripts`;
const HTML_SRC = `${ SRC_DIR }/html`;
const HTML_DEST = `${ DEST_DIR }`;
const MEDIA_SRC = `${ SRC_DIR }/assets/media`;
const MEDIA_DEST = `${ DEST_DIR }/assets/media`;

let production = false;

module.exports = {
    isProduction: production,
    dir: {
        src: SRC_DIR,
        dest: DEST_DIR
    },

    build: {
        dev: 'development',
        prod: 'production'
    },

    browserSync: {
        server: {
            baseDir: DEST_DIR
        },
        startPath: '',
        port: 3000,
        browser: "google chrome",
        ghostMode: {
            clicks: false,
            scroll: false,
            links: false,
            forms: false
        },
        reload: {
            stream: true,
            once: true
        }
    },

    styles: {
        src: {
            partials: `${ CSS_SRC }/**/*.scss`,
            development: `${ CSS_SRC }/main-dev.scss`,
            production: `${ CSS_SRC }/main.scss`
        },
        dest: CSS_DEST,
        destFileName: 'main',
        watchFiles: [
            `${ CSS_SRC }/main-dev.scss`,
            `${ CSS_SRC }/**/*.scss`,
            `${ CSS_SRC }/**/**/*.scss`
        ],
        autoprefixer: 'last 2 versions'
    },

    html: {
        src: [
            `${ HTML_SRC }/**/*.jade`,
            `!${ HTML_SRC }/__construct/**/*.jade`,
            `!${ HTML_SRC }/**/_*.jade`,
        ],
        dest: HTML_DEST,
        data: `${ SRC_DIR }/assets/_data/jadeData.json`,
        watchFiles: [
            `${ HTML_SRC }/**/**/*.jade`,
            `${ HTML_SRC }/**/*.jade`,
            `${ HTML_SRC }/**/*.yml`,
            `${ HTML_SRC }/**/*.json`,
            `${ SRC_DIR }/assets/_data/jadeData.json`
        ]
    },

    browserify: {
        bundleConfigs: [
            {
                paths: [`${ SCRIPTS_SRC }`],
                entries: [`${ SCRIPTS_SRC }/main.babel.js`],
                dest: `${ SCRIPTS_DEST }/`,
                outputName: 'main.js',
                extensions: ['.js'],
                transform: [
                    [ 'babelify', { presets: ['es2015', 'react'] } ]
                ]
            },
            {
                paths: [`${ SCRIPTS_SRC }`],
                entries: [
                    `${ SCRIPTS_SRC }/vendor/modernizr.js`,
                    'node_modules/gsap/src/minified/TweenLite.min.js'
                ],
                dest: `${ SCRIPTS_DEST }/`,
                outputName: 'head.js',
                extensions: ['.js']
            }
        ]
    },

    copyImg: {
        src: [
            `${ MEDIA_SRC }/images/**/*`,
            `${ MEDIA_SRC }/images/**/*.{gif,jpeg,jpg,png,svg,webp}`,
            `${ MEDIA_SRC }/images/icons/*.{ico,png}`
        ],
        dest: `${ MEDIA_DEST }/images`,
        watch: [
            `${ MEDIA_SRC }/images/**/*`,
            `${ MEDIA_SRC }/images/**/*.{gif,jpeg,jpg,png,svg,webp}`,
            `${ MEDIA_SRC }/images/icons/*.{ico,png}`
        ],
        svgoPlugins: [
            { removeViewBox: false },
            { removeUselessStrokeAndFill: false },
            { cleanupIDs: false },
            { removeHiddenElems: false }
        ],
        pngquant: {
            quality: '60-80',
            speed: 4
        },
        watchFiles: [ `${ MEDIA_SRC }/**/*.{gif,jpeg,jpg,png,svg,webp}` ]
    },

    copyFonts: {
        src: [ `${ MEDIA_SRC }/fonts/*.{eot,ttf,otf,cff,afm,lwfn,ffil,fon,pfm,pfb,woff,svg,std,pro,xsf}` ],
        dest: `${ MEDIA_DEST }/fonts`,
        watchFiles: [ `${ MEDIA_SRC }/fonts/*.{eot,ttf,otf,cff,afm,lwfn,ffil,fon,pfm,pfb,woff,svg,std,pro,xsf}` ]
    },

    svgstore: {
        src: `${ MEDIA_SRC }/images/svg/*.svg`,
        dest: `${ HTML_SRC }/__construct/addons/`,
        watchFiles: `${ MEDIA_SRC }/images/svg/`,
        options: { inlineSvg: true }
    },

    del: {
        dest: DEST_DIR
    },

    modernizr: {
        config: `${ SRC_DIR }/assets/_data/modernizrData.js`,
        watchFiles: `${ SRC_DIR }/assets/_data/modernizrData.js`,
        dest: `${ SCRIPTS_SRC }/vendor/modernizr.js`
    }
}

@@ -1,8 +1,561 @@
+/*%0A _______   ______ .___  ___.      ___        __    __  .___  ___.  __   ________   _______%0A%7C   ____%7C /      %7C%7C   %5C/   %7C     /   %5C      / /   %7C  %7C %7C   %5C/   %7C %7C  %7C %7C       /  %7C   ____%7C%0A%7C  %7C__   %7C  ,----'%7C  %5C  /  %7C    /  %5E  %5C    / /_   %7C  %7C %7C  %5C  /  %7C %7C  %7C %60---/  /   %7C  %7C__%0A%7C   __%7C  %7C  %7C     %7C  %7C%5C/%7C  %7C   /  /_%5C  %5C  %7C '_ %5C  %7C  %7C %7C  %7C%5C/%7C  %7C %7C  %7C    /  /    %7C   __%7C%0A%7C  %7C____ %7C  %60----.%7C  %7C  %7C  %7C  /  _____  %5C %7C (_) %7C %7C  %7C %7C  %7C  %7C  %7C %7C  %7C   /  /----.%7C  %7C____%0A%7C_______%7C %5C______%7C%7C__%7C  %7C__%7C /__/     %5C__%5C %5C___/  %7C__%7C %7C__%7C  %7C__%7C %7C__%7C  /________%7C%7C_______%7C%0A%0A*/%0A%0A
 // Sourc

add ascii art