Skip to content

Commit 1a37aaa

Browse files
committed
feat(custom): 实现 storage 和 cookie 功能
0 parents  commit 1a37aaa

22 files changed

+8093
-0
lines changed

.cursor/rules/ultracite.mdc

Lines changed: 333 additions & 0 deletions
Large diffs are not rendered by default.

.github /workflows/npm-publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: npm publish
2+
3+
on:
4+
workflow_dispatch: # 允许手动触发工作流,默认是不开启的
5+
push: # 当有代码推送到仓库时触发
6+
branches:
7+
- main
8+
9+
jobs:
10+
build: # 工作流程中的一个作业
11+
runs-on: ubuntu-latest # 指定运行作业的虚拟环境
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: https://registry.npmjs.org/
20+
- name: enable pnpm
21+
run: corepack enable
22+
- name: install Dependencies
23+
run: |
24+
ls -al
25+
pnpm i
26+
pnpm build
27+
- name: Publish to NPM
28+
run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Dependencies
2+
node_modules/
3+
.pnpm-lock.yaml
4+
yarn.lock
5+
package-lock.json
6+
7+
# Build outputs
8+
dist/
9+
build/
10+
*.tsbuildinfo
11+
12+
# IDE
13+
.vscode/
14+
.idea/
15+
*.swp
16+
*.swo
17+
18+
# OS
19+
.DS_Store
20+
Thumbs.db
21+
22+
# Logs
23+
*.log
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
pnpm-debug.log*
28+
lerna-debug.log*
29+
30+
# Runtime data
31+
pids
32+
*.pid
33+
*.seed
34+
*.pid.lock
35+
36+
# Coverage directory used by tools like istanbul
37+
coverage/
38+
*.lcov
39+
40+
# nyc test coverage
41+
.nyc_output
42+
43+
# Dependency directories
44+
jspm_packages/
45+
46+
# Optional npm cache directory
47+
.npm
48+
49+
# Optional eslint cache
50+
.eslintcache
51+
52+
# Microbundle cache
53+
.rpt2_cache/
54+
.rts2_cache_cjs/
55+
.rts2_cache_es/
56+
.rts2_cache_umd/
57+
58+
# Optional REPL history
59+
.node_repl_history
60+
61+
# Output of 'npm pack'
62+
*.tgz
63+
64+
# Yarn Integrity file
65+
.yarn-integrity
66+
67+
# dotenv environment variables file
68+
.env
69+
.env.local
70+
.env.development.local
71+
.env.test.local
72+
.env.production.local
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
.parcel-cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
public
88+
89+
# Storybook build outputs
90+
.out
91+
.storybook-out
92+
93+
# Temporary folders
94+
tmp/
95+
temp/

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm dlx ultracite format

.npmignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Source code
2+
src/
3+
test/
4+
demo/
5+
6+
# Configuration files
7+
.gitignore
8+
.editorconfig
9+
.prettierrc
10+
.eslintrc*
11+
tsconfig.json
12+
vitest.config.ts
13+
tsup.config.ts
14+
15+
# Development files
16+
*.log
17+
.DS_Store
18+
.vscode/
19+
.idea/
20+
21+
# Test files
22+
coverage/
23+
.nyc_output
24+
25+
# Build cache
26+
.cache
27+
.parcel-cache
28+
node_modules/
29+
30+
# Git
31+
.git/
32+
.github/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 coderlzw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)