0.25.1 • Published 17 days ago

@syndicate-lang/create v0.25.1

Weekly downloads
-
License
GPL-3.0+
Repository
-
Last release
17 days ago

@syndicate-lang/create

To create a new program/library using Syndicate/js, use yarn create @syndicate-lang DIRECTORY:

yarn create @syndicate-lang myprogram
cd myprogram
yarn
yarn serve

Then visit http://localhost:8000/. By default, the generated app expects a syndicate-server to be running on port 9001 exposing a dummy capability to a dataspace entity. Suitable configuration can be found in the syndicate-server.config.pr file. Start the server like this:

syndicate-server -c ./syndicate-server.config.pr

If you aren't writing a web app in Syndicate, you can remove the following files from the generated module as well as the serve script from package.json:

  • index.html
  • style.css
  • rollup.config.js
  • syndicate-server.config.pr

In that case, your index.ts can be as simple as

import { Dataspace } from "@syndicate-lang/core";
Dataspace.boot(ds => {
    /* your app goes here */
});

If you don't need to define any Preserves schemas in your application, remove the protocols/ directory as well as the various regenerate scripts and any mention of the src/gen/ directory from package.json.

0.25.1

17 days ago

0.25.0

1 month ago

0.24.0

2 months ago

0.23.2

2 months ago

0.23.1

2 months ago

0.23.0

2 months ago

0.22.1

2 months ago

0.22.0

2 months ago

0.21.0

4 months ago

0.20.0

4 months ago

0.19.0

5 months ago

0.18.0

6 months ago

0.16.0

7 months ago

0.15.1

8 months ago

0.17.0

7 months ago

0.16.1

7 months ago

0.17.1

6 months ago

0.15.0

11 months ago

0.14.2

1 year ago

0.12.0

1 year ago

0.13.0

1 year ago

0.12.1

1 year ago

0.14.0

1 year ago

0.14.1

1 year ago

0.11.5

1 year ago

0.11.4

2 years ago

0.11.0

2 years ago

0.11.1

2 years ago

0.11.2

2 years ago

0.11.3

2 years ago

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago