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.

[DCR] Bot runtime directory structure changes

See original GitHub issue

Suggesting to change the concept of BotProject to bot runtime conceptually, since it seems like a more appropriate name.

As part of an effort to get Azure Functions integrated into composer I’m shuffling things around, and it marks a good time to re-think the folder structure for the bot runtime.

Proposed folder structure:

  • runtime/dotnet/ Dotnet root
  • runtime/dotnet/core/ Dotnet core shared libraries. Most of the dotnet code should be here.
  • runtime/dotnet/azurefunctions/
  • runtime/dotnet/azurewebapp/
  • runtime/node/core/
  • runtime/node/azurefunctions/
  • runtime/node/azurewebapp/
  • runtime/node/someothertechnology/

Note that we use dotnet in order to match with the botbuilder-* repos. We keep node since it really will host node bots for the first iteration. This also leaves the open slot for a js folder if / when we support browser js bots.

In a more generic way, the folder structure will be:

  • runtime/{language}/core/
  • runtime/{language}/{hostingTechnology1}/
  • runtime/{language}/{hostingTechnology2}/

One neat thing about this, is that the eject or publish commands will onlyu require to move the core library plus the selected integration library.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
benbrowncommented, Apr 30, 2020

Looks grrrrrrrrreat!

1reaction
luhan2017commented, Apr 30, 2020

That looks good to me. This new structure might impact the current implementation of bot folder reference, appsettings.json reference, also some copying logic in local and azure publish plugins, but they are all expected. Can’t wait for your cool feature, go go go @carlosscastro

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nodejs unable to detect folder after directory structure change
What I am trying to say is that we had all the bot's content (everything in the bot folder) in the root directory...
Read more >
Getting Started - Directory Structure - Spiral Framework
The default directory structure can be controlled via mapDirectories method of Kernel class. ... For example, we can change runtime directory location:
Read more >
runescape client stuck on loading application resources
Go to File->Project Structure and click "New" button and select Flex/AIR SDK. Applications and games created by xda developer's users for use on...
Read more >
Creating a Complex Directory Structure with the ...
An organized directory structure is an essential cornerstone of data ... Sometimes the underlying structure of the data changes, and there needs to...
Read more >
C#Bot File Structure - Codebots
The file structure which is used in C#Bot applications. ... their contents wrapped in protected regions, so you can make changes to the...
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