Reputation: 58810
I have swagger.js
it contain 100,000
lines of codes. It contain about 50 sections of routes.
You guys can imagine how brutal it is to even look at it.
Example.
to slice my main file into peaces and include them back.
I would prefer crate a : swagger/
inside that, I will place section1.js
, section2.js
,... section50.js
.
newSection.js
100,000
lines of codes.Can someone please show me to get start on that ?
Upvotes: 1
Views: 102
Reputation: 484
You can try yamlinc to split the file into multiple files referencing them with $include
properties and compile back again.
Upvotes: 1