#includes and relative paths

Get help with Spket IDE.
Post Reply
tarini
Posts: 5
Joined: Thu Jun 04, 2009 8:01 am

#includes and relative paths

Post by tarini » Thu Jun 11, 2009 3:27 pm

i've a big javascript project and my source file are organized in some folders

my filesystem is similar to:

Code: Select all

includes.js
widget/
  form/
    classA.js
    classB.js
  window/
    classC.js
    classD.js
in my includes.js i've put:

Code: Select all

/**
 * @include "widget/form/classA.js"
 * @include "widget/form/classB.js"
 * @include "widget/window/classC.js"
 * @include "widget/window/classD.js"
 */
and now i think to include this file in each js class files using relative path
for example: @include "../../includes.js"


but it doesn't work... in classA.js spekt autocomplete my code only with classA, in classB only with classB and so on...

how can i organize my js?

tarini
Posts: 5
Joined: Thu Jun 04, 2009 8:01 am

Post by tarini » Thu Jun 11, 2009 3:38 pm

ok I fixed just putting @include before every other jsdoc directive

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest