-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add back old holochain only link language
- Loading branch information
Showing
67 changed files
with
13,503 additions
and
166 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
bootstrap-languages/p-diff-sync-socket-signaling/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
39
bootstrap-languages/p-diff-sync-socket-signaling/esbuild.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Oops, something went wrong.