Skip to content

Commit

Permalink
Bump tailwind to 3.3.3 (#313)
Browse files Browse the repository at this point in the history
Bump to tailwind 3.3.3 so that we can use .ts config files. Does not include breaking changes.

Some things of note:
[This change](tailwindlabs/tailwindcss#10765) seems to have caused some problems for users using Safari <14.1 and some mobile browsers.
More on tailwind changes can be found [here](https://tailwindcss.com/blog/tailwindcss-v3-3), and the commit changes can be found [here](tailwindlabs/tailwindcss@v3.2.7...v3.3.3).

Prettier was also bumped to 2.8.1 (only the test site was on an old version, 2.7.1).  This is because the auto-generated `tailwind.config.ts` file makes use of the new [`satisfies` keyword which is not supported until Prettier 2.8.1](prettier/prettier#13951). This broke our linking workflow.

J=SLAP-2820
  • Loading branch information
alextaing committed Aug 7, 2023
1 parent 283f5d7 commit a517fa0
Show file tree
Hide file tree
Showing 11 changed files with 214 additions and 307 deletions.
14 changes: 0 additions & 14 deletions .github/tailwind-safelist-all.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions .github/tailwind-safelist-all.config.ts
@@ -0,0 +1,10 @@
import type { Config } from 'tailwindcss'

export default {
content: [],
safelist: [
{
pattern: /.*/,
},
]
} satisfies Config;
2 changes: 1 addition & 1 deletion .github/workflows/autofixes.yml
Expand Up @@ -34,7 +34,7 @@ jobs:
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
- uses: ./.github/setup-ci
- name: Regenerate Full Tailwind Bundle
run: npx tailwindcss -o src/tailwind-full.css -c ../../.github/tailwind-safelist-all.config.js --minify
run: npx tailwindcss -o src/tailwind-full.css -c ../../.github/tailwind-safelist-all.config.ts --minify
working-directory: ./packages/studio
- name: Compress Full Tailwind Bundle
run: node .github/compress-tailwind-full.js
Expand Down
3 changes: 1 addition & 2 deletions apps/test-site/package.json
Expand Up @@ -27,8 +27,7 @@
"eslint": "^8.11.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-react-perf": "^3.3.1",
"eslint-plugin-tsdoc": "^0.2.17",
"prettier": "2.7.1"
"eslint-plugin-tsdoc": "^0.2.17"
},
"scripts": {
"dev": "studio",
Expand Down

0 comments on commit a517fa0

Please sign in to comment.