generated from anolilab/monorepo-template
-
-
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.
feat: combined plugin into packem for better dx
- Loading branch information
Showing
75 changed files
with
949 additions
and
1,832 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "examples_packem_react_tailwindcss", | ||
"version": "1.0.0", | ||
"private": true, | ||
"type": "module", | ||
"exports": [ | ||
"./dist/index.mjs", | ||
"./dist/index.cjs" | ||
], | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"files": [ | ||
"./dist" | ||
], | ||
"scripts": { | ||
"build": "packem build", | ||
"clean": "rimraf node_modules dist" | ||
}, | ||
"dependencies": { | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.3.10", | ||
"@types/react-dom": "^18.3.0", | ||
"@visulima/packem": "workspace:*", | ||
"autoprefixer": "^10.4.20", | ||
"esbuild": "^0.24.0", | ||
"postcss": "^8.4.47", | ||
"postcss-load-config": "^6.0.1", | ||
"postcss-modules": "6.0.0", | ||
"postcss-modules-extract-imports": "^3.1.0", | ||
"postcss-modules-local-by-default": "^4.0.5", | ||
"postcss-modules-scope": "^3.2.0", | ||
"postcss-modules-values": "^4.0.0", | ||
"postcss-value-parser": "^4.2.0", | ||
"rimraf": "^6.0.1", | ||
"tailwindcss": "^3.4.13", | ||
"typescript": "^5.6.2" | ||
} | ||
} |
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,13 @@ | ||
import { defineConfig } from "@visulima/packem/config"; | ||
import transformer from "@visulima/packem/transformer/esbuild"; | ||
|
||
// eslint-disable-next-line import/no-unused-modules | ||
export default defineConfig({ | ||
transformer, | ||
fileCache: false, | ||
rollup: { | ||
style: { | ||
mode: "extract", | ||
}, | ||
}, | ||
}); |
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,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,11 @@ | ||
import "./styles.css"; | ||
|
||
const Container = () => { | ||
return ( | ||
<div className="bg-red-500 h-32"> | ||
<h1>Hello World</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Container; |
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 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,9 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
content: ["./src/**/*.{js,jsx,ts,tsx}"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} | ||
|
5 changes: 3 additions & 2 deletions
5
packages/rollup-plugin-styles/tsconfig.json → examples/react-tailwindcss/tsconfig.json
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,8 +1,9 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["src/**/*", "*.d.ts"], | ||
"compilerOptions": { | ||
"moduleResolution": "bundler" | ||
"baseUrl": ".", | ||
"jsx": "react-jsx", | ||
"moduleResolution": "bundler", | ||
} | ||
} |
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
Oops, something went wrong.