Update build script

This commit is contained in:
Sargun Vohra 2018-09-15 00:57:01 -07:00
parent f26a17bf29
commit 2388dfeeef
4 changed files with 21 additions and 5 deletions

View File

@ -4,8 +4,5 @@ set -e
set -o pipefail
set -x
yarn install
yarn run netlify-lambda build functions
poetry install --no-dev
poetry run ditto transform --base-url='https://pokeapi-prod.netlify.com/' --dest-dir='_dist'
ditto transform --base-url='https://pokeapi-prod.netlify.com/' --dest-dir='_dist'

View File

@ -1,6 +1,6 @@
[build]
publish = "_dist"
command = "pip install poetry && bash build.sh"
command = "bash build.sh"
functions = "_functions"
[[redirects]]

18
requirements.txt Normal file
View File

@ -0,0 +1,18 @@
certifi==2018.8.24
chardet==3.0.4
click==6.7
Flask==1.0.2
Flask-Cors==3.0.6
genson==1.0.1
gevent==1.3.6
greenlet==0.4.15
idna==2.7
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
pokeapi-ditto==0.3.0
requests==2.19.1
six==1.11.0
tqdm==4.26.0
urllib3==1.23
Werkzeug==0.14.1

1
runtime.txt Normal file
View File

@ -0,0 +1 @@
3.6