Skip to content

Commit 8c3736c

Browse files
committed
initial commit
0 parents  commit 8c3736c

24 files changed

+8192
-0
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_size = 2
5+
indent_style = space
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
node_modules
3+
.output
4+
.nuxt
5+
playground

.eslintrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": [
3+
"@nuxtjs/eslint-config-typescript",
4+
"@antfu"
5+
],
6+
"rules": {
7+
"@typescript-eslint/no-unused-vars": [
8+
"off"
9+
]
10+
}
11+
}

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [harlan-zw]

.github/workflows/release.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install pnpm
17+
uses: pnpm/[email protected]
18+
19+
- name: Use Node.js v16
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: v16
23+
registry-url: https://registry.npmjs.org/
24+
cache: pnpm
25+
26+
- run: export DEBUG=conventional-github-releaser && npx conventional-github-releaser -p angular
27+
continue-on-error: false
28+
env:
29+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
30+
31+
- run: pnpm i
32+
33+
- name: PNPM build
34+
run: pnpm run build
35+
36+
- name: Publish to NPM
37+
run: pnpm publish --access public --no-git-checks
38+
env:
39+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- '**/README.md'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
node-version: [16.x]
20+
# os: [ubuntu-latest, windows-latest, macos-latest]
21+
os: [ubuntu-latest]
22+
fail-fast: false
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- name: Install pnpm
28+
uses: pnpm/[email protected]
29+
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
registry-url: https://registry.npmjs.org/
35+
cache: pnpm
36+
37+
- run: pnpm i
38+
39+
- name: Build
40+
run: pnpm run build
41+
42+
- name: Test
43+
run: pnpm run test

.gitignore

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Logs
5+
*.log*
6+
7+
# Temp directories
8+
.temp
9+
.tmp
10+
.cache
11+
12+
# Yarn
13+
**/.yarn/cache
14+
**/.yarn/*state*
15+
16+
.playground/nuxt-runtime
17+
18+
# Generated dirs
19+
dist
20+
21+
# Nuxt
22+
.nuxt
23+
.output
24+
.vercel_build_output
25+
.build-*
26+
.env
27+
.netlify
28+
29+
# Env
30+
.env
31+
32+
# Testing
33+
reports
34+
coverage
35+
*.lcov
36+
.nyc_output
37+
38+
# VSCode
39+
.vscode
40+
41+
# Intellij idea
42+
*.iml
43+
.idea
44+
45+
# OSX
46+
.DS_Store
47+
.AppleDouble
48+
.LSOverride
49+
.AppleDB
50+
.AppleDesktop
51+
Network Trash Folder
52+
Temporary Items
53+
.apdisk

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.playground/app.vue

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div>
3+
<div>
4+
<NuxtPage />
5+
</div>
6+
</div>
7+
</template>

.playground/nuxt.config.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { resolve } from 'pathe'
2+
import { defineNuxtConfig } from 'nuxt/config'
3+
4+
export default defineNuxtConfig({
5+
alias: {
6+
'nuxt-simple-sitemap': resolve(__dirname, '../src/module'),
7+
},
8+
modules: [
9+
'nuxt-simple-sitemap',
10+
],
11+
12+
nitro: {
13+
prerender: {
14+
crawlLinks: true,
15+
routes: [
16+
'/',
17+
'/hidden-path-but-in-sitemap'
18+
]
19+
}
20+
},
21+
routeRules: {
22+
'/secret': { indexable: false },
23+
'/about': { sitemap: { changefreq: 'daily', priority: 0.3 } }
24+
}
25+
})

.playground/pages/about.vue

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script>
2+
definePageMeta({
3+
title: 'About',
4+
description: 'My description',
5+
image: 'https://example.com/image.jpg',
6+
})
7+
</script>
8+
<template>
9+
<div>
10+
About page
11+
</div>
12+
</template>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
<p>You found me</p>
4+
</div>
5+
</template>

.playground/pages/index.vue

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
definePageMeta({
3+
breadcrumbTitle: 'Home'
4+
})
5+
</script>
6+
<template>
7+
<h1>Hello world</h1>
8+
<p>Welcome to my website</p>
9+
<NuxtLink to="/about">about</NuxtLink>
10+
<NuxtLink to="/secret">about</NuxtLink>
11+
</template>

.playground/pages/secret.vue

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div>
3+
<div>
4+
Secret page, not for robots.
5+
</div>
6+
</div>
7+
</template>

.playground/public/robots.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello

0 commit comments

Comments
 (0)