Skip to content

Commit

Permalink
🚧 Element builder
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Sep 1, 2023
1 parent 7c98f90 commit 827252f
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 13 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"theme:run-ssr-preview": "npm run theme:ssr-build && php artisan inertia:start-ssr"
},
"devDependencies": {
"@erbelion/vite-plugin-laravel-purgecss": "^0.2.2",
"@headlessui/react": "^1.4.2",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
Expand Down
9 changes: 9 additions & 0 deletions public/jw-styles/juzaweb/build/assets/app-c29047c7.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions public/jw-styles/juzaweb/build/assets/app-f0432d59.css

This file was deleted.

2 changes: 1 addition & 1 deletion public/jw-styles/juzaweb/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"src": "resources/js/app.tsx"
},
"vendor/juzaweb/modules/resources/css/app.scss": {
"file": "assets/app-f0432d59.css",
"file": "assets/app-c29047c7.css",
"isEntry": true,
"src": "vendor/juzaweb/modules/resources/css/app.scss"
},
Expand Down
15 changes: 12 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
import { defineConfig } from 'vite';
import {defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';
import path from "path";
import purge from '@erbelion/vite-plugin-laravel-purgecss'

export default defineConfig({
plugins: [
laravel({
input: ['resources/js/app.tsx', 'vendor/juzaweb/modules/resources/css/app.scss'],
refresh: true,
}),
purge({
paths: [
'vendor/juzaweb/modules/resources/views/**/*.blade.php',
'vendor/juzaweb/modules/resources/js/**/*.tsx',
],
safelist: {
standard: [/fa-(.*)$/],
}
}),
react(),
],
build: {
Expand All @@ -18,11 +28,10 @@ export default defineConfig({
preserveSymlinks: true,
alias: {
'@': path.resolve(__dirname + '/vendor/juzaweb/modules/resources/js'),
'@plugins': path.resolve(__dirname + '/plugins'),
},
},
experimental: {
renderBuiltUrl(filename, { hostId, hostType, type }) {
renderBuiltUrl(filename, {hostId, hostType, type}) {
// if (type === 'public') {
// return 'https://www.domain.com/' + filename
// }
Expand Down
83 changes: 83 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,14 @@
resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz#d0fce5d07b0620caa282b5131c297bb60f9d87e6"
integrity sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==

"@erbelion/vite-plugin-laravel-purgecss@^0.2.2":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@erbelion/vite-plugin-laravel-purgecss/-/vite-plugin-laravel-purgecss-0.2.2.tgz#ccd8f56a4a37fec114f85cc930ec4ec9aace2d87"
integrity sha512-9PWg5P+XpiVcO4KeRImIxg4C5f/OeBofdTiOHzEUpK2IjQ65ncOdnnmCiv8pmumtVSQFfh8VbJ2JYK/KbNmPoA==
dependencies:
purgecss "^5.0.0"
vite "^4.3.9"

"@esbuild/[email protected]":
version "0.18.13"
resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.13.tgz#70ef455455654c7800c31ae55ae295d81712238c"
Expand Down Expand Up @@ -2970,6 +2978,13 @@ brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"

brace-expansion@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae"
integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==
dependencies:
balanced-match "^1.0.0"

braces@^3.0.2, braces@~3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
Expand Down Expand Up @@ -3425,6 +3440,11 @@ commander@^7.0.0, commander@^7.2.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7"
integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==

commander@^9.0.0:
version "9.5.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30"
integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==

commondir@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
Expand Down Expand Up @@ -4487,6 +4507,17 @@ glob@^7.1.3, glob@^7.2.0:
once "^1.3.0"
path-is-absolute "^1.0.0"

glob@^8.0.3:
version "8.1.0"
resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^5.0.1"
once "^1.3.0"

globals@^11.1.0:
version "11.12.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
Expand Down Expand Up @@ -5368,6 +5399,13 @@ minimatch@^3.0.2, minimatch@^3.1.1:
dependencies:
brace-expansion "^1.1.7"

minimatch@^5.0.1:
version "5.1.6"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
dependencies:
brace-expansion "^2.0.1"

minimist@^1.1.1, minimist@^1.2.0:
version "1.2.6"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
Expand Down Expand Up @@ -6052,6 +6090,14 @@ [email protected], postcss-selector-parser@^6.0.10, postcss-selecto
cssesc "^3.0.0"
util-deprecate "^1.0.2"

postcss-selector-parser@^6.0.7:
version "6.0.13"
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz#d05d8d76b1e8e173257ef9d60b706a8e5e99bf1b"
integrity sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==
dependencies:
cssesc "^3.0.0"
util-deprecate "^1.0.2"

postcss-svgo@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d"
Expand Down Expand Up @@ -6090,6 +6136,15 @@ postcss@^8.4.25:
picocolors "^1.0.0"
source-map-js "^1.0.2"

postcss@^8.4.27, postcss@^8.4.4:
version "8.4.29"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.29.tgz#33bc121cf3b3688d4ddef50be869b2a54185a1dd"
integrity sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==
dependencies:
nanoid "^3.3.6"
picocolors "^1.0.0"
source-map-js "^1.0.2"

prettier-plugin-tailwindcss@^0.1.13:
version "0.1.13"
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.13.tgz#ca1071361dc7e2ed5d95a2ee36825ce45f814942"
Expand Down Expand Up @@ -6164,6 +6219,16 @@ punycode@^2.1.0:
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==

purgecss@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-5.0.0.tgz#08526ba3fef95e42c54503ca59d3f2ee8d6e5189"
integrity sha512-RAnuxrGuVyLLTr8uMbKaxDRGWMgK5CCYDfRyUNNcaz5P3kGgD2b7ymQGYEyo2ST7Tl/ScwFgf5l3slKMxHSbrw==
dependencies:
commander "^9.0.0"
glob "^8.0.3"
postcss "^8.4.4"
postcss-selector-parser "^6.0.7"

[email protected]:
version "6.10.3"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz#d6cde1b2ffca87b5aa57889816c5f81535e22e8e"
Expand Down Expand Up @@ -6537,6 +6602,13 @@ rollup@^3.25.2:
optionalDependencies:
fsevents "~2.3.2"

rollup@^3.27.1:
version "3.28.1"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.28.1.tgz#fb44aa6d5e65c7e13fd5bcfff266d0c4ea9ba433"
integrity sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==
optionalDependencies:
fsevents "~2.3.2"

run-parallel@^1.1.9:
version "1.2.0"
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
Expand Down Expand Up @@ -7398,6 +7470,17 @@ vite@^4.0.0:
optionalDependencies:
fsevents "~2.3.2"

vite@^4.3.9:
version "4.4.9"
resolved "https://registry.yarnpkg.com/vite/-/vite-4.4.9.tgz#1402423f1a2f8d66fd8d15e351127c7236d29d3d"
integrity sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==
dependencies:
esbuild "^0.18.10"
postcss "^8.4.27"
rollup "^3.27.1"
optionalDependencies:
fsevents "~2.3.2"

vm-browserify@^1.0.1:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
Expand Down

0 comments on commit 827252f

Please sign in to comment.