-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
[STAGE-2] incomplete implementationRemove this label when implementation is completeRemove this label when implementation is complete[STAGE-2] not fully covered by tests yetRemove this label when tests are verified to cover the implementationRemove this label when tests are verified to cover the implementation[STAGE-2] unresolved discussions leftRemove this label when all critical discussions are resolved on the issueRemove this label when all critical discussions are resolved on the issue[STAGE-3] docs changes not added yetRemove this label when the necessary documentation for the feature / change is addedRemove this label when the necessary documentation for the feature / change is added[STAGE-3] missing 2 reviews for RFC PRsRemove this label when at least 2 core team members reviewed and approved the RFC implementationRemove this label when at least 2 core team members reviewed and approved the RFC implementation
Description
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
thasmo
Metadata
Metadata
Assignees
Labels
[STAGE-2] incomplete implementationRemove this label when implementation is completeRemove this label when implementation is complete[STAGE-2] not fully covered by tests yetRemove this label when tests are verified to cover the implementationRemove this label when tests are verified to cover the implementation[STAGE-2] unresolved discussions leftRemove this label when all critical discussions are resolved on the issueRemove this label when all critical discussions are resolved on the issue[STAGE-3] docs changes not added yetRemove this label when the necessary documentation for the feature / change is addedRemove this label when the necessary documentation for the feature / change is added[STAGE-3] missing 2 reviews for RFC PRsRemove this label when at least 2 core team members reviewed and approved the RFC implementationRemove this label when at least 2 core team members reviewed and approved the RFC implementation