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.

au command for bundling app outside of root folder

See original GitHub issue

I’m submitting a feature request

  • Library Version: 0.18.0
  • Operating System: OSX 10.x
  • Node Version: 6.2.2
  • NPM Version: 3.9.5
  • Browser: all
  • Language: all

Current behavior: When running au build all the CLI does is bundle all the assets and put them in the scripts folder. Even if we pass in the env flag with a prod value.

Expected/desired behavior: I would like for the production build command to create a dist folder that has all the assets bundled up along with the index.html file and other file needed to run the application.

What is the motivation / use case for changing the behavior? Deployment. If this was the behavior then deploying an Aurelia app would be very simple specially with services like Firebase that just expect you to pass in your production folder or something like Netlify where they ask what command to run and what the production folder will be.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
threeaccentscommented, Sep 27, 2016

@EisenbergEffect @AStoker I also think you should consider re opening this issue. I understand that everyone has different deployment setups but I think that bundling the app into a dist folder or at least not in the root folder would benefit most aurelia-cli users.

0reactions
th3moncommented, Jan 28, 2017

I created dist task for my project as a gist. You’re welcome 😃!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI's built-in Bundler - Aurelia
Deploying Your App. Run build command au build --env prod , then copy following items to the main deployment folder on your server:...
Read more >
Access app-specific files - Android Developers
To access app-specific files from external storage, call getExternalFilesDir() . To help maintain your app's performance, don't open and close the same file ......
Read more >
Configure the gulp bundling destination folder outside the ...
In theory, you just have to change the exportSrvRoot variable of the build/paths.js file. For instance: //var exportSrvRoot = 'export/' ...
Read more >
Bundle Structures - Apple Developer
Explains how to use bundle objects to organize resources.
Read more >
1.26. Creating Bundles - iOS 6 Programming Cookbook [Book]
Create a root folder on your disk that will later become your bundle. For instance, let's give this folder the name Resources. Under...
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