Skip to content

Commit

Permalink
Drop none values for JS and switch to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
rgieseke committed Jun 19, 2024
1 parent 3c3ac10 commit d0fc768
Show file tree
Hide file tree
Showing 9 changed files with 1,876 additions and 1,489 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
all: src/globalwarmingpotentials/__init__.py index.js index.d.ts
all: src/globalwarmingpotentials/__init__.py index.js

src/globalwarmingpotentials/__init__.py index.js: scripts/generate_modules.py globalwarmingpotentials.csv venv
src/globalwarmingpotentials/__init__.py index.ts: scripts/generate_modules.py globalwarmingpotentials.csv venv
@./venv/bin/python $<
@./venv/bin/black src/globalwarmingpotentials/*.py

index.d.ts: index.js package.json
index.js: index.ts package.json
@npm install
@npm run build
@npm run format

venv: scripts/requirements.txt
[ -d ./venv ] || python3 -m venv venv
Expand All @@ -15,7 +16,7 @@ venv: scripts/requirements.txt
touch venv

clean-generated-files:
rm -rf index.js index.d.ts py/globalwarmingpotentials/__init__.py
rm -rf index.js index.ts py/globalwarmingpotentials/__init__.py

clean-venv:
rm -rf venv
Expand Down
Loading

0 comments on commit d0fc768

Please sign in to comment.