editor/README_PORTAL.md
Portal is a web-based UI for inspecting Clojure values that can run standalone in a web browser or be integrated into various popular IDEs. Once running, you can call (tap> some-value) to inspect it in Portal.
This PR introduces a new portal Leiningen profile that will include the relevant dependencies to run Portal when working on the Defold Editor, as well as some editor-specific functionality, such as inspecting graph nodes and resources.
Portal is only a simple value inspector. If you desire full REPL-replacement with more advanced capabilities, look into using Reveal instead. It has similar Defold Editor-specific inspection capabilities and more.
Install the relevant Portal plugin for your IDE of choice. This enables you to run the Portal inspector in a docked panel inside your editor.
Once installed,
lein with-profile +portal ... when starting up to include Portal
on the class path.((requiring-resolve 'editor.portal/open!))
(tap> some-value) to inspect any Clojure value or Java object in Portal.node-id or a Resource value to inspect the corresponding node.This view shows details related to a node in the graph.
ResourceNode will display their owner Resource.node-ids.:keyword for a property, input, or output to evaluate it.