0.27.1 • Published 6 months ago

@syndicate-lang/create v0.27.1

Weekly downloads
-
License
GPL-3.0+
Repository
-
Last release
6 months 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.27.1

6 months ago

0.27.0

9 months ago

0.26.3

12 months ago

0.26.2

12 months ago

0.26.1

1 year ago

0.26.0

1 year ago

0.25.1

1 year ago

0.25.0

1 year ago

0.24.0

1 year ago

0.23.2

1 year ago

0.23.1

1 year ago

0.23.0

1 year ago

0.22.1

1 year ago

0.22.0

1 year ago

0.21.0

1 year ago

0.20.0

1 year ago

0.19.0

2 years ago

0.18.0

2 years ago

0.16.0

2 years ago

0.15.1

2 years ago

0.17.0

2 years ago

0.16.1

2 years ago

0.17.1

2 years ago

0.15.0

2 years ago

0.14.2

2 years ago

0.12.0

2 years ago

0.13.0

2 years ago

0.12.1

2 years ago

0.14.0

2 years ago

0.14.1

2 years ago

0.11.5

2 years ago

0.11.4

3 years ago

0.11.0

3 years ago

0.11.1

3 years ago

0.11.2

3 years ago

0.11.3

3 years ago

0.0.5

5 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago