Skip to content

Commit 7ef4d31

Browse files
authored
docs: add StackBlitz link (#6)
1 parent c45b866 commit 7ef4d31

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
Access and use HTTP Client Hints in your Nuxt application. Detect the client browser and the operating system on your server.
1010

11+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/userquin/nuxt-http-client-hints)
12+
1113
## Features
1214

1315
- 🚀 Browser and Operating System detection: check [detect-browser-es](https://www.npmjs.com/package/detect-browser-es) for more information.
@@ -113,25 +115,24 @@ You can check the source code or the [JSDocs](https://www.jsdocs.io/package/nuxt
113115
pnpm install
114116

115117
# Generate type stubs
116-
pnpm run dev:prepare
118+
pnpm dev:prepare
117119

118120
# Develop with the playground
119-
pnpm run dev
121+
pnpm dev
120122

121123
# Build the playground
122-
pnpm run dev:build
124+
pnpm dev:build
123125

124126
# Run ESLint
125-
pnpm run lint
127+
pnpm lint
126128

127129
# Run Vitest
128-
pnpm run test
129-
pnpm run test:watch
130+
pnpm test
131+
pnpm test:watch
130132
```
131133

132134
</details>
133135

134-
135136
## License
136137

137138
[MIT](./LICENSE) License © 2024-PRESENT [Joaquín Sánchez](https://github.com/userquin)

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,9 @@
6161
"typescript": "^5.6.3",
6262
"vitest": "^2.1.1",
6363
"vue-tsc": "^2.1.6"
64+
},
65+
"stackblitz": {
66+
"installDependencies": false,
67+
"startCommand": "pnpm install && pnpm dev:prepare && pnpm dev"
6468
}
6569
}

0 commit comments

Comments
 (0)