-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the CLI to its own package
@tailwindcss/cli
(#13095)
* move `cli` to its own package `@tailwindcss/cli` * minify builds when using `tsup` * prefer tsup cli flag over tsup.config.ts file * add `--clean`, to make sure `dist/` folders are cleaned before building * make CLI esm only * use version of `tailwindcss` instead of the version of `@tailwindcss/cli`
- Loading branch information
1 parent
bab74da
commit 0597489
Showing
19 changed files
with
341 additions
and
3,652 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,35 @@ | ||
{ | ||
"name": "@tailwindcss/cli", | ||
"version": "4.0.0-alpha.1", | ||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.", | ||
"license": "MIT", | ||
"repository": "https://github.com/tailwindlabs/tailwindcss.git", | ||
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues", | ||
"homepage": "https://tailwindcss.com", | ||
"scripts": { | ||
"lint": "tsc --noEmit", | ||
"build": "tsup-node ./src/index.ts --format esm --minify --clean", | ||
"dev": "pnpm run build -- --watch" | ||
}, | ||
"bin": { | ||
"tailwindcss": "./dist/index.mjs" | ||
}, | ||
"exports": { | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"@parcel/watcher": "^2.4.1", | ||
"@tailwindcss/oxide": "workspace:^", | ||
"mri": "^1.2.0", | ||
"picocolors": "^1.0.0", | ||
"postcss": "8.4.24", | ||
"postcss-import": "^16.0.0", | ||
"tailwindcss": "workspace:^" | ||
}, | ||
"devDependencies": { | ||
"@types/postcss-import": "^14.0.3" | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ges/tailwindcss/src/cli/utils/renderer.ts → ...es/@tailwindcss-cli/src/utils/renderer.ts
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 @@ | ||
import { createRequire } from 'node:module' | ||
|
||
export const resolve = createRequire(import.meta.url).resolve |
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 @@ | ||
{ | ||
"extends": "../tsconfig.base.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
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 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
Oops, something went wrong.