Skip to content

Commit

Permalink
docs: add stackblitz to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Jan 28, 2023
1 parent ac9996f commit 6074ca0
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint --ext .js,.ts,.vue",
"docs": "cd docs && yarn dev"
"docs": "cd docs && yarn dev",
"stackblitz": "cd stackblitz && yarn && yarn dev"
},
"dependencies": {
"@nozomuikuta/h3-cors": "^0.1.5",
Expand All @@ -55,5 +56,9 @@
"@types/memory-cache": "^0.2.2",
"eslint": "latest",
"nuxt": "^3.0.0"
},
"stackblitz": {
"installDependencies": false,
"startCommand": "yarn stackblitz"
}
}
8 changes: 8 additions & 0 deletions stackblitz/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist
42 changes: 42 additions & 0 deletions stackblitz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Nuxt 3 Minimal Starter

Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist
```

## Development Server

Start the development server on http://localhost:3000

```bash
npm run dev
```

## Production

Build the application for production:

```bash
npm run build
```

Locally preview production build:

```bash
npm run preview
```

Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.
5 changes: 5 additions & 0 deletions stackblitz/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
Check out the browser network tab to see what Response Headers has been set for you by nuxt-security module
</div>
</template>
4 changes: 4 additions & 0 deletions stackblitz/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: ['nuxt-security']
})
16 changes: 16 additions & 0 deletions stackblitz/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "3.0.0"
},
"dependencies": {
"nuxt-security": "^0.10.1"
}
}
4 changes: 4 additions & 0 deletions stackblitz/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit 6074ca0

Please sign in to comment.