Skip to content

Commit 5c325bd

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 959ea7a + 084ec32 commit 5c325bd

File tree

9 files changed

+5216
-5720
lines changed

9 files changed

+5216
-5720
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.9]
11+
python-version: ['3.10']
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install dependencies
@@ -27,17 +27,17 @@ jobs:
2727
needs: [build]
2828
strategy:
2929
matrix:
30-
python-version: [3.8, 3.9]
31-
node-version: [16.x, 18.x]
32-
django-version: [3.2, 4.0]
30+
python-version: ['3.8', '3.9', '3.10']
31+
node-version: [18.x, 20.x]
32+
django-version: [3.2, 4.2]
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3535
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v1
36+
uses: actions/setup-node@v3
3737
with:
3838
node-version: ${{ matrix.node-version }}
3939
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v2
40+
uses: actions/setup-python@v4
4141
with:
4242
python-version: ${{ matrix.python-version }}
4343
- name: Set up Django ${{ matrix.django-version }}
@@ -60,17 +60,17 @@ jobs:
6060
needs: [build]
6161
strategy:
6262
matrix:
63-
python-version: [3.7, 3.8, 3.9]
64-
node-version: [16.x, 18.x]
65-
flask-version: [1.1.4, 2.2.2]
63+
python-version: ['3.8', '3.9', '3.10']
64+
node-version: [18.x, 20.x]
65+
flask-version: [1.1.4, 2.2.2, 3.0.0]
6666
steps:
67-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v4
6868
- name: Use Node.js ${{ matrix.node-version }}
69-
uses: actions/setup-node@v1
69+
uses: actions/setup-node@v3
7070
with:
7171
node-version: ${{ matrix.node-version }}
7272
- name: Set up Python ${{ matrix.python-version }}
73-
uses: actions/setup-python@v2
73+
uses: actions/setup-python@v4
7474
with:
7575
python-version: ${{ matrix.python-version }}
7676
- name: Set up Flask ${{ matrix.flask-version }}

docs/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@ $ cd frontend
3232

3333
# install dependency packages
3434
$ npm install
35+
3536
# build js, scss files
3637
$ npm run start
3738
```
3839

39-
Now you can load bundle file in templates like
40+
Now you can load bundle js and css files in template
4041

4142
```html
4243
{% stylesheet_pack 'app' %}
43-
{% javascript_pack 'app' 'app2' attrs='charset="UTF-8"' %}
44+
{% javascript_pack 'app' %}
4445
```
4546

4647
!!! note
47-
1. You can import multiple entry files using one `javascript_pack` statement
48+
1. You can import **multiple entry files** using `stylesheet_pack` and `javascript_pack` (`{% javascript_pack 'app' 'app2'`)
4849
1. The `javascript_pack` would also **import dependency files automatically to handle code splitting**
49-
1. You can use `attrs` to set custom attributes
50+
1. You can use `attrs` to set custom attributes, (`{% javascript_pack 'app' attrs='charset="UTF-8"' %}`)

docs/setup_with_django.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ frontend
7272

7373
```bash
7474
$ node -v
75-
v18.12.1
75+
v20.9.0
7676
$ npm -v
77-
8.19.2
77+
10.1.0
7878
```
7979

8080
Now go to `frontend`
@@ -198,7 +198,7 @@ Add `index.html` to the above `example/templates`
198198
</div>
199199
</div>
200200
201-
{% javascript_pack 'app' 'app2' attrs='charset="UTF-8"' %}
201+
{% javascript_pack 'app' %}
202202
203203
</body>
204204
</html>

docs/setup_with_flask.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ frontend
6161

6262
```bash
6363
$ node -v
64-
v18.12.1
64+
v20.9.0
6565
$ npm -v
66-
8.19.2
66+
10.1.0
6767
```
6868

6969
Now go to `frontend`
@@ -166,7 +166,7 @@ Add `index.html` to `templates`
166166
</div>
167167
</div>
168168

169-
{{ javascript_pack('app', 'app2', attrs='charset="UTF-8"') }}
169+
{{ javascript_pack('app', attrs='charset="UTF-8"') }}
170170

171171
</body>
172172
</html>

tests/requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pytest==6.2.2
1+
pytest==7.4.3

webpack_boilerplate/frontend_template/{{cookiecutter.project_slug}}/.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
],
1111
"plugins": [
1212
"@babel/plugin-syntax-dynamic-import",
13-
"@babel/plugin-proposal-class-properties"
13+
"@babel/plugin-transform-class-properties"
1414
]
1515
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/hydrogen
1+
lts/iron

0 commit comments

Comments
 (0)