 
         .pipe gulp.dest utils.path.dst 'scripts'
 
-
-
-gulp.task 'tmp', ->
-
-    gulp.src utils.path.src '**'
-        .pipe $.plumber()
-
-        .pipe $.if (({path}) -> utils.prod and path.endsWith 'tsconfig.json'),
+        .on 'end', ->
+
+            uri = url.format {
+                protocol: 'http:'
+                port: (require './'.concat utils.path.dev 'bs-config').port
+                hostname: 'localhost'
+                pathname: '__browser_sync__'
+                search: '?method=reload'
+            }
+
+            request(uri)
+                .on 'response', _.noop
+                .on 'error', _.noop
+
+
+
+
+
+
+
+
+
+gulp.task 'tmp', ['tmp.inlineNg2']
+
+
+gulp.task 'tmp.src', ->
+
+    gulp.src [
+            utils.path.src '**'
+            utils.path.src '!**/assets/**'
+            utils.path.src '!**/*.css'
+        ]
+        .pipe gulp.dest utils.path.tmp(), dot: true
+
+
+gulp.task 'tmp.tsconfig', ['tmp.src'], ->
+
+    gulp.src utils.path.tmp 'tsconfig.json'
+        .pipe $.if utils.prod,
             $.replace /(strictNullChecks.:(\s+)?)true/, '$1false'
-
-        .pipe $.if '**/*.css',
-            $.postcss [
-                utils.require 'postcss-simple-vars', {
-                    variables: require './'.concat utils.path.src 'styles/variables'
-                }
-                utils.require 'postcss-selector-not'
-                utils.require 'postcss-nesting'
-                utils.require 'postcss-color-function'
-                utils.require 'autoprefixer', {
-                    browsers: [
-                        'last 2 versions'
-                        'ie >= 9'
-                        'iOS >= 8'
-                        'Safari >= 8'
-                    ]
-                }
-            ]
         .pipe gulp.dest utils.path.tmp(), dot: true
 
+
+gulp.task 'tmp.css', ['tmp.tsconfig'],  ->
+
+    gulp.src [
+            utils.path.src '**/*.css'
+            utils.path.tmp '!**/*.less'
+        ]
+        .pipe $.postcss [
+            utils.require 'postcss-simple-vars', {
+                variables: require './'.concat utils.path.src 'styles/variables'
+            }
+            utils.require 'postcss-selector-not'
+            utils.require 'postcss-nesting'
+            utils.require 'postcss-color-function'
+            utils.require 'autoprefixer', {
+                browsers: [
+                    'last 2 versions'
+                    'ie >= 9'
+                    'iOS >= 8'
+                    'Safari >= 8'
+                ]
+            }
+        ]
+        .pipe gulp.dest utils.path.tmp(), dot: true
+        .pipe gulp.dest utils.path.dst()
+
+
+gulp.task 'tmp.inlineNg2', ['tmp.css'], ->
+
+    gulp.src utils.path.tmp '**'
         .pipe $.if not utils.prod,
             $.inlineNg2Template {
                 base: 'source'
                 useRelativePaths: true
             }
-        .pipe $.if not utils.prod,
-            gulp.dest utils.path.tmp(), dot: true
-
-        .pipe $.if '**/*.css', gulp.dest utils.path.dst()
-
-
-
-gulp.task 'typescript', utils.list('tmp'), (callback) ->
+        .pipe gulp.dest utils.path.tmp(), dot: true
+
+
+
+
+
+
+
+
+
+gulp.task 'typescript', ['tmp'], (callback) ->
 
     if utils.prod
 

        src: (str = '') -> path.join val.source, str
        dst: (str = '') -> path.join val.dist, str
        tmp: (str = '') -> path.join val.tmp, str
        npm: (str = '') -> path.join val.npm, str

    require: (module, config = {}) ->
        if _.isString config then config = require config
        require(module)(config)











gulp.task 'dev', utils.list('assets css.vendor polyfills rollup.post'), ->

    return if $.util.env.build
