-
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.
Add standalone tailwindcss CLI (#6506)
* Move standalone CLI into main repo * Update release tag * Update workflow * Ignore standalone CLI tests * Fix style * Update changelog [ci skip]
- Loading branch information
1 parent
0ddbb36
commit 47e8556
Showing
13 changed files
with
10,981 additions
and
2 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,58 @@ | ||
name: Build Standalone CLI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
build_cli: | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: git fetch --tags | ||
|
||
- name: Resolve version | ||
id: vars | ||
run: echo "::set-output name=tag_name::$(git describe --tags --abbrev=0)" | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Build tailwindcss | ||
run: npm run prepublishOnly | ||
|
||
- name: Install standalone cli dependencies | ||
run: npm install | ||
working-directory: standalone-cli | ||
|
||
- name: Build standalone cli | ||
run: npm run build | ||
working-directory: standalone-cli | ||
|
||
- name: Test | ||
run: npm test | ||
working-directory: standalone-cli | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
tag_name: ${{ steps.vars.outputs.tag_name }} | ||
body: | | ||
* [Linux (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ steps.vars.outputs.tag_name }}/tailwindcss-linux-x64) | ||
* [macOS (arm64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ steps.vars.outputs.tag_name }}/tailwindcss-macos-arm64) | ||
* [macOS (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ steps.vars.outputs.tag_name }}/tailwindcss-macos-x64) | ||
* [Windows (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ steps.vars.outputs.tag_name }}/tailwindcss-windows-x64.exe) | ||
files: | | ||
dist/tailwindcss-linux-x64 | ||
dist/tailwindcss-macos-arm64 | ||
dist/tailwindcss-macos-x64 | ||
dist/tailwindcss-windows-x64.exe |
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,2 @@ | ||
node_modules | ||
/dist |
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,15 @@ | ||
# Tailwind Standalone CLI | ||
|
||
> Standalone version of [Tailwind CLI](https://tailwindcss.com/docs/installation#using-tailwind-cli) | ||
## Installation | ||
|
||
Download the appropriate platform-specific version of the `tailwindcss` cli from the [latest release](https://github.com/tailwindlabs/tailwindcss/releases). | ||
|
||
## Usage | ||
|
||
``` | ||
./tailwindcss-macos -o tailwind.css | ||
``` | ||
|
||
Check out the [Tailwind CLI documentation](https://tailwindcss.com/docs/installation#using-tailwind-cli) for details on the available options. |
Oops, something went wrong.