Giter Site home page Giter Site logo

Comments (6)

Salakar avatar Salakar commented on July 24, 2024

You could use a monorepo with a tool like https://github.com/invertase/melos; each function could be a private package in ./packages for example. You can easily share local dependencies and build/deploy scripts with Melos too.

from dart_edge.

gaetschwartz avatar gaetschwartz commented on July 24, 2024

But AFAIK when using edge build supabase_functions --dev it always builds it as supabase/functions/dart-edge ? For now I build and rename the folder automatically. Also, edge build supabase_functions does not seem to work on my end. It just completes without doing anything (#24)

from dart_edge.

Ehesp avatar Ehesp commented on July 24, 2024

Yeah thus was part of my thinking for #12

You can define entrypoints -> name. I'll have a think.

from dart_edge.

gaetschwartz avatar gaetschwartz commented on July 24, 2024

DM'd you on Twitter about that :) @Ehesp

from dart_edge.

MichealReed avatar MichealReed commented on July 24, 2024

My workflow looks like --

  1. Create new function with edge new supabase_functions example_dart
  2. cd example_dart && build supabase_functions --dev
  3. rename example_dart/supabase/functions/dart_edge to example_dartgen
  4. move example_dartgen to parent supabase/functions, next to original example_dart

So my folder looks like:

-supabase
 -functions
  -example_dart
  -example_dartgen
  -packages

Seems to be working well for organizes so far, maybe it will help others manage multiple functions.

from dart_edge.

point-source avatar point-source commented on July 24, 2024

I also am having issues using this with multiple functions. Ideally, I think I'd like to have a mirrored folder structure. Basically /edge/functions/[my_function_name] of which there can be N functions and then once edge build supabase_functions is called, it builds each function in /edge/functions/ and outputs to /supabase/functions/*.

Alternatively, if the edge build supabase_functions accepted input/output args, I could make this behavior myself.

Currently, this tool seems to assume it will manage the entire dart package and be the only function in supabase. This is not necessarily the case since sometimes your package includes multiple aspect of your backend and sometimes even your frontend (as is often the case with supabase + frontend in one repo)

from dart_edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.