create-slidev 0.49.29 → 0.50.0-beta.10

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { fileURLToPath } from 'node:url'
2
1
  import { dirname, resolve } from 'node:path'
2
+ import { fileURLToPath } from 'node:url'
3
3
  import fs from 'fs-extra'
4
4
 
5
5
  const __dirname = fileURLToPath(new URL('.', import.meta.url))
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 { execa } from 'execa'
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 execa(agent, ['install'], { stdio: 'inherit', cwd: root })
127
- await execa(agent, ['run', 'dev'], { stdio: 'inherit', cwd: root })
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.49.29",
4
+ "version": "0.50.0-beta.10",
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.1"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "node build.mjs"
@@ -8,9 +8,9 @@
8
8
  "export": "slidev export"
9
9
  },
10
10
  "dependencies": {
11
- "@slidev/cli": "^0.49.29",
11
+ "@slidev/cli": "^0.50.0-beta.10",
12
12
  "@slidev/theme-default": "latest",
13
13
  "@slidev/theme-seriph": "latest",
14
- "vue": "^3.4.38"
14
+ "vue": "^3.5.13"
15
15
  }
16
16
  }
@@ -26,19 +26,16 @@ mdc: true
26
26
 
27
27
  Presentation slides for developers
28
28
 
29
- <div class="pt-12">
30
- <span @click="$slidev.nav.next" class="px-2 py-1 rounded cursor-pointer" hover="bg-white bg-opacity-10">
31
- Press Space for next page <carbon:arrow-right class="inline"/>
32
- </span>
29
+ <div @click="$slidev.nav.next" class="mt-12 py-1" hover:bg="white op-10">
30
+ Press Space for next page <carbon:arrow-right />
33
31
  </div>
34
32
 
35
- <div class="abs-br m-6 flex gap-2">
36
- <button @click="$slidev.nav.openInEditor()" title="Open in Editor" class="text-xl slidev-icon-btn opacity-50 !border-none !hover:text-white">
33
+ <div class="abs-br m-6 text-xl">
34
+ <button @click="$slidev.nav.openInEditor" title="Open in Editor" class="slidev-icon-btn">
37
35
  <carbon:edit />
38
36
  </button>
39
- <a href="https://github.com/slidevjs/slidev" target="_blank" alt="GitHub" title="Open in GitHub"
40
- class="text-xl slidev-icon-btn opacity-50 !border-none !hover:text-white">
41
- <carbon-logo-github />
37
+ <a href="https://github.com/slidevjs/slidev" target="_blank" class="slidev-icon-btn">
38
+ <carbon:logo-github />
42
39
  </a>
43
40
  </div>
44
41
 
@@ -98,12 +95,12 @@ Hover on the bottom-left corner to see the navigation's controls panel, [learn m
98
95
 
99
96
  ## Keyboard Shortcuts
100
97
 
101
- | | |
102
- | --- | --- |
103
- | <kbd>right</kbd> / <kbd>space</kbd>| next animation or slide |
98
+ | | |
99
+ | --------------------------------------------------- | --------------------------- |
100
+ | <kbd>right</kbd> / <kbd>space</kbd> | next animation or slide |
104
101
  | <kbd>left</kbd> / <kbd>shift</kbd><kbd>space</kbd> | previous animation or slide |
105
- | <kbd>up</kbd> | previous slide |
106
- | <kbd>down</kbd> | next slide |
102
+ | <kbd>up</kbd> | previous slide |
103
+ | <kbd>down</kbd> | next slide |
107
104
 
108
105
  <!-- https://sli.dev/guide/animations.html#click-animation -->
109
106
  <img
@@ -124,14 +121,14 @@ layoutClass: gap-16
124
121
  You can use the `Toc` component to generate a table of contents for your slides:
125
122
 
126
123
  ```html
127
- <Toc minDepth="1" maxDepth="1"></Toc>
124
+ <Toc minDepth="1" maxDepth="1" />
128
125
  ```
129
126
 
130
127
  The title will be inferred from your slide content, or you can override it with `title` and `level` in your frontmatter.
131
128
 
132
129
  ::right::
133
130
 
134
- <Toc v-click minDepth="1" maxDepth="2"></Toc>
131
+ <Toc text-sm minDepth="1" maxDepth="2" />
135
132
 
136
133
  ---
137
134
  layout: image-right
@@ -575,7 +572,7 @@ Double-click on the draggable elements to edit their positions.
575
572
 
576
573
  ```md
577
574
  <v-drag text-3xl>
578
- <carbon:arrow-up />
575
+ <div class="i-carbon:arrow-up" />
579
576
  Use the `v-drag` component to have a draggable container!
580
577
  </v-drag>
581
578
  ```