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:
- write code
- compile javascript
- 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
Post a Comment