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 70 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
8313700
ES6 stubwork
lenadax Aug 16, 2021
caa0937
stub cleanup
lenadax Aug 16, 2021
a193c0e
add js files
lenadax Aug 16, 2021
6f5a5ba
Create JS ace widget as class
rnixx Oct 1, 2021
3dd4aba
Update ace editor
rnixx Oct 1, 2021
80cace8
JS output file name
rnixx Oct 1, 2021
594f863
Include minified no conflicting version of ace
rnixx Oct 1, 2021
252b990
no width setting
rnixx Oct 1, 2021
6a6022a
Fix clean script
rnixx Oct 31, 2021
b451496
rollup and karma conf
lenadax Jan 21, 2022
aea9ac6
Update Changelog. Housekeeping
rnixx Mar 14, 2022
3521613
Remove source maps
rnixx Mar 14, 2022
c07db7c
Remove buildout.cfg and bootstrap.py
rnixx Mar 14, 2022
89e5795
Coverage and test scripts
rnixx Mar 14, 2022
5c744e0
Clean script
rnixx Mar 14, 2022
c2e68df
update autoWatch config
lenadax Mar 17, 2022
e2362f4
initialize() test setup
lenadax Apr 21, 2022
ef79c19
housekeeping
lenadax May 5, 2022
3064314
Merge pull request #3 from conestack/lenadax/fixes_tests
rnixx May 6, 2022
512523b
add github actions
lenadax May 6, 2022
f694c9f
update gh actions
lenadax May 6, 2022
ceaea18
update gh actions
lenadax May 6, 2022
308ea7b
add lxml and zope.testrunner
lenadax May 6, 2022
56e50c6
fail under 99 instead of 100
lenadax May 6, 2022
3c274f7
setup WIP for js actions
lenadax May 9, 2022
200c138
add karma
lenadax May 9, 2022
30f128f
check if fails
lenadax May 9, 2022
32a9b3b
update scripts, add npm scripts
lenadax May 10, 2022
ad96ad0
run only when py files changed
lenadax May 10, 2022
2d98474
Merge pull request #4 from conestack/js_action
rnixx May 11, 2022
9194b4c
ensure correct location of node_modules
lenadax May 12, 2022
4c1aa74
Support setting custom base path for ACE resources. Render widget opt…
rnixx May 20, 2022
b28fac1
"Restore bdajax compat"
rnixx May 20, 2022
75fda05
"Simplify IIFE bundle outro"
rnixx May 20, 2022
8d4e6d8
"Karma coverage validation script formatting"
rnixx May 20, 2022
6dcb916
"Register resources with webresource"
rnixx May 20, 2022
01d321e
Update bundle
rnixx May 23, 2022
4aefb0f
"Update webresource registration"
rnixx May 25, 2022
0ba6d58
"Add path to webresource groups"
rnixx May 25, 2022
9cc7303
"Adopt webresource registrations"
rnixx May 28, 2022
166e8cd
"Test housekeeping"
rnixx May 29, 2022
0c9bca0
"Install webresource from repo for tests"
rnixx May 29, 2022
96a04e0
"Add resource tests"
rnixx May 30, 2022
18630a1
"dedicated widget import in tests"
rnixx May 30, 2022
8960d9b
Resource group name is widget name.
rnixx May 30, 2022
3e6fdd2
add array hooks WIP
lenadax Dec 13, 2022
0f1dab3
add ace_on_array_add function
lenadax Dec 15, 2022
8fc651b
merge conflicts
lenadax Dec 15, 2022
ebedd17
remove obsolete line
lenadax Dec 15, 2022
7799576
improve test coverage, add yafowil.widget.array test case
lenadax Dec 19, 2022
4578319
improve tests. Invoke array subscribers binding in bundle
lenadax Dec 20, 2022
cd1176e
Use yafowil_array.inside_template API to check whether widget gets in…
lenadax Mar 10, 2023
e5d410d
compiled js
lenadax Mar 10, 2023
9cb5b0d
Merge pull request #5 from conestack/array_hooks
rnixx Mar 10, 2023
1330794
Changelog
rnixx May 15, 2023
7605fee
Preparing release 2.0a1
rnixx May 15, 2023
43a9119
Back to development: 2.0a2
rnixx May 15, 2023
2bdfe3f
Basic makefile
rnixx Oct 24, 2024
0bb12f1
wtr starts, tests fails
rnixx Oct 24, 2024
420478f
Update github actions
rnixx Oct 24, 2024
fed82ac
Add 3.13 to py tests
rnixx Oct 24, 2024
48f17e0
Comment github action trigger rules for now
rnixx Oct 24, 2024
dd7e6c9
readd action triggers
rnixx Oct 24, 2024
5c1cf78
wtr tests running again. setup scss
lenadax Oct 24, 2024
dcca532
Merge branch '2.0' of https://github.com/conestack/yafowil.widget.ace…
lenadax Oct 24, 2024
7b095cd
Merge branch '2.0' of https://github.com/conestack/yafowil.widget.ace…
rnixx Oct 24, 2024
c4083c5
Install pnpm in js tests
rnixx Oct 24, 2024
1388ee9
ANother attempt on installing pnpm
rnixx Oct 24, 2024
a633fb9
Reenable original action triggers
rnixx Oct 24, 2024
bfe4d84
Simplify JS test action
rnixx Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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/ace/tests

- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/ace --omit=src/yafowil/widget/ace/example.py -m pytest src/yafowil/widget/ace/tests
coverage report --fail-under=99
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
*~
*#*
*.pyc
*.egg-info
*.pyc
*.pyo
/.coverage
/.mxmake/
/coverage/
/dist/
/htmlcov/
/node_modules/
/pnpm-lock.yaml
/requirements-mxdev.txt
/venv/
23 changes: 20 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
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 ``ace_on_array_add`` and ``register_array_subscribers``
to enable usage in ``yafowil.widget.array``.
[lenadax]

- Update ACE Editor to v1.4.13.
[rnix]

- Rewrite JavaScript using ES6.
[rnix]


1.2 (2018-07-16)
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) 2012-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