[✨] Add ability to set build.client, build.types and build.preview command #29
Replies: 4 comments
-
|
Yes sounds good. PR welcome, the code is under qwik/src/cli/ |
Beta Was this translation helpful? Give feedback.
-
|
It would be nice if build scripts can be run independently so it can be even more flexible; i.e. other tools (e.g. turborepo, etc.) can be used to control the build cycle.
|
Beta Was this translation helpful? Give feedback.
-
|
I made a temporary solution that allows you to set the command name: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @azat-io ! This proposal will be reviewed by the team during our monthly review. Can you please update the description with your proposed solution and public API changes? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
Hello!
I have a project that contains some library code, and I also have documentation for the project stored in the same repository.
I use the "build" command to build the library, not the documentation.
Currently, my scripts look like this:
{ "scripts": { "docs:dev": "vite --open --mode ssr --config vite.config.docs.ts", "docs:build": "qwik build", "build.client": "vite build --config vite.config.docs.ts", "build.types": "tsc --incremental --noEmit", "docs:debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force", "docs:preview": "qwik build preview && vite preview --open --config vite.config.docs.ts", "test:format": "prettier --check \"**/*.{js,ts,jsx,tsx,css,json,md,yml}\"", "test:css": "stylelint **/*.css", "test:js": "eslint \"**/*.{js,ts,tsx}\"", "test:types": "tsc --noEmit --pretty", "test:unit": "vitest --run --coverage", "test": "pnpm run /^test:/" } }Thus, anything that refers to documentation in scripts starts with the prefix "docs:".
I would like to be able to define script names for the client build and types myself.
Describe the solution you'd like
{ "docs:build": "qwik build --client-script docs:build:client --types-script docs:build:types", "docs:build:client": "vite build --config vite.config.docs.ts", "docs:build:types": "tsc --incremental --noEmit", "docs:preview": "qwik build preview --client-script docs:build:client --types-script docs:build:types --preview-script docs:build:preview && vite preview --open --config vite.config.docs.ts", "docs:build:preview": "vite build --ssr src/entry.preview.tsx", }Describe alternatives you've considered
N/A.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions