Symbols generated FileSystem tree #28
nikoloza
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
smbls.create
function takes two argument objects,app
andoptions
.In App we pass the root object.
In options we pass the {} of parameters: some options are needed for DOMQL context, some for editor sync and a few ones just as flags.
options
can be passed from the codebase that is merged with file atnode_modules/@symbo.ls/init/dynamic.json
(implementation).smbls
CLI tools such assync
andfetch
are responsible to fetch API data locally. Currently they replace data indynamic.json
file and is read by DOMQL in runtime (implementation). The passed object has higher priority during merge than dynamic file.Requirement is that users should be able to specify the folder path in their
~/symbols.json
(reference) file where we can create files at the given directory.dynamic.json
data might have a few or all of these properties:Those fields are described in based.io schema as well.
This JSON data is single source of truth for any app and is equivalent to the data on platform:
There are a few ways to get this data from API:
@symbo.ls/fetch
wrapper.@symbo.ls/socket
.CLI:
sync
realtime connectionfetch
one time fetchingFilesystem:
fs should have following structure:
fs-reversing - the process of sending data back to the api. TBA.
Running
index.js
code innodejs
runtime shall be giving the data object in memory. Babel might be required.https://app.excalidraw.com/s/6FkfI99TECe/8RFVSqqVxkF
Beta Was this translation helpful? Give feedback.
All reactions