mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
23 lines
1.2 KiB
JSON
23 lines
1.2 KiB
JSON
|
{
|
||
|
"name": "gradio-website",
|
||
|
"scripts": {
|
||
|
"build:setup": "mkdir -p dist generated",
|
||
|
"build:html": "python render_html.py && html-minifier --input-dir generated --output-dir dist --file-ext html --remove-comments --collapse-whitespace --minify-js true",
|
||
|
"build:css": "postcss src/style.css -o dist/style.css && python replace_style_names.py",
|
||
|
"build:assets": "cp -R src/assets/. dist/assets/",
|
||
|
"build": "npm run build:setup && npm run build:html && npm run build:css && npm run build:assets",
|
||
|
"start": "npm run build && chokidar 'src/**' '../guides/*' -c 'echo '{path}' && if [[ {path} =~ ^src/.*.html ]]; then npm run build:html && npm run build:css; elif [[ {path} =~ ^../guides/.* ]]; then npm run build:html && npm ; elif [[ {path} =~ ^src/.*.css ]]; then npm run build:html && npm run build:css; elif [[ {path} =~ ^src/assets/.* ]]; then npm run build:assets; fi; echo 0 ' "
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"@fullhuman/postcss-purgecss": "^4.0.3",
|
||
|
"@tailwindcss/typography": "^0.4.1",
|
||
|
"autoprefixer": "^10.4.0",
|
||
|
"chokidar-cli": "^3.0.0",
|
||
|
"cssnano": "^5.0.8",
|
||
|
"html-minifier": "^4.0.0",
|
||
|
"postcss-cli": "^9.0.1",
|
||
|
"postcss-hash": "^3.0.0",
|
||
|
"tailwindcss": "^2.2.19"
|
||
|
}
|
||
|
}
|