question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for multiple apps

See original GitHub issue

It would be nice to unify brunch approach to building very complex apps, modularity etc.

  • app/ should no longer be created by default. Instead, there should be a directory, that has the same name as <app>. E.g. forum for brunch new forum.
  • Load paths for everything should start from paths.root instead of paths.app. There should be no special case for app/.
  • assets/ and vendor/ directories of every app should have special meaning, like they have today. Of course, their presence should be absolutely optional.
  • Changing of paths.assets / paths.vendor should be prohibited.
  • paths.app should be deprecated, instead, apps or perhaps paths.apps should be added.
  • Because it will be probably backwards-breaking, it would require version bump to 2.0.

Still not sure:

  • What if user has many (10+) apps? Root directory will be very dirty. Maybe there should be an apps directory for this and other use cases (and no config param at all).
  • Where should default skeletons contain app files? <app name>/app or <app name>?

Example of new structure

apps/
  forum/
    assets/
    controllers/
    models/
    views/
    vendor/
  admin/
    assets/
    controllers/
    models/
    views/
    vendor/
  chaplin/
    controllers/
    models/
    views/
config.coffee
node_modules
package.json
public/
README.md
vendor/ (optional)

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
blainecommented, Aug 15, 2012

Actually, just after posting my comment here, I’ve found a workaround.

What I’ve ended up doing is:

joinTo:
  'javascripts/app.js': /^app(\/|\\)(?!admin)/
  'javascripts/admin.js': /^app(\/|\\)(?=admin)/

which achieves the “multiple app” effect I was looking for. Hope that helps others.

0reactions
paulmillrcommented, Aug 26, 2012

So I think brunch 1.4 apps fit greatly for multiple app env already, as per latest comments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-window support - Android Developers
Multi-window mode enables multiple apps to share the same screen simultaneously. Apps can be side by side or one above the other (split-screen...
Read more >
Get more done with multitasking in Windows - Microsoft Support
To use two or more apps at a time, grab the top of an app window and drag it to the side. Then...
Read more >
Ninite - Install or Update Multiple Apps at Once
The easiest, fastest way to update or install software. Ninite downloads and installs programs automatically in the background.
Read more >
How to Install Multiple Copies and Run Multiple Instances of ...
Some Android devices offer native support for app cloning. It lets you run multiple copies of the same app without having to install...
Read more >
Use multitasking on your iPad - Apple Support
Learn how to use the new Multitasking menu, the Dock, and Spotlight to work with multiple apps. iPad screen showing two apps in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found