Skip to content

Commit 5b9318a

Browse files
committed
Update remaining templates to TailwindCSS
- Remove Webpack (woot!) - Add Hyperscript for the navigation menu
1 parent c1a538f commit 5b9318a

File tree

11 files changed

+261
-184
lines changed

11 files changed

+261
-184
lines changed

Procfile

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ This is the repository for the San Diego Python website at [sandiegopython.org](
1616

1717
```shell
1818
pip install -r requirements/local.txt # Install local Python requirements
19-
npm install # Install node dependencies for CSS/JS compiling
20-
npm run build # Build CSS/JS
19+
npm install # Install JS dependencies for frontend CSS/JS
20+
npm run build # Build CSS (continuously with `npm run watch`)
2121
pre-commit install # Setup code standard pre-commit hook
2222
./manage.py migrate # Create a local development database
2323
./manage.py createsuperuser # Create a local development administrator user

config/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
os.path.join(BASE_DIR, "pythonsd", "static"),
112112
# Only available after running `npm install`
113113
os.path.join(BASE_DIR, "node_modules/htmx.org/dist"),
114+
os.path.join(BASE_DIR, "node_modules/hyperscript.org/dist"),
114115
]
115116

116117
STORAGES = {

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
},
2424
"homepage": "https://github.com/pythonsd/pythonsd-django#readme",
2525
"dependencies": {
26-
"htmx.org": "^1.9.12"
26+
"htmx.org": "^1.9.12",
27+
"hyperscript.org": "^0.9.12"
2728
},
2829
"devDependencies": {
2930
"tailwindcss": "^3.4.3"

0 commit comments

Comments
 (0)