package, and capabilities / system #2040
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have to relook how packages work, and how systems capabilities work etc for 0.5.
FASTN.ftd
We can simplify FASTN.ftd by ignore the
-- import: fastn
part, there was no realfastn
module being imported, and we were dealing with FASTN.ftd file as if they valid fastn files. A bunch of fastn is not available to FASTN.ftd, and probably it does not make sense for us to make it fully executable file, and we treat it as a file with p1 syntax only.Get Rid Of Dependency Alias
We have both dependency alias feature, and auto import feature, and dependency feature can be easily emulated with auto import, and is auto import is overall superior. So we can remove dependency alias in 0.5.
Systems
We have discussed systems and capabilities in the past, but I am feeling like we can simplify it.
No Need For
system:
KeyEarlier to designate any package as system you have to use:
I feel this is too much bureaucracy. For one you have to pick a globally unique system alias, and further you hope that the package you intend to "provide" / "overwrite", has declared itself as a system.
Now any package you add as a dependency, can be overwritten by the FASTN.ftd of the main package.
Global Provided-Via
Here if any package in the dependency tree imported
fastn-community.github.io/design-system
, they will instead getamitu.com/ds
. Same with submodules, egfastn-community.github.io/design-system/foo
will beamitu.com/ds/foo
etc.Sensitive Dependency
Some modules can be sensitive, and we do not want to allow to everyone.
This is basically saying that
fastn-community.github.io/design-system
is a sensitive package, and since it is sensitive, it is not automatically available to every dependency, andfastn-community.github.io/doc-site
can accessamitu.com/ds
, but notfoo.com
dependency (iffoo.com
has importedfastn-community.github.io/design-system
, it will raise an error).Different Modules With Same Capabilities
Say you have two databases, so you configure them:
Here you are allowing
fastn-community.github.io/doc-site
the prod db, andfoo.com
gets dev db only.url-mappings
,dynamic-urls
, andredirects
In v0.4 we support:
We can combine all of them under some
urls
section.Beta Was this translation helpful? Give feedback.
All reactions