-
Notifications
You must be signed in to change notification settings - Fork 419
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 2.88 KB
/
package.json
File metadata and controls
57 lines (57 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "django-material",
"version": "0.1.0",
"description": "Material Design for Django",
"scripts": {
"build:css": "tailwindcss -i ./material/assets/index.css -o material/static/material/css/material.css --minify",
"watch:css": "tailwindcss -i material/assets/index.css -o material/static/material/css/material.css --watch --minify",
"build:js": "esbuild material/templates/cotton/index.js --bundle --format=iife --outfile=material/static/material/js/material.js --minify --sourcemap",
"watch:js": "esbuild material/templates/cotton/index.js --bundle --format=iife --outfile=material/static/material/js/material.js --watch --sourcemap",
"server": "uv run manage.py runserver 0.0.0.0:8000",
"dev": "npm-run-all2 --parallel --print-label watch:css watch:js server",
"test": "uv run python manage.py test",
"lint": "pyright material && uv run ruff check material",
"lint:js": "eslint --config eslint.config.mjs material/templates/cotton/**/*.js",
"format": "uv run ruff format material demo tests && uv run ruff check material demo tests --fix && uv run black .",
"format:js": "prettier --write 'material/templates/cotton/**/*.js'",
"update:venv": "uv sync --group dev",
"update:js": "jq -c '.copyFiles[]' package.json | while read file; do src=$(echo $file | jq -r '.src'); dest=$(echo $file | jq -r '.dest'); echo \"Copying $src to $dest\"; cp \"$src\" \"$dest\"; done",
"update:fonts": "npx get-google-fonts --input=\"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,600,700,900&display=swap\" --output=\"material/static/material/fonts/roboto/\" && npx get-google-fonts --input=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded&display=swap\" --output=\"material/static/material/fonts/material-symbols/\"",
"provision": "uv run ansible-playbook -i material.viewflow.io, deploy.yml -u root --ask-vault-pass",
"deploy": "uv run ansible-playbook -i material.viewflow.io, deploy.yml -u root --tags=update",
"edit-env": "uv run ansible-vault edit config/env.enc",
"release": "npm run build:css && npm run build:js && uv run python -m build && uv run python -m twine upload dist/*"
},
"devDependencies": {
"@tailwindcss/cli": "^4.0.14",
"esbuild": "^0.25.2",
"eslint": "^9.24.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-prettier": "^5.2.6",
"globals": "^16.0.0",
"npm-run-all2": "^6.2.0",
"prettier": "^3.5.3",
"pyright": "^1.1.399",
"tailwindcss": "^4.0.14"
},
"dependencies": {
"unpoly": "^3.10.2"
},
"copyFiles": [
{
"src": "node_modules/unpoly/unpoly.js",
"dest": "material/static/material/js/"
},
{
"src": "node_modules/unpoly/unpoly.min.css",
"dest": "material/static/material/css/"
}
],
"prettier": {
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"trailingComma": "es5"
}
}