blob: 46fc39db0f4d734bc1f7042299f0ae242b73e460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Prompt
Drawing prompts delivered to YOUR door.
## Regenerating data
This poject is based on [wordnet][wordnet] data, which is provided
as `.tab` files.
This repo provides a script `wordnet_to_json`, that converts the
tab to easy to use JSON files.
You can run it by calling `npm run wordnet_to_json <source_tab> <lang> <data_dir>`
The convention is to use 2 letter codes for language (eg. `en` or `es`) and
store it in `static/data` so to load spanish data files you would call:
```
npm run wordnet_to_json path/to/wn-data-spa.tab static/data/es
```
If you're running into errors and the default error messages aren't helping,
you can enable more detailed debug data by setting `NODE_DEBUG=wordnet_to_json`
## Building
Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:
```bash
npm run build
```
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
[wordnet]: http://compling.hss.ntu.edu.sg/omw/
|