-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dsod
committed
Feb 7, 2024
1 parent
7ddda08
commit c33d42a
Showing
22 changed files
with
56 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
{ | ||
"type": "module", | ||
"scripts": { | ||
"build": "qwik build", | ||
"build.lib": "vite build --mode lib", | ||
"build.types": "tsc --emitDeclarationOnly", | ||
"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*\"", | ||
"release": "np", | ||
"start": "vite --open --mode ssr", | ||
"test": "echo \"No test specified\" && exit 0", | ||
"qwik": "qwik" | ||
} | ||
"type": "module" | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,16 @@ | ||
import { qwikVite } from "@builder.io/qwik/optimizer"; | ||
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; | ||
import { defineConfig } from "vite"; | ||
import pkg from "./package.json"; | ||
|
||
type Packages = typeof pkg & { | ||
dependencies: Record<string, string>; | ||
peerDependencies: Record<string, string>; | ||
}; | ||
const { dependencies = {}, peerDependencies = {} } = pkg as Packages; | ||
const makeRegex = (dep) => new RegExp(`^${dep}(/.*)?$`); | ||
const excludeAll = (obj) => Object.keys(obj).map(makeRegex); | ||
|
||
export default defineConfig(() => { | ||
return { | ||
build: { | ||
target: "es2020", | ||
lib: { | ||
entry: "./src/index.ts", | ||
entry: "./src/index.tsx", | ||
formats: ["es", "cjs"], | ||
fileName: (format) => `index.qwik.${format === "es" ? "mjs" : "cjs"}`, | ||
}, | ||
rollupOptions: { | ||
// externalize deps that shouldn't be bundled into the library | ||
external: [/^node:.*/, ...excludeAll(dependencies), ...excludeAll(peerDependencies)], | ||
fileName: (format) => `index.${format === "es" ? "mjs" : "cjs"}`, | ||
}, | ||
}, | ||
plugins: [qwikVite(), nxViteTsPaths()], | ||
plugins: [nxViteTsPaths()], | ||
}; | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
{ | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
} | ||
"type": "module" | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "module" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { getDefaultConfig } from "../../panda.base.config.js"; | ||
export default getDefaultConfig(__dirname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { getDefaultConfig } from "../../postcss.base.config.js"; | ||
export default getDefaultConfig(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters