Skip to content

Commit

Permalink
Bump deps [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed May 1, 2023
1 parent ddfc211 commit 4b7ff27
Show file tree
Hide file tree
Showing 39 changed files with 1,114 additions and 1,384 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ module.exports = {
"require-unicode-regexp": "off",
"no-param-reassign": "off",
},
overrides: [
{
files: ["tests/**"],
rules: {
"@typescript-eslint/no-floating-promises": "off",
},
},
],
};
Binary file modified bun.lockb
Binary file not shown.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
},
"dependencies": {
"@arnaud-barre/config-loader": "^0.5.3",
"lightningcss": "^1.19.0"
"lightningcss": "^1.20.0"
},
"devDependencies": {
"@arnaud-barre/eslint-config": "^1.0.19",
"@ianvs/prettier-plugin-sort-imports": "^3.7.1",
"@arnaud-barre/eslint-config": "^2.0.2",
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
"@nabla/tnode": "^0.9.0",
"@types/node": "^18.14.0",
"eslint": "^8.34.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"vite": "^4.1.2"
"@types/node": "^18.16.3",
"eslint": "^8.39.0",
"prettier": "^2.8.8",
"typescript": "^5.0.4",
"vite": "^4.3.3"
}
}
10 changes: 6 additions & 4 deletions playground/playground.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env tnode
import { writeFileSync, existsSync } from "node:fs";

import "./set-version";
import { initDownwindWithConfig } from "../src";
import "./set-version.ts";
import { initDownwindWithConfig } from "../src/index.ts";

if (!existsSync("./config.ts")) {
writeFileSync(
Expand Down Expand Up @@ -33,8 +33,10 @@ console.warn = (message: string) => warnings.push(message);
console.log = (...args: any[]) =>
logs.push(args.map((v) => (typeof v === "object" ? JSON.stringify(v) : v)));

// eslint-disable-next-line @typescript-eslint/no-require-imports
const downwind = initDownwindWithConfig({ config: require("./config").config });
const downwind = initDownwindWithConfig({
// eslint-disable-next-line @typescript-eslint/no-require-imports
config: require("./config.ts").config,
});
downwind.scan("./input.ts");

const transform = downwind.transform("./input.module.css").code;
Expand Down
Binary file modified playground/vite/bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions playground/vite/downwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { DownwindConfig } from "../../src/types";

export const config: DownwindConfig = {
blocklist: ["container"],
shortcuts: {
"btn": "py-2 px-4 font-semibold rounded-lg shadow-md",
"btn-green": "text-white bg-green-500 hover:bg-green-600",
Expand Down
10 changes: 5 additions & 5 deletions playground/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react-swc": "^3.2.0",
"typescript": "^4.9.5",
"vite": "^4.1.2"
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@vitejs/plugin-react-swc": "^3.3.0",
"typescript": "^5.0.4",
"vite": "^4.3.3"
}
}
2 changes: 1 addition & 1 deletion playground/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const App = () => {
const [count, setCount] = useState(0);

return (
<div className={styles.container}>
<div className={styles["container"]}>
<h1 className="font-bold text-xl">Vite + React</h1>
<div className="p-4 text-lg">
<button
Expand Down
2 changes: 1 addition & 1 deletion playground/vite/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createRoot } from "react-dom/client";
import "virtual:@downwind/devtools";
import "virtual:@downwind/base.css";
import "./index.css";
import { App } from "./App";
import { App } from "./App.tsx";
import "virtual:@downwind/utils.css";

createRoot(document.getElementById("root")!).render(
Expand Down
27 changes: 14 additions & 13 deletions playground/vite/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"include": ["**/*.ts", "**/*.tsx"],
"compilerOptions": {
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",

/* Options for bundlers & React integration */
"target": "ES2020",
"useDefineForClassFields": true,
"jsx": "react-jsx",
"skipLibCheck": true, // Report mostly false positive
"moduleResolution": "node", // Allow `index` imports
"resolveJsonModule": true, // Allow json import
"forceConsistentCasingInFileNames": true, // Avoid difference in case between filename and import
"allowSyntheticDefaultImports": true, // Required for json import
"noEmit": true, // Transpilation done by SWC or esbuild
"isolatedModules": true, // Required by esbuild for parallelization
"module": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,

/* Linting */
"skipLibCheck": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": true
"useUnknownInCatchVariables": true,
"noPropertyAccessFromIndexSignature": true
}
}
2 changes: 1 addition & 1 deletion playground/vite/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";

import { downwind } from "../../dist/vite";
import { downwind } from "../../dist/vite.js";

// eslint-disable-next-line import/no-default-export
export default defineConfig({ plugins: [react(), downwind()] });
Loading

0 comments on commit 4b7ff27

Please sign in to comment.