Skip to content

Commit 2d469fb

Browse files
authored
feat: tailwind v3 (#26)
* chore: refactor repo * convert vue app to html app * init tailwind v3/v4 * migrate to typescript * chore: add workflow
1 parent 810dd03 commit 2d469fb

32 files changed

+2895
-15862
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- main
9+
10+
paths:
11+
- 'src/**'
12+
- '.github/workflows/deploy-pages.yml'
13+
14+
workflow_dispatch:
15+
16+
permissions:
17+
id-token: write
18+
contents: write
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 9
33+
34+
- name: Use Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 22
38+
cache: pnpm
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- name: Build library
44+
run: pnpm build
45+
46+
- name: Build app
47+
run: pnpm --filter playground build --base /tailwind-scrollbar-hide/
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v1
51+
with:
52+
path: ./playground/dist
53+
54+
deploy:
55+
needs: build
56+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
57+
permissions:
58+
pages: write # to deploy to Pages
59+
id-token: write # to verify the deployment originates from an appropriate source
60+
# Deploy to the github_pages environment
61+
environment:
62+
name: github_pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
# Specify runner + deployment step
65+
runs-on: ubuntu-latest
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v1

.github/workflows/npm-publish.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- main
9+
10+
paths:
11+
- 'src/**'
12+
- '.github/workflows/npm-publish.yml'
13+
14+
workflow_dispatch:
15+
16+
permissions:
17+
id-token: write
18+
contents: write
19+
20+
jobs:
21+
npm-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 9
33+
34+
- name: Use Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 22
38+
cache: pnpm
39+
40+
- run: pnpm install
41+
42+
- name: Creating .npmrc
43+
run: |
44+
cat << EOF > "$HOME/.npmrc"
45+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
46+
EOF
47+
env:
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
50+
- name: Initialize mandatory git config
51+
run: |
52+
git config user.name "GitHub actions"
53+
git config user.email [email protected]
54+
55+
- name: Release
56+
env:
57+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
run: npx changelogen@latest --release --push --publish

.github/workflows/release.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.gitignore

Lines changed: 12 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +1,22 @@
1-
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2-
3-
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,node
4-
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,node
5-
6-
### macOS ###
7-
# General
8-
.DS_Store
9-
.AppleDouble
10-
.LSOverride
11-
12-
# Icon must end with two \r
13-
Icon
14-
15-
# Thumbnails
16-
._*
17-
18-
# Files that might appear in the root of a volume
19-
.DocumentRevisions-V100
20-
.fseventsd
21-
.Spotlight-V100
22-
.TemporaryItems
23-
.Trashes
24-
.VolumeIcon.icns
25-
.com.apple.timemachine.donotpresent
26-
27-
# Directories potentially created on remote AFP share
28-
.AppleDB
29-
.AppleDesktop
30-
Network Trash Folder
31-
Temporary Items
32-
.apdisk
33-
34-
### Node ###
351
# Logs
362
logs
373
*.log
384
npm-debug.log*
395
yarn-debug.log*
406
yarn-error.log*
7+
pnpm-debug.log*
418
lerna-debug.log*
429

43-
# Diagnostic reports (https://nodejs.org/api/report.html)
44-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
45-
46-
# Runtime data
47-
pids
48-
*.pid
49-
*.seed
50-
*.pid.lock
51-
52-
# Directory for instrumented libs generated by jscoverage/JSCover
53-
lib-cov
54-
55-
# Coverage directory used by tools like istanbul
56-
coverage
57-
*.lcov
58-
59-
# nyc test coverage
60-
.nyc_output
61-
62-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
63-
.grunt
64-
65-
# Bower dependency directory (https://bower.io/)
66-
bower_components
67-
68-
# node-waf configuration
69-
.lock-wscript
70-
71-
# Compiled binary addons (https://nodejs.org/api/addons.html)
72-
build/Release
73-
74-
# Dependency directories
75-
node_modules/
76-
jspm_packages/
77-
78-
# TypeScript v1 declaration files
79-
typings/
80-
81-
# TypeScript cache
82-
*.tsbuildinfo
83-
84-
# Optional npm cache directory
85-
.npm
86-
87-
# Optional eslint cache
88-
.eslintcache
89-
90-
# Optional stylelint cache
91-
.stylelintcache
92-
93-
# Microbundle cache
94-
.rpt2_cache/
95-
.rts2_cache_cjs/
96-
.rts2_cache_es/
97-
.rts2_cache_umd/
98-
99-
# Optional REPL history
100-
.node_repl_history
101-
102-
# Output of 'npm pack'
103-
*.tgz
104-
105-
# Yarn Integrity file
106-
.yarn-integrity
107-
108-
# dotenv environment variables file
109-
.env
110-
.env.test
111-
.env*.local
112-
113-
# parcel-bundler cache (https://parceljs.org/)
114-
.cache
115-
.parcel-cache
116-
117-
# Next.js build output
118-
.next
119-
120-
# Nuxt.js build / generate output
121-
.nuxt
10+
node_modules
12211
dist
12+
dist-ssr
13+
*.local
12314

124-
# Gatsby files
125-
.cache/
126-
# Comment in the public line in if your project uses Gatsby and not Next.js
127-
# https://nextjs.org/blog/next-9-1#public-directory-support
128-
# public
129-
130-
# vuepress build output
131-
.vuepress/dist
132-
133-
# Serverless directories
134-
.serverless/
135-
136-
# FuseBox cache
137-
.fusebox/
138-
139-
# DynamoDB Local files
140-
.dynamodb/
141-
142-
# TernJS port file
143-
.tern-port
144-
145-
# Stores VSCode versions used for testing VSCode extensions
146-
.vscode-test
147-
148-
### VisualStudioCode ###
149-
.vscode/*
150-
!.vscode/tasks.json
151-
!.vscode/launch.json
152-
*.code-workspace
153-
154-
### VisualStudioCode Patch ###
155-
# Ignore all local history of files
156-
.history
157-
.ionide
158-
159-
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,node
160-
161-
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
162-
15+
# Editor directories and files
16+
.idea
17+
.DS_Store
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://registry.npmjs.org/
2+
ignore-workspace-root-check=true
3+
include-workspace-root=true

.releaserc

Lines changed: 0 additions & 39 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"files.associations": {
3+
"*.css": "tailwindcss"
4+
},
5+
"editor.quickSuggestions": {
6+
"strings": "on"
7+
}
8+
}

0 commit comments

Comments
 (0)