'use strict';

var env = process.env.NODE_ENV ||  'development';
var ip = require('ip');


var folders = {
  src: 'src',
  dest: 'dist',
  bower: 'src/assets/components',
  tmp: '.tmp',
  componentsPath: 'src/assets/components'
};



module.exports = {

  folders: folders,

  js: {

    shim: {
      // picturePolyfill: {
      //     path: folders.bower + '/picturePolyfill/src/picturePolyfill.js',
      //     exports: 'picturePolyfill'
      // }
    }
  },

  css: {
    preprocessor: 'scss'
  },

  server: {
    app: {
      host: ip.address(),
      port: 9000,
      protocol: 'http://'
    },
    dist: {
      host: ip.address(),
      port: 9001,
      protocol: 'http://'
    }
  },

  autoprefixer: {
    def: [
      'ie >= 9',
      'ie_mob >= 9',
      'ff >= 30',
      'chrome >= 30',
      'safari >= 7',
      'opera >= 23',
      'ios >= 6',
      'android >= 3.0',
      'bb >= 10'
    ],

    mobile: [
      'last 1 version',
      'ios 6',
      'android 4'
    ]
  },

  deploy: {
    rsync: {
      dest: env === 'development' ? 'user@server.com:/var/www/dev/' : 'user@server.com:/var/www/live/'
    }
  }
};

@@ -82,16 +82,43 @@
 ('ip');%0A
+var path = require('path');
 %0A%0Avar fo
@@ -163,189 +163,404 @@
 ,%0A  
-bower: 'src/assets/components',%0A  tmp: '.tmp',%0A  componentsPath: 'src/assets/components'%0A%7D;%0A%0A%0A%0Amodule.exports = %7B%0A%0A  folders: folders,%0A%0A  js: %7B%0A%0A    shim: %7B%0A      // picturePolyfill
+tmp: '.tmp',%0A  assets: 'assets',%0A  components: 'src/assets/components',%0A%7D;%0A%0A%0Afolders.tmpAssets = path.join(folders.tmp, folders.assets);%0Afolders.srcAssets = path.join(folders.src, folders.assets);%0Afolders.destAssets = path.join(folders.dest, folders.assets);%0A%0Amodule.exports = %7B%0A%0A  folders: folders,%0A%0A  js: %7B%0A%0A    folder: 'js',%0A    main: 'main.js',%0A    out: 'app.js',%0A%0A    shim: %7B%0A      //example
 : %7B%0A
@@ -571,19 +571,16 @@
   //
-   
   path: 
 fold
@@ -579,66 +579,75 @@
 th: 
-folders.bower + '/picturePolyfill/src/picturePolyfill
+path.join(folders.src, folders.assets, 'js/app/vendor/example
 .js'
-,
+ )
 %0A   
@@ -651,19 +651,16 @@
       //
-   
   export
@@ -667,56 +667,153 @@
 s: '
-picturePolyfill'%0A      // %7D%0A    %7D%0A  %7D,%0A%0A  css: %7B
+Example',%0A      //  depends: %7B%0A      //    jquery: 'jQuery',%0A      //  %7D%0A      //%7D%0A    %7D%0A  %7D,%0A%0A  styles: %7B%0A%0A    //have one or more preprocessors.
 %0A   
@@ -831,112 +831,208 @@
 or: 
+%5B
 'scss'
+%5D,
 %0A  
-%7D
+  folder: 'css'
 ,%0A%0A  
+ 
-server: %7B%0A    app: %7B%0A      host: ip.address(),%0A      port: 9000,%0A      protocol: 'http://
+ css: %7B%0A      folder: 'css',%0A      main: 'main.css',%0A      out: 'main.css',%0A    %7D,%0A%0A    stylus: %7B%0A      folder: 'stylus',%0A      main: 'main.styl',%0A      out: 'main.css
 '%0A  
@@ -1040,16 +1040,17 @@
  %7D,%0A
+%0A
     
-dist
+scss
 : %7B%0A
@@ -1059,84 +1059,164 @@
     
-host: ip.address(),%0A      port: 9001,%0A      protocol: 'http://'%0A    %7D
+folder: 'scss',%0A      main: 'main.scss',%0A      out: 'main.css'%0A    %7D%0A  %7D,%0A%0A%0A  images: %7B%0A    folder: 'images',%0A  %7D,%0A%0A  fonts: %7B%0A    folder: 'fonts',%0A
 %0A  %7D,%0A%0A
+%0A
   au

add path and specific files to config