diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..46fc39d --- /dev/null +++ b/README.md @@ -0,0 +1,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/ |