Skip to content

Commit 15d5103

Browse files
authored
Merge pull request #1 from sonofmagic/dev
Release: tailwindcss-patch 1.0.0
2 parents 6deb4de + 69c0f65 commit 15d5103

File tree

155 files changed

+21689
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+21689
-98
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: []
3+
extends: ["@icebreakers/eslint-config-ts"]
44
}

.gitattributes

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Common settings that generally should always be used with your language specific settings
2+
3+
# Auto detect text files and perform LF normalization
4+
* text=auto
5+
6+
#
7+
# The above will handle all files NOT found below
8+
#
9+
10+
# Documents
11+
*.bibtex text diff=bibtex
12+
*.doc diff=astextplain
13+
*.DOC diff=astextplain
14+
*.docx diff=astextplain
15+
*.DOCX diff=astextplain
16+
*.dot diff=astextplain
17+
*.DOT diff=astextplain
18+
*.pdf diff=astextplain
19+
*.PDF diff=astextplain
20+
*.rtf diff=astextplain
21+
*.RTF diff=astextplain
22+
*.md text diff=markdown
23+
*.mdx text diff=markdown
24+
*.tex text diff=tex
25+
*.adoc text
26+
*.textile text
27+
*.mustache text
28+
*.csv text
29+
*.tab text
30+
*.tsv text
31+
*.txt text
32+
*.sql text
33+
*.epub diff=astextplain
34+
35+
# Graphics
36+
*.png binary
37+
*.jpg binary
38+
*.jpeg binary
39+
*.gif binary
40+
*.tif binary
41+
*.tiff binary
42+
*.ico binary
43+
# SVG treated as text by default.
44+
*.svg text
45+
# If you want to treat it as binary,
46+
# use the following line instead.
47+
# *.svg binary
48+
*.eps binary
49+
50+
# Scripts
51+
*.bash text eol=lf
52+
*.fish text eol=lf
53+
*.sh text eol=lf
54+
*.zsh text eol=lf
55+
# These are explicitly windows files and should use crlf
56+
*.bat text eol=crlf
57+
*.cmd text eol=crlf
58+
*.ps1 text eol=crlf
59+
60+
# Serialisation
61+
*.json text
62+
*.toml text
63+
*.xml text
64+
*.yaml text
65+
*.yml text
66+
67+
# Archives
68+
*.7z binary
69+
*.gz binary
70+
*.tar binary
71+
*.tgz binary
72+
*.zip binary
73+
74+
# Text files where line endings should be preserved
75+
*.patch -text
76+
77+
#
78+
# Exclude files from exporting
79+
#
80+
81+
.gitattributes export-ignore
82+
.gitignore export-ignore
83+
.gitkeep export-ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ yarn-error.log*
3131

3232
# turbo
3333
.turbo
34+
dist

README.md

Lines changed: 5 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,9 @@
1-
# pnpm-turbo-monorepo-template
1+
# tailwindcss-mangle
22

3-
This is a empty pnpm starter turborepo for me.
3+
A util for mangle tailwindcss
44

5-
## What's inside?
5+
## Repos
66

7-
This turborepo uses [pnpm](https://pnpm.io) as a package manager. It includes the following packages/apps:
7+
[tailwindcss-patch](./packages/tailwindcss-patch)
88

9-
### Apps and Packages
10-
11-
- `docs`: a [Next.js](https://nextjs.org/) app
12-
- `web`: another [Next.js](https://nextjs.org/) app
13-
- `ui`: a stub React component library shared by both `web` and `docs` applications
14-
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
15-
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
16-
17-
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
18-
19-
### Utilities
20-
21-
This turborepo has some additional tools already setup for you:
22-
23-
- [TypeScript](https://www.typescriptlang.org/) for static type checking
24-
- [ESLint](https://eslint.org/) for code linting
25-
- [Prettier](https://prettier.io) for code formatting
26-
27-
### Build
28-
29-
To build all apps and packages, run the following command:
30-
31-
```
32-
cd my-turborepo
33-
pnpm run build
34-
```
35-
36-
### Develop
37-
38-
To develop all apps and packages, run the following command:
39-
40-
```
41-
cd my-turborepo
42-
pnpm run dev
43-
```
44-
45-
### Remote Caching
46-
47-
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
48-
49-
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:
50-
51-
```
52-
cd my-turborepo
53-
pnpm dlx turbo login
54-
```
55-
56-
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
57-
58-
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
59-
60-
```
61-
pnpm dlx turbo link
62-
```
63-
64-
## Useful Links
65-
66-
Learn more about the power of Turborepo:
67-
68-
- [Pipelines](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
69-
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
70-
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
71-
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
72-
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
73-
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
9+
[unplugin-tailwindcss-mangle](./packages/unplugin-tailwindcss-mangle)

apps/vite-react/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

apps/vite-react/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React + TS</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

apps/vite-react/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "vite-react",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"react": "^18.2.0",
13+
"react-dom": "^18.2.0"
14+
},
15+
"devDependencies": {
16+
"@types/react": "^18.0.28",
17+
"@types/react-dom": "^18.0.11",
18+
"@vitejs/plugin-react": "^3.1.0",
19+
"typescript": "^4.9.3",
20+
"vite": "^4.2.0"
21+
}
22+
}

apps/vite-react/public/vite.svg

Lines changed: 1 addition & 0 deletions
Loading

apps/vite-react/src/App.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#root {
2+
max-width: 1280px;
3+
margin: 0 auto;
4+
padding: 2rem;
5+
text-align: center;
6+
}
7+
8+
.logo {
9+
height: 6em;
10+
padding: 1.5em;
11+
will-change: filter;
12+
transition: filter 300ms;
13+
}
14+
.logo:hover {
15+
filter: drop-shadow(0 0 2em #646cffaa);
16+
}
17+
.logo.react:hover {
18+
filter: drop-shadow(0 0 2em #61dafbaa);
19+
}
20+
21+
@keyframes logo-spin {
22+
from {
23+
transform: rotate(0deg);
24+
}
25+
to {
26+
transform: rotate(360deg);
27+
}
28+
}
29+
30+
@media (prefers-reduced-motion: no-preference) {
31+
a:nth-of-type(2) .logo {
32+
animation: logo-spin infinite 20s linear;
33+
}
34+
}
35+
36+
.card {
37+
padding: 2em;
38+
}
39+
40+
.read-the-docs {
41+
color: #888;
42+
}

apps/vite-react/src/App.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { useState } from 'react'
2+
import reactLogo from './assets/react.svg'
3+
import viteLogo from '/vite.svg'
4+
import './App.css'
5+
6+
function App() {
7+
const [count, setCount] = useState(0)
8+
9+
return (
10+
<div className="App">
11+
<div>
12+
<a href="https://vitejs.dev" target="_blank">
13+
<img src={viteLogo} className="logo" alt="Vite logo" />
14+
</a>
15+
<a href="https://reactjs.org" target="_blank">
16+
<img src={reactLogo} className="logo react" alt="React logo" />
17+
</a>
18+
</div>
19+
<h1>Vite + React</h1>
20+
<div className="card">
21+
<button onClick={() => setCount((count) => count + 1)}>count is {count}</button>
22+
<p>
23+
Edit <code>src/App.tsx</code> and save to test HMR
24+
</p>
25+
</div>
26+
<p className="read-the-docs">Click on the Vite and React logos to learn more</p>
27+
</div>
28+
)
29+
}
30+
31+
export default App

0 commit comments

Comments
 (0)