Skip to content

fluxsocial/language-persistence

 
 

Repository files navigation

Language: languages

This is a Language about Languages - a way to publish and make available Languages to others.

Development

Release

npm install
npm run build

Build overview

The whole project compiles and bundles to one file: build/bundle.js.

This happens in two steps:

  1. The Icons (AD4M-speak for UI components) ConstructorIcon.svelte and Icon.svelte get compiled to build/ConstructorIcon.js and build/Icon.js respectively as web components. This first step is configured with rollup.config.icons.js
  2. index.ts gets compiled and bundled to build/bundle.js. During this bundling step, rollup-plugin-string is used to include the two web component files that represent the Icons as string literals inside the resulting bundle.

Injected context

The create() function returned by the resulting bundle.js will receive a parameter when executed inside Perspectivism: an instance of LanguageContext. This includes the Agent object and interfaces to storage implementations - currently only IPFS but very soon Holochain and others.

Here, the IPFS object gets passed on to the constructor of the ExpressionAdapter so it can be used to store expression in IPFS files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 76.2%
  • JavaScript 23.8%