Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vite)!: svelte-scoped automatic compilation #1692

Merged
merged 65 commits into from Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
12f991f
update sveltekit example to @sveltejs/kit@1.0.0-next.506 (release can…
jacob-8 Oct 1, 2022
9515eeb
add sveltekit-rc readme
jacob-8 Oct 1, 2022
88a830b
remove unused sveltekit demo packages
jacob-8 Oct 1, 2022
f590538
remove -rc suffix to preserve sveltekit example links
jacob-8 Oct 1, 2022
bc48c5d
remove unused code
jacob-8 Oct 1, 2022
139a30a
add svelte-scoped sveltekit example
jacob-8 Oct 1, 2022
e0718dd
fix svelte-scoped breaking svelteExtractor because it doesn't pass on…
jacob-8 Oct 1, 2022
88861b4
make it possible to place preflights and safelist exactly where desired
jacob-8 Oct 1, 2022
41de467
separate logo class from logo variable
jacob-8 Oct 1, 2022
9f3327f
remove unused shortcuts
jacob-8 Oct 1, 2022
e6ffd03
fix: enable using svelte-scoped mode with svelteExtractor
jacob-8 Oct 1, 2022
68033cb
docs: add instructions on how to use uno:safelist uno:preflights in s…
jacob-8 Oct 1, 2022
cc43aad
illustrate that transformerCompileClass doesn't work in svelte-scoped…
jacob-8 Oct 1, 2022
0c868cd
add empty unocss.config.ts to get UnoCss VSCode extension to work
jacob-8 Oct 3, 2022
59bc312
adding blank unocss.config.ts to other sveltekit example to enable VS…
jacob-8 Oct 3, 2022
d229e64
Merge branch 'main' into scoped-compilation
jacob-8 Oct 3, 2022
32b05e1
add basic svelte-scoped-compiled plugin shell before adding tests
jacob-8 Oct 3, 2022
eb73c0d
add initial test
jacob-8 Oct 3, 2022
25540ce
chore: update deps
antfu Oct 3, 2022
07d0661
generate once per component, support class: syntax
jacob-8 Oct 3, 2022
0104a9d
chore: lint
jacob-8 Oct 3, 2022
4e81ebf
Merge branch 'main' into scoped-compilation
jacob-8 Oct 3, 2022
fdf6657
update mode target to svelte-scoped-compiled
jacob-8 Oct 3, 2022
4751a2a
don't add classname if all classes are unknown
jacob-8 Oct 4, 2022
29f3a33
chore: cleanup, add notes for next steps
jacob-8 Oct 4, 2022
0626d97
Merge branch 'scoped-compilation' of https://github.com/jacob-8/unocs…
jacob-8 Oct 4, 2022
caf1be5
prep for adding :global() around generated class names
jacob-8 Oct 6, 2022
f9a95e8
add :global() around selectors
jacob-8 Oct 6, 2022
353f9de
:global() does not mess with @media queries
jacob-8 Oct 6, 2022
c7ec15b
add logo to tests
jacob-8 Oct 7, 2022
9fbe51a
does not erroneously place global around animate-bounce keyframe digits
jacob-8 Oct 7, 2022
2453b3a
handles class directive shorthand syntax
jacob-8 Oct 7, 2022
ff0e539
simplify transformSFC function to just accepting UnoGenerator and not…
jacob-8 Oct 7, 2022
395a3d4
add --at-apply and more complex usages to sveltekit-scoped example
jacob-8 Oct 7, 2022
d4931bc
export functions from svelte-scoped-compiled
jacob-8 Oct 7, 2022
e744405
update sveltekit-scoped example to more clearly show failings of prev…
jacob-8 Oct 7, 2022
4b7f24b
chore: clean up test titles, order, and add everything example
jacob-8 Oct 7, 2022
7bf79c0
handle backticks and single quotes
jacob-8 Oct 7, 2022
103d12b
refactor to prepare for handle classes inside inline conditionals
jacob-8 Oct 7, 2022
f9dd8c6
feat: handles classes in inline conditionals
jacob-8 Oct 7, 2022
e889c77
chore: clean up comments
jacob-8 Oct 7, 2022
e76ddb4
update svelte-scoped to refer to be new version of plugin
jacob-8 Oct 9, 2022
2d4c48f
refactor and reorganize svelte-scoped transformSFC into multiple parts
jacob-8 Oct 9, 2022
036e823
Merge branch 'main' into scoped-compilation
jacob-8 Oct 9, 2022
83cea3a
chore: update docs
jacob-8 Oct 9, 2022
0ac7ec1
Merge branch 'scoped-compilation' of https://github.com/jacob-8/unocs…
jacob-8 Oct 9, 2022
d43ed7b
add sourcemap handling to transformSvelteSFC
jacob-8 Oct 10, 2022
ea5e4a7
chore: lint fix
jacob-8 Oct 10, 2022
3202422
fix: import type SourceMap from @unocss/core
jacob-8 Oct 10, 2022
0979b01
fix build error by not importing SourceMap type from Rollup
jacob-8 Oct 10, 2022
56f86a4
remove unneeded package because @unocss/transformer-directives is alr…
jacob-8 Oct 10, 2022
5fd6585
add example vite config to svelte-scoped example
jacob-8 Oct 10, 2022
350e910
make hashes unique to each file
jacob-8 Oct 13, 2022
f901034
dont combine class names on dev for easier use of dev tools toggle de…
jacob-8 Oct 18, 2022
799fc41
fix: dev, only hash but not combine mode, handles classes that fail w…
jacob-8 Oct 18, 2022
aa0aaf6
docs: add prose and reset to svelte-scoped example
jacob-8 Oct 20, 2022
b5363a7
move dev hash to back half
jacob-8 Oct 20, 2022
20e97ef
fix: does not change shortcut names
jacob-8 Oct 20, 2022
85e95bb
docs: add complete svelte-scoped usage instructions to example projec…
jacob-8 Oct 21, 2022
562a925
docs: update sveltekit-scoped example
jacob-8 Oct 21, 2022
3879c09
docs: update sveltekit-scoped prose block to not clash with dark mode
jacob-8 Oct 21, 2022
c536da8
chore: format
antfu Oct 25, 2022
f495841
Merge branch 'main' into scoped-compilation
antfu Oct 25, 2022
965b70f
chore: typecheck
antfu Oct 25, 2022
3d828a0
Merge branch 'main' into scoped-compilation
antfu Oct 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -87,6 +87,7 @@
"nuxt-tsconfig-stub": "^0.0.2",
"pnpm": "7.13.2",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.8.0",
"react": "^18.2.0",
"rollup": "^2.79.1",
"semver": "^7.3.8",
Expand Down
1 change: 1 addition & 0 deletions packages/preset-icons/src/collections.json
@@ -0,0 +1 @@
["academicons","akar-icons","ant-design","arcticons","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","clarity","codicon","cryptocurrency","dashicons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","mi","mingcute","mono-icons","nimbus","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","subway","system-uicons","tabler","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"]
30 changes: 24 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.