Skip to content

Commit

Permalink
add back old holochain only link language
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeepee committed Oct 10, 2023
1 parent 931c191 commit 6aea1c4
Show file tree
Hide file tree
Showing 67 changed files with 13,503 additions and 166 deletions.
19 changes: 19 additions & 0 deletions bootstrap-languages/p-diff-sync-socket-signaling/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.cargo
target
hc-dna/workdir/perspective-diff-sync.dna
hc-dna/zomes/tests/node_modules
hc-dna/zomes/tests/out.log
node_modules
.hc*
perspect-diff-sync.dna
*.log
.turbo

*.js
*.js.map
!rollup.config*
!.dna.js
!integration-test.js

.ad4m-test
ad4m-test-*
3 changes: 3 additions & 0 deletions bootstrap-languages/p-diff-sync-socket-signaling/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Perspective Diff Sync

Git like holochain syncing DNA for sharing of mutation to a shared perspective.
39 changes: 39 additions & 0 deletions bootstrap-languages/p-diff-sync-socket-signaling/esbuild.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
// Import the WASM build on platforms where running subprocesses is not
// permitted, such as Deno Deploy, or when running without `--allow-run`.
// import * as esbuild from "https://deno.land/x/[email protected]/wasm.js";

import { denoPlugins } from "https://deno.land/x/[email protected]/mod.ts";
import { loadSource, resolveUrl } from "./customHttpDownloader.js";

const result = await esbuild.build({
plugins: [
{
name: `buffer-alias`,
setup(build) {
build.onResolve({ filter: new RegExp(`^buffer$`) }, (args) => {
return { path: `https://deno.land/[email protected]/node/buffer.ts`, namespace: 'imports' };
});

build.onResolve({filter: /.*/, namespace: 'imports'}, resolveUrl)

build.onLoad({filter: /.*/, namespace: 'imports'}, (args) => {
return loadSource(args)
})
},
},
...denoPlugins()
],
entryPoints: ['index.ts'],
outfile: 'build/bundle.js',
bundle: true,
platform: 'node',
target: 'deno1.32.4',
format: 'esm',
globalName: 'perspective.diff.sync.language',
charset: 'ascii',
legalComments: 'inline'
});
console.log(result.outputFiles);

esbuild.stop();
Loading

0 comments on commit 6aea1c4

Please sign in to comment.