javascript - Ordering of compiled TypeScript files with Gulp -


i'm having build pipeline based on gulp. use typescript write angular 1.x code. in general follow such process:

  1. write code
  2. compile javascript
  3. use gulp-inject inject files index.html , use in development environment:

a. read files

b. apply gulp-narutal-sort have stable ordering of input files next step

c. apply gulp-angular-filesort have ordering of files

everything worked ok, i've introduced inheritance of clases in typescript. index html has wrong order of dependencies:

  • right.leg.js (has rightleg class declared, child of leg )
  • left.leg.js (has leftleg class declared, child of leg )
  • leg.js (definition of leg class)

and got errors child classes:

right.leg.js:5 uncaught typeerror: cannot read property 'prototype' of undefined 

that caused ordering of files.

question: how resolve kind of file sorting problem?

maybe there kind of plugin gulp?


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -