title: Browserify + TypeScript
body: <p>Good day everyone. </p>
  
  <p>I try to build my web project with Gulp. I want use TypeScript and I want ruling dependencies with browserify. </p>
  
  <p>But I have some trouble with it. </p>
  
  <p>I use next code for build:</p>
  
  <pre><code>var path = {
      build: {
          js: 'build/js/',
      },
  
      src: {
          ts: './src/ts/*.ts',
      },
  
  };
  
  gulp.task("ts:build", function(){
      glob(path.src.ts, {}, function(err, files){
          var b = browserify({
              cache: {},
              packageCache: {},
              debug: true
          });
  
          _.forEach(files, function(file){
              b.add(file);
          });
  
          b.plugin('tsify', { noImplicitAny: true })
              .bundle()
              .pipe(source('app.js'))
              .pipe(gulp.dest(path.build.js))
          });    
      });
  });
  </code></pre>
  
  <p>I can't understand how I must declare dependencies. For example, I have two *.ts file: main.ts and someclass.ts. In someclass.ts I write some class:</p>
  
  <pre><code>class SomeClass {
      // bla-bla-bla
  }
  
  export = SomeClass;
  </code></pre>
  
  <p>And I want to use this class in main.ts. I try this with browserify:</p>
  
  <pre><code>var settingsPanel = require("./someclass");
  </code></pre>
  
  <p>gulp build have worked correctly, but in browser console I see</p>
  
  <blockquote>
    <p>node_modules\browserify\node_modules\browser-pack_prelude.js:1Uncaught
    Error: Cannot find module './someclass';</p>
  </blockquote>
  
  <p>I will be very helpfull for any advice about this. Especially for link on some code example with gulp+browserify+typescript.</p>