Skip to content

Commit

Permalink
fix: tailwind integration (#4640)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored Jun 29, 2023
1 parent 8ecf751 commit 71edece
Show file tree
Hide file tree
Showing 20 changed files with 284 additions and 383 deletions.
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
**/*.log
**/.DS_Store
*.
.vscode/settings.json
.history
.yarn
.yarnrc.yml
Expand All @@ -20,7 +19,6 @@ output
rollup.config.js
build
.cache
.vscode
.rollup.cache
tsconfig.tsbuildinfo
packages/docs/api/**/*
Expand Down
13 changes: 11 additions & 2 deletions .vscode/extenstions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "unifiedjs.vscode-mdx", "esbenp.prettier-vscode", "ms-playwright.playwright", "rust-lang.rust-analyzer", "ms-azuretools.vscode-docker", "manucorporat.vermoji", "vadimcn.vscode-lldb"],
"unwantedRecommendations": []
"recommendations": [
"dbaeumer.vscode-eslint",
"unifiedjs.vscode-mdx",
"esbenp.prettier-vscode",
"ms-playwright.playwright",
"rust-lang.rust-analyzer",
"ms-azuretools.vscode-docker",
"manucorporat.vermoji",
"vadimcn.vscode-lldb"
],
"unwantedRecommendations": []
}
14 changes: 7 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceFolder}/packages/docs",
"program": "${workspaceFolder}/packages/docs/node_modules/vite/bin/vite.js",
"args": ["--mode", "ssr", "--force"],
"args": ["--mode", "ssr", "--force"]
},
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"cwd": "${workspaceFolder}",
"args": ["--runInBand", "--watchAll=false"]
},
},
{
"name": "uvu Current File",
"type": "node",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/node_modules/tsm/bin.js",
"args": [
"${workspaceFolder}/node_modules/uvu/bin.js",
"${fileDirname}",
"${fileBasename}",
"--tsmconfig",
"${workspaceFolder}/node_modules/uvu/bin.js",
"${fileDirname}",
"${fileBasename}",
"--tsmconfig",
"${workspaceFolder}/tsm.cjs"
],
"console": "integratedTerminal"
Expand Down
230 changes: 97 additions & 133 deletions .vscode/qwik.code-snippets
Original file line number Diff line number Diff line change
@@ -1,134 +1,98 @@
{
"Qwik component": {
"scope": "typescriptreact",
"prefix": "q:component w/props",
"description": "Qwik component w/ props",
"body": [
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}Props {",
" $2",
"}",
"",
"export const $1 = component$((props: $1Props) => {",
" const state = useStore({",
" $3",
" });",
" ",
" return <${4:button} on${5:Click}$={(${6:e}) => {$7}}>$8</${4}>",
"});"
]
},
"Qwik component (simple)": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:component simple",
"description": "Simple Qwik component",
"body": [
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}} = component$(() => {",
" return <${2:button}>$4</$2>",
"});"
]
},
"Qwik state": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useStore$",
"description": "useStore() declaration",
"body": [
"const ${1:state} = useStore({",
" $2",
"});",
"$0"
]
},
"Qwik signal": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useSignal",
"description": "useSignal() declaration",
"body": [
"const ${1:signal} = useSignal($2);",
"$0"
]
},
"$ hook": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:$",
"description": "$() function hook",
"body": [
"$(() => {",
" $0",
"});",
""
]
},
"useVisibleTask": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useVisibleTask",
"description": "useVisibleTask$() function hook",
"body": [
"useVisibleTask$(({ track }) => {",
" $0",
"});",
""
]
},
"useTask": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useTask",
"description": "useTask$() function hook",
"body": [
"useTask$(({ track }) => {",
" track(() => $1);",
" $0",
"});",
""
]
},
"useResource": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useResource$",
"description": "useResource$() declaration",
"body": [
"const $1 = useResource$(({ track, previous, cleanup }) => {",
" $0",
"});",
""
]
},
"useOn": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useOn",
"description": "useOn declaration",
"body": [
"useOn(",
"'$1',",
"$((event) => {",
" const { $3 } = event as $2;",
" })",
");"
]
},
"useOnDocument": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useOnDocument",
"description": "useOnDocument declaration",
"body": [
"useOnDocument(",
"'$1',",
"$((event) => {",
" const { $3 } = event as $2;",
" })",
");"
]
},
"useOnWindow": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useOnWindow",
"description": "useOnWindow declaration",
"body": [
"useOnWindow(",
"'$1',",
"$((event) => {",
" const { $3 } = event as $2;",
" })",
");"
]
}
}
"Qwik component": {
"scope": "typescriptreact",
"prefix": "q:component w/props",
"description": "Qwik component w/ props",
"body": [
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}Props {",
" $2",
"}",
"",
"export const $1 = component$((props: $1Props) => {",
" const state = useStore({",
" $3",
" });",
" ",
" return <${4:button} on${5:Click}$={(${6:e}) => {$7}}>$8</${4}>",
"});"
]
},
"Qwik component (simple)": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:component simple",
"description": "Simple Qwik component",
"body": [
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}} = component$(() => {",
" return <${2:button}>$4</$2>",
"});"
]
},
"Qwik state": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useStore$",
"description": "useStore() declaration",
"body": ["const ${1:state} = useStore({", " $2", "});", "$0"]
},
"Qwik signal": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useSignal",
"description": "useSignal() declaration",
"body": ["const ${1:signal} = useSignal($2);", "$0"]
},
"$ hook": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:$",
"description": "$() function hook",
"body": ["$(() => {", " $0", "});", ""]
},
"useVisibleTask": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useVisibleTask",
"description": "useVisibleTask$() function hook",
"body": ["useVisibleTask$(({ track }) => {", " $0", "});", ""]
},
"useTask": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useTask",
"description": "useTask$() function hook",
"body": ["useTask$(({ track }) => {", " track(() => $1);", " $0", "});", ""]
},
"useResource": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useResource$",
"description": "useResource$() declaration",
"body": ["const $1 = useResource$(({ track, previous, cleanup }) => {", " $0", "});", ""]
},
"useOn": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useOn",
"description": "useOn declaration",
"body": ["useOn(", "'$1',", "$((event) => {", " const { $3 } = event as $2;", " })", ");"]
},
"useOnDocument": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useOnDocument",
"description": "useOnDocument declaration",
"body": [
"useOnDocument(",
"'$1',",
"$((event) => {",
" const { $3 } = event as $2;",
" })",
");"
]
},
"useOnWindow": {
"scope": "javascriptreact,typescriptreact",
"prefix": "q:useOnWindow",
"description": "useOnWindow declaration",
"body": [
"useOnWindow(",
"'$1',",
"$((event) => {",
" const { $3 } = event as $2;",
" })",
");"
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "qwik-monorepo",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"build": "tsm scripts/index.ts --tsc --build --qwikcity --qwiklabs --api --platform-binding-wasm-copy",
"build.vite": "tsm scripts/index.ts --tsc --build --qwikcity --qwiklabs --platform-binding-wasm-copy",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-qwik/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-qwik",
"version": "1.2.0",
"version": "1.2.1",
"description": "Interactive CLI for create Qwik projects and adding features.",
"bin": "./create-qwik.cjs",
"main": "./index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-qwik/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-qwik",
"version": "1.2.0",
"version": "1.2.1",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"main": "index.js",
"author": "Builder Team",
Expand Down
4 changes: 2 additions & 2 deletions packages/insights/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/vite/bin/vite.js",
"args": ["--mode", "ssr", "--force"],
},
"args": ["--mode", "ssr", "--force"]
}
]
}
24 changes: 6 additions & 18 deletions packages/insights/.vscode/qwik-city.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,19 @@
"scope": "javascriptreact,typescriptreact",
"prefix": "qonRequest",
"description": "onRequest function for a route index",
"body": [
"export const onRequest: RequestHandler = (request) => {",
" $0",
"};"
]
"body": ["export const onRequest: RequestHandler = (request) => {", " $0", "};"]
},
"loader$": {
"scope": "javascriptreact,typescriptreact",
"prefix": "qloader$",
"description": "loader$()",
"body": [
"export const $1 = routeLoader$(() => {",
" $0",
"});"
]
"body": ["export const $1 = routeLoader$(() => {", " $0", "});"]
},
"action$": {
"scope": "javascriptreact,typescriptreact",
"prefix": "qaction$",
"description": "action$()",
"body": [
"export const $1 = routeAction$((data) => {",
" $0",
"});"
]
"body": ["export const $1 = routeAction$((data) => {", " $0", "});"]
},
"Full Page": {
"scope": "javascriptreact,typescriptreact",
Expand All @@ -36,9 +24,9 @@
"body": [
"import { component$ } from '@builder.io/qwik';",
"",
"export default component$(() => {",
" $0",
"});"
"export default component$(() => {",
" $0",
"});"
]
}
}
Loading

0 comments on commit 71edece

Please sign in to comment.