UNPKG

sourcebuster

Version:

Get sources of your site's visitors (utm / organic / referral / typein).

79 lines (67 loc) 1.51 kB
"use strict"; var pkg = require('../../package.json'), bundler = require('./helpers/bundler'); var paths = { in_base: './src/', out_dist: './dist/', out_public: './public/' }; var types = { js: 'js', css: 'css', img: 'img', html: 'html' }; var bundles = [ { name: 'sourcebuster', global: 'sbjs', compress: true, save_to_dist: true } ]; // Go module.exports = { scripts: { bundle_configs: bundler(bundles, types.js, paths), banner: '/** ' + pkg.name + ' v' + pkg.version + ' **/\n', debug: global.not_4production, extensions: ['.jsx'], lint: { options: pkg.lintOptions, dir: paths.in_base + types.js + '/' } }, css: { bundle_configs: bundler(bundles, types.css, paths), in_dir: paths.in_base + types.css + '/', autoprefixer: { browsers: ['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1'], cascade: false }, sass: { sourceComments: 'normal', errLogToConsole: true }, compress: {} }, imgs: { in_dir: paths.in_base + types.img + '/', out_dir: paths.out_public + types.img + '/', imagemin: {} }, html: { in_dir: paths.in_base + types.html + '/', out_dir: paths.out_public, slim_options: { pretty: true } }, clean: { html: paths.out_public, imgs: paths.out_public + types.img + '/', css: paths.out_public + types.css + '/', scripts: paths.out_public + types.js + '/', dist: paths.out_dist } };