application-structure

NodeJS local modules for complex application structures

大城市里の小女人 提交于 2019-11-30 23:30:29
I'm currently part of team building a Windows 8 application using JavaScript. We are using npm and browserify to manage dependencies and convert our modules to AMD browser friendly format. One issue we are running into is crazy require paths. This is because we have a top level folder inside our application "components". This folder contains a bunch of nested ui components/modules. These modules sometimes require lib utils and helpers, which reside in the lib directory. So for example, a module living in "my/app/components/product/grid/item" might require a helper module which is located "my

NodeJS local modules for complex application structures

你说的曾经没有我的故事 提交于 2019-11-30 18:35:35
问题 I'm currently part of team building a Windows 8 application using JavaScript. We are using npm and browserify to manage dependencies and convert our modules to AMD browser friendly format. One issue we are running into is crazy require paths. This is because we have a top level folder inside our application "components". This folder contains a bunch of nested ui components/modules. These modules sometimes require lib utils and helpers, which reside in the lib directory. So for example, a