node-webkit-hipster-seed
node-webkit-hipster-seed copied to clipboard
Change folder architecture
Hi,
As my app got bigger and bigger I wanted to change the folder architecture using the following scaffholding:
src |----app |-------feature1 |----------feature.controller.js |----------feature.spec.js |----------feature.styl |----------feature.tpl.jade |-------feature2 |----------feature.controller.js |----------feature.spec.js |----------feature.styl |----------feature.tpl.jade ......... |----assets |----common |----styl index.jade
This got me a lot of trouble:
-
first renaming 'app' to 'src': Changing the folder name in config.coffee doesn't seem to be enough to ensure the build, maybe I don't get how brunch works but is there another file I need to change?
-
second, putting all my jade templates into each features folder: What is the correct approach to do this? I am not sure I get this part in config.coffee:
```joinTo: ```'js/dontUseMe' : /^app/ # dirty hack for Jade compiling.
Many thanks for the help
@arnauddri any updates on this? I would like to restructure my app in the same way, but I can't get it to work.
yep, I ended up removing Brunch and using grunt instead... It's quite a bit of work and take away some of the value of the seed, but at least I understand the build process much better (I have little experience with brunch) and so it provides much more flexibility
@arnauddri is there any repo I can take a look at to see what you've done? I am planning to make my app grow and this structure will not work for me. Thanks!
sorry, my repo is not online. I might make a seed though, I'll keep you posted
Thanks!
@arnauddri after some days of work, I finally managed to build my own seed project. I completely removed brunch and updated the dependencies. You can take a look at it here