node-webkit-hipster-seed icon indicating copy to clipboard operation
node-webkit-hipster-seed copied to clipboard

Change folder architecture

Open arnauddri opened this issue 10 years ago • 6 comments

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 avatar Nov 13 '14 09:11 arnauddri

@arnauddri any updates on this? I would like to restructure my app in the same way, but I can't get it to work.

mdesanti avatar Jan 30 '15 14:01 mdesanti

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 avatar Jan 30 '15 14:01 arnauddri

@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!

mdesanti avatar Feb 03 '15 12:02 mdesanti

sorry, my repo is not online. I might make a seed though, I'll keep you posted

arnauddri avatar Feb 03 '15 13:02 arnauddri

Thanks!

mdesanti avatar Feb 03 '15 13:02 mdesanti

@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

mdesanti avatar Feb 07 '15 22:02 mdesanti