Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: JavaScript Rewrite #2

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ac46bf2
setup karma and rollup
lenadax Aug 16, 2021
735a884
Basic ES6 refactoring
rnixx Oct 2, 2021
17cbe2e
Include bundles. minor fices
rnixx Oct 2, 2021
f378acb
rollup and karma conf
lenadax Jan 21, 2022
f3a51a5
housekeeping
lenadax Mar 14, 2022
537d270
update gitignore
lenadax Mar 15, 2022
c45a72f
update autoWatch config
lenadax Mar 17, 2022
252073b
rudimentary test setup
lenadax May 2, 2022
7626b2a
switch to scss. use global vars
lenadax May 4, 2022
cb1dc77
housekeeping
lenadax May 5, 2022
cf7d327
Merge pull request #3 from conestack/lenadax/scss
rnixx May 6, 2022
2cc9a43
remove css sourcemaps
lenadax May 6, 2022
445ced1
add github tests
lenadax May 6, 2022
4f56acd
add js action
lenadax May 10, 2022
9617f1d
Merge pull request #4 from conestack/js_action
rnixx May 11, 2022
998c510
ensure correct location of node_modules
lenadax May 12, 2022
4c29e9f
"Restore bdajax compat"
rnixx May 20, 2022
e5374fa
"Simplify IIFE bundle outro"
rnixx May 20, 2022
125ce41
"Karma coverage validation script formatting"
rnixx May 20, 2022
b9892d2
"Consistent naming when attaching yafowil widget instance to DOM elem"
rnixx May 20, 2022
0cb8e83
"Register resources with webresource"
rnixx May 20, 2022
8b24e3f
Update bundle
rnixx May 23, 2022
5599b5b
"Update webresource registration"
rnixx May 25, 2022
11e51e2
"Add path to webresource groups"
rnixx May 25, 2022
5312e41
"Adopt webresource registrations"
rnixx May 28, 2022
f74e8f6
"Test housekeeping"
rnixx May 29, 2022
be6a850
"Install webresource from repo for tests"
rnixx May 29, 2022
176498c
"Add resource tests"
rnixx May 30, 2022
84ca119
"dedicated widget import in tests"
rnixx May 30, 2022
955d217
Resource group name is widget name.
rnixx May 30, 2022
36256ad
Move i18n script to scripts folder
rnixx May 30, 2022
ca6959d
add yafowil_array subscribers
lenadax Dec 22, 2022
175809f
Use yafowil_array.inside_template API to check whether widget gets in…
lenadax Mar 9, 2023
02a7677
compiled js
lenadax Mar 9, 2023
834a582
Use yafowil_array.inside_template in all relevant places
rnixx Mar 9, 2023
010f63b
Merge pull request #5 from conestack/array_hooks
rnixx Mar 9, 2023
0283319
Changelog
rnixx May 15, 2023
ab0d4e6
Preparing release 2.0a1
rnixx May 15, 2023
726ebf8
Back to development: 2.0a2
rnixx May 15, 2023
649be35
mxmake setup
lenadax Oct 29, 2024
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
20 changes: 20 additions & 0 deletions .github/workflows/test_js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: JS tests

on: [push]

jobs:
test:
name: Test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install
run: |
corepack enable
make nodejs

- name: Run tests
run: make wtr
50 changes: 50 additions & 0 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Python tests

on: [push]

jobs:
test:
name: Test ${{ matrix.python }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest

python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install
run: |
pip install wheel
pip install coverage
pip install https://github.com/conestack/webresource/archive/master.zip
pip install https://github.com/conestack/yafowil/archive/master.zip
pip install -e .[test]

- name: Run tests
run: |
python --version
python -m pytest src/yafowil/widget/cron/tests

- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/cron --omit=src/yafowil/widget/cron/example.py -m pytest src/yafowil/widget/cron/tests
coverage report --fail-under=99
33 changes: 13 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
*~
*#*
*.egg-info
*.pyc
*.pyo
*.egg-info
/develop-eggs/
/parts/
/bin/
/eggs/
/downloads/
/var/
/dist/
/.coverage
/.mxmake/
/coverage/
/devsrc/
/include/
/lib/
/local/
/share/
/.installed.cfg
/.pydevproject
/.project
/.DS_Store
/.mr.developer.cfg
/dist/
/htmlcov/
/node_modules/
/package-lock.json
/pnpm-lock.yaml
/py2/
/py3/
/pypy3/
/requirements-mxdev.txt
/venv/
20 changes: 17 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
Changes
=======

1.3 (unreleased)
----------------
2.0a2 (unreleased)
------------------

- Nothing changed yet.


2.0a1 (2023-05-15)
------------------

- No changes yet.
- Add ``webresource`` support.
[rnix]

- Extend JS by ``cron_on_array_add`` and ``register_array_subscribers``
functions to enable usage in ``yafowil.widget.array``.
[lenadax]

- Rewrite JavaScript using ES6.
[rnix]


1.2 (2020-05-30)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
=======

Copyright (c) 2010-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021, Yafowil Contributors
Copyright (c) 2021-2024, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading
Loading