From ece00d51b2c745624712317395d2d554867ab3f5 Mon Sep 17 00:00:00 2001 From: "Masaki.Nakano" Date: Thu, 19 Dec 2024 02:49:17 +0900 Subject: [PATCH] remove qwik dir --- packages/qwik-web/.eslintignore | 38 ------- packages/qwik-web/.eslintrc.cjs | 42 ------- packages/qwik-web/.gitignore | 41 ------- packages/qwik-web/.prettierignore | 37 ------ packages/qwik-web/.vscode/launch.json | 24 ---- .../qwik-web/.vscode/qwik-city.code-snippets | 36 ------ packages/qwik-web/.vscode/qwik.code-snippets | 78 ------------- packages/qwik-web/README.md | 65 ----------- packages/qwik-web/package.json | 44 -------- packages/qwik-web/public/favicon.svg | 1 - packages/qwik-web/public/manifest.json | 9 -- packages/qwik-web/public/robots.txt | 0 packages/qwik-web/qwik.env.d.ts | 4 - .../components/router-head/router-head.tsx | 48 -------- packages/qwik-web/src/entry.dev.tsx | 17 --- packages/qwik-web/src/entry.preview.tsx | 21 ---- packages/qwik-web/src/entry.ssr.tsx | 33 ------ packages/qwik-web/src/global.css | 0 packages/qwik-web/src/root.tsx | 38 ------- packages/qwik-web/src/routes/index.tsx | 25 ----- packages/qwik-web/src/routes/layout.tsx | 17 --- .../qwik-web/src/routes/service-worker.ts | 18 --- packages/qwik-web/tsconfig.json | 25 ----- packages/qwik-web/vite.config.ts | 106 ------------------ 24 files changed, 767 deletions(-) delete mode 100644 packages/qwik-web/.eslintignore delete mode 100644 packages/qwik-web/.eslintrc.cjs delete mode 100644 packages/qwik-web/.gitignore delete mode 100644 packages/qwik-web/.prettierignore delete mode 100644 packages/qwik-web/.vscode/launch.json delete mode 100644 packages/qwik-web/.vscode/qwik-city.code-snippets delete mode 100644 packages/qwik-web/.vscode/qwik.code-snippets delete mode 100644 packages/qwik-web/README.md delete mode 100644 packages/qwik-web/package.json delete mode 100644 packages/qwik-web/public/favicon.svg delete mode 100644 packages/qwik-web/public/manifest.json delete mode 100644 packages/qwik-web/public/robots.txt delete mode 100644 packages/qwik-web/qwik.env.d.ts delete mode 100644 packages/qwik-web/src/components/router-head/router-head.tsx delete mode 100644 packages/qwik-web/src/entry.dev.tsx delete mode 100644 packages/qwik-web/src/entry.preview.tsx delete mode 100644 packages/qwik-web/src/entry.ssr.tsx delete mode 100644 packages/qwik-web/src/global.css delete mode 100644 packages/qwik-web/src/root.tsx delete mode 100644 packages/qwik-web/src/routes/index.tsx delete mode 100644 packages/qwik-web/src/routes/layout.tsx delete mode 100644 packages/qwik-web/src/routes/service-worker.ts delete mode 100644 packages/qwik-web/tsconfig.json delete mode 100644 packages/qwik-web/vite.config.ts diff --git a/packages/qwik-web/.eslintignore b/packages/qwik-web/.eslintignore deleted file mode 100644 index 1acecc10..00000000 --- a/packages/qwik-web/.eslintignore +++ /dev/null @@ -1,38 +0,0 @@ -**/*.log -**/.DS_Store -*. -.vscode/settings.json -.history -.yarn -bazel-* -bazel-bin -bazel-out -bazel-qwik -bazel-testlogs -dist -dist-dev -lib -lib-types -etc -external -node_modules -temp -tsc-out -tsdoc-metadata.json -target -output -rollup.config.js -build -.cache -.vscode -.rollup.cache -dist -tsconfig.tsbuildinfo -vite.config.ts -*.spec.tsx -*.spec.ts -.netlify -pnpm-lock.yaml -package-lock.json -yarn.lock -server diff --git a/packages/qwik-web/.eslintrc.cjs b/packages/qwik-web/.eslintrc.cjs deleted file mode 100644 index 70dc5d03..00000000 --- a/packages/qwik-web/.eslintrc.cjs +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = { - root: true, - env: { - browser: true, - es2021: true, - node: true, - }, - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:qwik/recommended", - ], - parser: "@typescript-eslint/parser", - parserOptions: { - tsconfigRootDir: __dirname, - project: ["./tsconfig.json"], - ecmaVersion: 2021, - sourceType: "module", - ecmaFeatures: { - jsx: true, - }, - }, - plugins: ["@typescript-eslint"], - rules: { - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/no-inferrable-types": "off", - "@typescript-eslint/no-non-null-assertion": "off", - "@typescript-eslint/no-empty-interface": "off", - "@typescript-eslint/no-namespace": "off", - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-this-alias": "off", - "@typescript-eslint/ban-types": "off", - "@typescript-eslint/ban-ts-comment": "off", - "prefer-spread": "off", - "no-case-declarations": "off", - "no-console": "off", - "@typescript-eslint/no-unused-vars": ["error"], - "@typescript-eslint/consistent-type-imports": "warn", - "@typescript-eslint/no-unnecessary-condition": "warn", - }, -}; diff --git a/packages/qwik-web/.gitignore b/packages/qwik-web/.gitignore deleted file mode 100644 index 48dce735..00000000 --- a/packages/qwik-web/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# Build -/dist -/lib -/lib-types -/server - -# Development -node_modules -*.local - -# Cache -.cache -.mf -.rollup.cache -tsconfig.tsbuildinfo - -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -# Editor -.vscode/* -!.vscode/launch.json -!.vscode/*.code-snippets - -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# Yarn -.yarn/* -!.yarn/releases diff --git a/packages/qwik-web/.prettierignore b/packages/qwik-web/.prettierignore deleted file mode 100644 index b62a9681..00000000 --- a/packages/qwik-web/.prettierignore +++ /dev/null @@ -1,37 +0,0 @@ -**/*.log -**/.DS_Store -*. -.vscode/settings.json -.history -.yarn -bazel-* -bazel-bin -bazel-out -bazel-qwik -bazel-testlogs -dist -dist-dev -lib -lib-types -etc -external -node_modules -temp -tsc-out -tsdoc-metadata.json -target -output -rollup.config.js -build -.cache -.vscode -.rollup.cache -tsconfig.tsbuildinfo -vite.config.ts -*.spec.tsx -*.spec.ts -.netlify -pnpm-lock.yaml -package-lock.json -yarn.lock -server diff --git a/packages/qwik-web/.vscode/launch.json b/packages/qwik-web/.vscode/launch.json deleted file mode 100644 index e684cc84..00000000 --- a/packages/qwik-web/.vscode/launch.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch Chrome", - "request": "launch", - "type": "chrome", - "url": "http://localhost:5173", - "webRoot": "${workspaceFolder}" - }, - { - "type": "node", - "name": "dev.debug", - "request": "launch", - "skipFiles": ["/**"], - "cwd": "${workspaceFolder}", - "program": "${workspaceFolder}/node_modules/vite/bin/vite.js", - "args": ["--mode", "ssr", "--force"] - } - ] -} diff --git a/packages/qwik-web/.vscode/qwik-city.code-snippets b/packages/qwik-web/.vscode/qwik-city.code-snippets deleted file mode 100644 index 878fcf68..00000000 --- a/packages/qwik-web/.vscode/qwik-city.code-snippets +++ /dev/null @@ -1,36 +0,0 @@ -{ - "onRequest": { - "scope": "javascriptreact,typescriptreact", - "prefix": "qonRequest", - "description": "onRequest function for a route index", - "body": [ - "export const onRequest: RequestHandler = (request) => {", - " $0", - "};", - ], - }, - "loader$": { - "scope": "javascriptreact,typescriptreact", - "prefix": "qloader$", - "description": "loader$()", - "body": ["export const $1 = routeLoader$(() => {", " $0", "});"], - }, - "action$": { - "scope": "javascriptreact,typescriptreact", - "prefix": "qaction$", - "description": "action$()", - "body": ["export const $1 = routeAction$((data) => {", " $0", "});"], - }, - "Full Page": { - "scope": "javascriptreact,typescriptreact", - "prefix": "qpage", - "description": "Simple page component", - "body": [ - "import { component$ } from '@builder.io/qwik';", - "", - "export default component$(() => {", - " $0", - "});", - ], - }, -} diff --git a/packages/qwik-web/.vscode/qwik.code-snippets b/packages/qwik-web/.vscode/qwik.code-snippets deleted file mode 100644 index 62edc825..00000000 --- a/packages/qwik-web/.vscode/qwik.code-snippets +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Qwik component (simple)": { - "scope": "javascriptreact,typescriptreact", - "prefix": "qcomponent$", - "description": "Simple Qwik component", - "body": [ - "export const ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} = component$(() => {", - " return <${2:div}>$4", - "});", - ], - }, - "Qwik component (props)": { - "scope": "typescriptreact", - "prefix": "qcomponent$ + props", - "description": "Qwik component w/ props", - "body": [ - "export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Props {", - " $2", - "}", - "", - "export const $1 = component$<$1Props>((props) => {", - " const ${2:count} = useSignal(0);", - " return (", - " <${3:div} on${4:Click}$={(ev) => {$5}}>", - " $6", - " ", - " );", - "});", - ], - }, - "Qwik signal": { - "scope": "javascriptreact,typescriptreact", - "prefix": "quseSignal", - "description": "useSignal() declaration", - "body": ["const ${1:foo} = useSignal($2);", "$0"], - }, - "Qwik store": { - "scope": "javascriptreact,typescriptreact", - "prefix": "quseStore", - "description": "useStore() declaration", - "body": ["const ${1:state} = useStore({", " $2", "});", "$0"], - }, - "$ hook": { - "scope": "javascriptreact,typescriptreact", - "prefix": "q$", - "description": "$() function hook", - "body": ["$(() => {", " $0", "});", ""], - }, - "useVisibleTask": { - "scope": "javascriptreact,typescriptreact", - "prefix": "quseVisibleTask", - "description": "useVisibleTask$() function hook", - "body": ["useVisibleTask$(({ track }) => {", " $0", "});", ""], - }, - "useTask": { - "scope": "javascriptreact,typescriptreact", - "prefix": "quseTask$", - "description": "useTask$() function hook", - "body": [ - "useTask$(({ track }) => {", - " track(() => $1);", - " $0", - "});", - "", - ], - }, - "useResource": { - "scope": "javascriptreact,typescriptreact", - "prefix": "quseResource$", - "description": "useResource$() declaration", - "body": [ - "const $1 = useResource$(({ track, cleanup }) => {", - " $0", - "});", - "", - ], - }, -} diff --git a/packages/qwik-web/README.md b/packages/qwik-web/README.md deleted file mode 100644 index 482a769f..00000000 --- a/packages/qwik-web/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# Qwik City App ⚡️ - -- [Qwik Docs](https://qwik.dev/) -- [Discord](https://qwik.dev/chat) -- [Qwik GitHub](https://github.com/QwikDev/qwik) -- [@QwikDev](https://twitter.com/QwikDev) -- [Vite](https://vitejs.dev/) - ---- - -## Project Structure - -This project is using Qwik with [QwikCity](https://qwik.dev/qwikcity/overview/). QwikCity is just an extra set of tools on top of Qwik to make it easier to build a full site, including directory-based routing, layouts, and more. - -Inside your project, you'll see the following directory structure: - -``` -├── public/ -│ └── ... -└── src/ - ├── components/ - │ └── ... - └── routes/ - └── ... -``` - -- `src/routes`: Provides the directory-based routing, which can include a hierarchy of `layout.tsx` layout files, and an `index.tsx` file as the page. Additionally, `index.ts` files are endpoints. Please see the [routing docs](https://qwik.dev/qwikcity/routing/overview/) for more info. - -- `src/components`: Recommended directory for components. - -- `public`: Any static assets, like images, can be placed in the public directory. Please see the [Vite public directory](https://vitejs.dev/guide/assets.html#the-public-directory) for more info. - -## Add Integrations and deployment - -Use the `bun qwik add` command to add additional integrations. Some examples of integrations includes: Cloudflare, Netlify or Express Server, and the [Static Site Generator (SSG)](https://qwik.dev/qwikcity/guides/static-site-generation/). - -```shell -bun qwik add # or `bun qwik add` -``` - -## Development - -Development mode uses [Vite's development server](https://vitejs.dev/). The `dev` command will server-side render (SSR) the output during development. - -```shell -npm start # or `bun start` -``` - -> Note: during dev mode, Vite may request a significant number of `.js` files. This does not represent a Qwik production build. - -## Preview - -The preview command will create a production build of the client modules, a production build of `src/entry.preview.tsx`, and run a local server. The preview server is only for convenience to preview a production build locally and should not be used as a production server. - -```shell -bun preview # or `bun preview` -``` - -## Production - -The production build will generate client and server modules by running both client and server build commands. The build command will use Typescript to run a type check on the source code. - -```shell -bun build # or `bun build` -``` diff --git a/packages/qwik-web/package.json b/packages/qwik-web/package.json deleted file mode 100644 index c08c011c..00000000 --- a/packages/qwik-web/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "my-qwik-empty-starter", - "description": "Blank project with routing included", - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "engines-annotation": "Mostly required by sharp which needs a Node-API v9 compatible runtime", - "private": true, - "trustedDependencies": [ - "sharp" - ], - "trustedDependencies-annotation": "Needed for bun to allow running install scripts", - "type": "module", - "scripts": { - "build": "qwik build", - "build.client": "vite build", - "build.preview": "vite build --ssr src/entry.preview.tsx", - "build.types": "tsc --incremental --noEmit", - "deploy": "echo 'Run \"npm run qwik add\" to install a server adapter'", - "dev": "vite --mode ssr", - "dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force", - "fmt": "prettier --write .", - "fmt.check": "prettier --check .", - "lint": "eslint \"src/**/*.ts*\"", - "preview": "qwik build preview && vite preview --open", - "start": "vite --open --mode ssr", - "qwik": "qwik" - }, - "devDependencies": { - "@builder.io/qwik": "^1.11.0", - "@builder.io/qwik-city": "^1.9.1", - "@types/eslint": "^9.6.1", - "@types/node": "^22.10.2", - "@typescript-eslint/eslint-plugin": "^8.18.1", - "@typescript-eslint/parser": "^8.18.1", - "eslint": "^9.17.0", - "eslint-plugin-qwik": "^1.11.0", - "prettier": "^3.4.2", - "typescript": "5.7.2", - "undici": "*", - "vite": "^5.4.11", - "vite-tsconfig-paths": "^5.1.4" - } -} diff --git a/packages/qwik-web/public/favicon.svg b/packages/qwik-web/public/favicon.svg deleted file mode 100644 index 0ded7c13..00000000 --- a/packages/qwik-web/public/favicon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/qwik-web/public/manifest.json b/packages/qwik-web/public/manifest.json deleted file mode 100644 index c18e75f7..00000000 --- a/packages/qwik-web/public/manifest.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/web-manifest-combined.json", - "name": "qwik-project-name", - "short_name": "Welcome to Qwik", - "start_url": ".", - "display": "standalone", - "background_color": "#fff", - "description": "A Qwik project app." -} diff --git a/packages/qwik-web/public/robots.txt b/packages/qwik-web/public/robots.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/qwik-web/qwik.env.d.ts b/packages/qwik-web/qwik.env.d.ts deleted file mode 100644 index 25af92b9..00000000 --- a/packages/qwik-web/qwik.env.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file can be used to add references for global types like `vite/client`. - -// Add global `vite/client` types. For more info, see: https://vitejs.dev/guide/features#client-types -/// diff --git a/packages/qwik-web/src/components/router-head/router-head.tsx b/packages/qwik-web/src/components/router-head/router-head.tsx deleted file mode 100644 index da5b68fa..00000000 --- a/packages/qwik-web/src/components/router-head/router-head.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { component$ } from "@builder.io/qwik"; -import { useDocumentHead, useLocation } from "@builder.io/qwik-city"; - -/** - * The RouterHead component is placed inside of the document `` element. - */ -export const RouterHead = component$(() => { - const head = useDocumentHead(); - const loc = useLocation(); - - return ( - <> - {head.title} - - - - - - {head.meta.map((m) => ( - - ))} - - {head.links.map((l) => ( - - ))} - - {head.styles.map((s) => ( -