Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/js-interfaces-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: JS Interfaces
on:
push:
paths:
- "js/**"
- "js/src/lib/interfaces/**"
pull_request:
paths:
- "js/**"
- "js/src/lib/interfaces/**"


Expand All @@ -22,12 +24,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14
- run: sudo npm i -g typescript@4.2.2
- run: node --version
- run: tsc --version
- name: Install deps
run: npm i @types/node
- name: Compile
- working-directory: js
run: |
npm ci
- name: Check that code compiles
working-directory: ./js/src/lib/interfaces
run: |
time tsc *.ts --lib es6,es2016,es2017,es2018,esnext --target es2018 --module commonjs --outDir dist
time npx tsc *.ts --lib es6,es2016,es2017,es2018,esnext --target es2018 --module commonjs --outDir dist
- name: Run export-tasks script
working-directory: js
run: |
npx tsm src/scripts/export-tasks.ts
# copy/paste this JSON output to any repo that might need it.
2 changes: 1 addition & 1 deletion .github/workflows/js-widgets-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths:
- "js/**"
- "!js/src/lib/interfaces/**"
# - "!js/src/lib/interfaces/**"

jobs:
build:
Expand Down
129 changes: 1 addition & 128 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,131 +1,4 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
node_modules/
.vscode/

.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This repository regroups frontend components, documentation and information that
In the different folders, you will find:
- Widgets and other frontend components in the `js` folder.
- The tasks as visible on the following page: [hf.co/tasks](https://hf.co/tasks) in the `tasks` folder.
- The Hugging Face Hub documentation as visible here: [hf.co/docs/hub](https://hf.co/docs/hub)
- In the `docs` folder, the Hugging Face Hub documentation as visible here: [hf.co/docs/hub](https://hf.co/docs/hub)
Loading