Skip to content

Commit 0eea3a7

Browse files
committed
examples
1 parent 28d1be6 commit 0eea3a7

36 files changed

Lines changed: 5236 additions & 14 deletions

README-zh_CN.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ pnpm add js-cool
2626

2727
# npm
2828
npm install js-cool
29-
30-
# yarn
31-
yarn add js-cool
3229
```
3330

3431
## 使用

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818

1919
---
2020

21+
## Online Playground
22+
23+
Try js-cool directly in your browser with StackBlitz:
24+
25+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/saqqdy/js-cool/tree/master/examples?terminal=dev)
26+
27+
---
28+
2129
## Installation
2230

2331
```bash
@@ -26,9 +34,6 @@ pnpm add js-cool
2634

2735
# npm
2836
npm install js-cool
29-
30-
# yarn
31-
yarn add js-cool
3237
```
3338

3439
## Usage

examples/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>js-cool Examples</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

examples/package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "js-cool-examples",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@vicons/ionicons5": "^0.13.0",
13+
"highlight.js": "^11.11.1",
14+
"js-cool": "link:..",
15+
"naive-ui": "^2.44.1",
16+
"vue": "^3.5.13",
17+
"vue-router": "^4.5.0"
18+
},
19+
"devDependencies": {
20+
"@tailwindcss/postcss": "^4.2.2",
21+
"@vitejs/plugin-vue": "^5.2.3",
22+
"autoprefixer": "^10.4.27",
23+
"postcss": "^8.5.8",
24+
"tailwindcss": "^4.2.2",
25+
"typescript": "^5.9.3",
26+
"vite": "^6.2.4",
27+
"vue-tsc": "^2.2.8"
28+
}
29+
}

0 commit comments

Comments
 (0)