Add prebuild script

This command is automatically run by Next
This commit is contained in:
Marcus Blättermann 2022-11-18 02:34:49 +01:00
parent 8d225de80b
commit 70e8e8cb7f
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"prebuild": "pip install -r setup/requirements.txt && sh setup/setup.sh",
"start": "next start",
"lint": "next lint",
"prettier": "prettier . --write"

View File

@ -1 +1 @@
python jinja_to_js.py ../../spacy/cli/templates/quickstart_training.jinja ../src/widgets/quickstart-training-generator.js ../../spacy/cli/templates/quickstart_training_recommendations.yml
python setup/jinja_to_js.py ../spacy/cli/templates/quickstart_training.jinja src/widgets/quickstart-training-generator.js ../spacy/cli/templates/quickstart_training_recommendations.yml