create-slidev 0.49.28 → 0.50.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.mjs +1 -1
- package/index.mjs +7 -7
- package/package.json +3 -3
- package/template/package.json +2 -2
- package/template/slides.md +12 -9
package/build.mjs
CHANGED
package/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
|
-
// @ts-check
|
|
5
|
-
import process from 'node:process'
|
|
6
4
|
import fs from 'node:fs'
|
|
7
|
-
import path from 'node:path'
|
|
8
5
|
import { createRequire } from 'node:module'
|
|
6
|
+
import path from 'node:path'
|
|
7
|
+
// @ts-check
|
|
8
|
+
import process from 'node:process'
|
|
9
9
|
import { fileURLToPath } from 'node:url'
|
|
10
|
+
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
10
11
|
import minimist from 'minimist'
|
|
11
12
|
import prompts from 'prompts'
|
|
12
|
-
import {
|
|
13
|
-
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
13
|
+
import { x } from 'tinyexec'
|
|
14
14
|
|
|
15
15
|
const argv = minimist(process.argv.slice(2))
|
|
16
16
|
const cwd = process.cwd()
|
|
@@ -123,8 +123,8 @@ async function init() {
|
|
|
123
123
|
if (!agent)
|
|
124
124
|
return
|
|
125
125
|
|
|
126
|
-
await
|
|
127
|
-
await
|
|
126
|
+
await x(agent, ['install'], { nodeOptions: { stdio: 'inherit', cwd: root } })
|
|
127
|
+
await x(agent, ['run', 'dev'], { nodeOptions: { stdio: 'inherit', cwd: root } })
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
130
|
console.log(dim('\n start it later by:\n'))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-slidev",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.50.0-beta.1",
|
|
5
5
|
"description": "Create starter template for Slidev",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"node": ">=18.0.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"execa": "^9.3.1",
|
|
24
23
|
"kolorist": "^1.8.0",
|
|
25
24
|
"minimist": "^1.2.8",
|
|
26
|
-
"prompts": "^2.4.2"
|
|
25
|
+
"prompts": "^2.4.2",
|
|
26
|
+
"tinyexec": "^0.3.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "node build.mjs"
|
package/template/package.json
CHANGED
package/template/slides.md
CHANGED
|
@@ -20,6 +20,8 @@ drawings:
|
|
|
20
20
|
transition: slide-left
|
|
21
21
|
# enable MDC Syntax: https://sli.dev/features/mdc
|
|
22
22
|
mdc: true
|
|
23
|
+
# take snapshot for each slide in the overview
|
|
24
|
+
overviewSnapshots: true
|
|
23
25
|
---
|
|
24
26
|
|
|
25
27
|
# Welcome to Slidev
|
|
@@ -94,7 +96,7 @@ level: 2
|
|
|
94
96
|
|
|
95
97
|
# Navigation
|
|
96
98
|
|
|
97
|
-
Hover on the bottom-left corner to see the navigation's controls panel, [learn more](https://sli.dev/guide/navigation
|
|
99
|
+
Hover on the bottom-left corner to see the navigation's controls panel, [learn more](https://sli.dev/guide/ui#navigation-bar)
|
|
98
100
|
|
|
99
101
|
## Keyboard Shortcuts
|
|
100
102
|
|
|
@@ -140,7 +142,7 @@ image: https://cover.sli.dev
|
|
|
140
142
|
|
|
141
143
|
# Code
|
|
142
144
|
|
|
143
|
-
Use code snippets and get the highlighting directly, and even types hover!
|
|
145
|
+
Use code snippets and get the highlighting directly, and even types hover!
|
|
144
146
|
|
|
145
147
|
```ts {all|5|7|7-8|10|all} twoslash
|
|
146
148
|
// TwoSlash enables TypeScript hover information
|
|
@@ -161,7 +163,8 @@ doubled.value = 2
|
|
|
161
163
|
<<< @/snippets/external.ts#snippet
|
|
162
164
|
|
|
163
165
|
<!-- Footer -->
|
|
164
|
-
|
|
166
|
+
|
|
167
|
+
[Learn more](https://sli.dev/features/line-highlighting)
|
|
165
168
|
|
|
166
169
|
<!-- Inline style -->
|
|
167
170
|
<style>
|
|
@@ -330,8 +333,8 @@ theme: seriph
|
|
|
330
333
|
|
|
331
334
|
</div>
|
|
332
335
|
|
|
333
|
-
Read more about [How to use a theme](https://sli.dev/
|
|
334
|
-
check out the [Awesome Themes Gallery](https://sli.dev/
|
|
336
|
+
Read more about [How to use a theme](https://sli.dev/guide/theme-addon#use-theme) and
|
|
337
|
+
check out the [Awesome Themes Gallery](https://sli.dev/resources/theme-gallery).
|
|
335
338
|
|
|
336
339
|
---
|
|
337
340
|
|
|
@@ -366,7 +369,7 @@ also allows you to add
|
|
|
366
369
|
|
|
367
370
|
<div mt-20 v-click>
|
|
368
371
|
|
|
369
|
-
[Learn
|
|
372
|
+
[Learn more](https://sli.dev/guide/animations#click-animation)
|
|
370
373
|
|
|
371
374
|
</div>
|
|
372
375
|
|
|
@@ -446,7 +449,7 @@ const final = {
|
|
|
446
449
|
:initial="{ x:35, y: 30, opacity: 0}"
|
|
447
450
|
:enter="{ y: 0, opacity: 1, transition: { delay: 3500 } }">
|
|
448
451
|
|
|
449
|
-
[Learn
|
|
452
|
+
[Learn more](https://sli.dev/guide/animations.html#motion)
|
|
450
453
|
|
|
451
454
|
</div>
|
|
452
455
|
|
|
@@ -548,7 +551,7 @@ database "MySql" {
|
|
|
548
551
|
|
|
549
552
|
</div>
|
|
550
553
|
|
|
551
|
-
Learn
|
|
554
|
+
Learn more: [Mermaid Diagrams](https://sli.dev/features/mermaid) and [PlantUML Diagrams](https://sli.dev/features/plantuml)
|
|
552
555
|
|
|
553
556
|
---
|
|
554
557
|
foo: bar
|
|
@@ -633,6 +636,6 @@ class: text-center
|
|
|
633
636
|
|
|
634
637
|
# Learn More
|
|
635
638
|
|
|
636
|
-
[Documentation](https://sli.dev) · [GitHub](https://github.com/slidevjs/slidev) · [Showcases](https://sli.dev/showcases
|
|
639
|
+
[Documentation](https://sli.dev) · [GitHub](https://github.com/slidevjs/slidev) · [Showcases](https://sli.dev/resources/showcases)
|
|
637
640
|
|
|
638
641
|
<PoweredBySlidev mt-10 />
|