Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions intelligence/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN
## Hello, Flower Intelligence!

```javascript
// If installed with NPM
// import { FlowerIntelligence } from '@flwr/flwr';

import { FlowerIntelligence } from 'https://cdn.jsdelivr.net/npm/@flwr/flwr';
import { FlowerIntelligence } from '@flwr/flwr';

const fi = FlowerIntelligence.instance;

Expand All @@ -51,17 +48,10 @@ await main().then().catch();

## Demo

You can also quickly try out the library with the `examples/hello-world` example:
You can also quickly try out the library with the `examples/hello-world-ts` example (which is a minimal TypeScript project):

```sh
pnpm demo
```

This script will build the library and run the example demo. You can modify the
prompt used inside `examples/hello-world/index.mjs`.

You can also use `pnpm demo:js-proj` or `pnpm demo:ts-proj` to respectively
run a simple JavaScript project example or a simple TypeScript project example.
Those projects can be found respectively in `examples/simple-js-project` and
`examples/simple-ts-project`. Note that, contrary to `examples/hello-world`,
those project are valid `pnpm`/`npm` projects.
You can also use `pnpm demo:js` to run the equivalent JavaScript project example (`examples/simple-ts-project`).
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "simple-js-project",
"name": "hello-world-js",
"version": "1.0.0",
"description": "",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "simple-ts-project",
"name": "hello-world-ts",
"version": "1.0.0",
"description": "",
"type": "module",
Expand Down
7 changes: 0 additions & 7 deletions intelligence/ts/examples/hello-world/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions intelligence/ts/examples/hello-world/index.mjs

This file was deleted.

15 changes: 0 additions & 15 deletions intelligence/ts/examples/hello-world/loader.mjs

This file was deleted.

Loading