Skip to content

Commit b1958d0

Browse files
committed
Instrument CI to build minified python
1 parent c791c74 commit b1958d0

File tree

11 files changed

+133
-106
lines changed

11 files changed

+133
-106
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ jobs:
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
cache: 'npm'
24+
- run: python -m venv env
25+
- run: source env/bin/activate
26+
- run: pip install --upgrade pip
27+
- run: pip install --ignore-requires-python python-minifier
28+
- run: pip install setuptools
2429
- run: npm ci
25-
- run: npx playwright install
30+
- run: npx playwright install chromium
2631
- run: npm run build
2732
- run: npm run test

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ This project requires some automatic artifact creation to:
3131
Accordingly, to build latest project:
3232

3333
```sh
34+
# activate once the Python env (to use pyminify)
35+
. env.sh # or source env.sh
36+
3437
# create all artifacts needed to test core
3538
npm run build
3639

docs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/zip-BIfA-Q-T.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/zip-BIfA-Q-T.js renamed to docs/zip-DrwYHuF9.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/zip-DrwYHuF9.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

env.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env sh
2+
3+
# to use this env type either:
4+
# . env.sh
5+
# or
6+
# source env.sh
7+
8+
python -m venv env
9+
source env/bin/activate
10+
pip install --upgrade pip
11+
pip install --ignore-requires-python python-minifier
12+
pip install setuptools

package-lock.json

Lines changed: 93 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
"@playwright/test": "^1.46.1",
4343
"@rollup/plugin-node-resolve": "^15.2.3",
4444
"@rollup/plugin-terser": "^0.4.4",
45-
"@zip.js/zip.js": "^2.7.51",
45+
"@zip.js/zip.js": "^2.7.52",
4646
"c8": "^10.1.2",
4747
"chokidar": "^3.6.0",
4848
"eslint": "^9.9.1",
4949
"linkedom": "^0.18.4",
50-
"rollup": "^4.21.1",
50+
"rollup": "^4.21.2",
5151
"static-handler": "^0.4.3",
5252
"typescript": "^5.5.4"
5353
},
@@ -86,6 +86,6 @@
8686
"to-json-callback": "^0.1.1"
8787
},
8888
"worker": {
89-
"blob": "sha256-QDmhtpGRALCZn/gNlUmUSRUiiNDmiCk9Pn61k6Addho="
89+
"blob": "sha256-n5bp7XbiMOC5xSM8r1BjWIl0efV5DHH41AoMDzRWNdg="
9090
}
9191
}

0 commit comments

Comments
 (0)