Skip to content

Commit 1ba2bd1

Browse files
committed
initial commit
0 parents  commit 1ba2bd1

18 files changed

+2911
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.local
5+
index.html
6+
.remote-assets
7+
components.d.ts

.gitmodules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[submodule "public/examples/simple-webpack-proj"]
2+
path = public/examples/simple-webpack-proj
3+
url = https://github.com/panda2134/simple-webpack-proj
4+
[submodule "public/examples/webpack-conf1"]
5+
path = public/examples/webpack-conf1
6+
url = https://github.com/panda2134/simple-webpack-proj
7+
branch = conf
8+

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# for pnpm
2+
shamefully-hoist=true

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Welcome to [Slidev](https://github.com/slidevjs/slidev)!
2+
3+
To start the slide show:
4+
5+
- `npm install`
6+
- `npm run dev`
7+
- visit http://localhost:3030
8+
9+
Edit the [slides.md](./slides.md) to see the changes.
10+
11+
Learn more about Slidev on [documentations](https://sli.dev/).

components/Counter.vue

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<script setup lang="ts">
2+
import { ref } from 'vue'
3+
4+
const props = defineProps({
5+
count: {
6+
default: 0,
7+
},
8+
})
9+
10+
const counter = ref(props.count)
11+
</script>
12+
13+
<template>
14+
<div flex="~" w="min" border="~ gray-400 opacity-50 rounded-md">
15+
<button
16+
border="r gray-400 opacity-50"
17+
p="2"
18+
font="mono"
19+
outline="!none"
20+
hover:bg="gray-400 opacity-20"
21+
@click="counter -= 1"
22+
>
23+
-
24+
</button>
25+
<span m="auto" p="2">{{ counter }}</span>
26+
<button
27+
border="l gray-400 opacity-50"
28+
p="2"
29+
font="mono"
30+
outline="!none"
31+
hover:bg="gray-400 opacity-20"
32+
@click="counter += 1"
33+
>
34+
+
35+
</button>
36+
</div>
37+
</template>

netlify.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build.environment]
2+
NODE_VERSION = "14"
3+
4+
[build]
5+
publish = "dist"
6+
command = "yarn build"
7+
8+
[[redirects]]
9+
from = "/img/*"
10+
to = "/img/:splat"
11+
status = 200
12+
force = true
13+
14+
[[redirects]]
15+
from = "/assets/*"
16+
to = "/assets/:splat"
17+
status = 200
18+
force = true
19+
20+
[[redirects]]
21+
from = "/examples/*"
22+
to = "/examples/:splat"
23+
status = 200
24+
force = true
25+
26+
27+
[[redirects]]
28+
from = "/slidev-exported.pdf"
29+
to = "/slidev-exported.pdf"
30+
status = 200
31+
force = true
32+
33+
[[redirects]]
34+
from = "/*"
35+
to = "/index.html"
36+
status = 200
37+
force = false

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "slidev --open",
5+
"build": "slidev build",
6+
"export": "slidev export"
7+
},
8+
"dependencies": {
9+
"@slidev/cli": "^0.22.5",
10+
"@slidev/theme-default": "*",
11+
"@slidev/theme-seriph": "^0.19.1",
12+
"playwright-chromium": "^1.12.3"
13+
},
14+
"name": "webpack-tutorial"
15+
}
Submodule simple-webpack-proj added at ff986c6

public/examples/webpack-conf1

Submodule webpack-conf1 added at 2792de2
115 KB
Loading

0 commit comments

Comments
 (0)