create-slidev-theme 0.43.11 → 0.43.12
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/{index.js → index.mjs} +13 -8
- package/package.json +4 -3
- package/template/package.json +2 -2
- package/template/setup/windicss.ts +0 -14
package/{index.js → index.mjs}
RENAMED
|
@@ -2,15 +2,20 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
4
|
// @ts-check
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import process from 'node:process'
|
|
6
|
+
import fs from 'node:fs'
|
|
7
|
+
import path from 'node:path'
|
|
8
|
+
import { createRequire } from 'node:module'
|
|
9
|
+
import { fileURLToPath } from 'node:url'
|
|
10
|
+
import minimist from 'minimist'
|
|
11
|
+
import prompts from 'prompts'
|
|
12
|
+
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
13
|
+
|
|
14
|
+
const argv = minimist(process.argv.slice(2))
|
|
13
15
|
const cwd = process.cwd()
|
|
16
|
+
const require = createRequire(import.meta.url)
|
|
17
|
+
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
|
18
|
+
const { version } = require('./package.json')
|
|
14
19
|
|
|
15
20
|
const renameFiles = {
|
|
16
21
|
_gitignore: '.gitignore',
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-slidev-theme",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.43.12",
|
|
4
5
|
"description": "Create starter theme template for Slidev",
|
|
5
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
7
|
"license": "MIT",
|
|
@@ -11,9 +12,9 @@
|
|
|
11
12
|
"url": "https://github.com/slidevjs/slidev"
|
|
12
13
|
},
|
|
13
14
|
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
14
|
-
"main": "index.
|
|
15
|
+
"main": "index.mjs",
|
|
15
16
|
"bin": {
|
|
16
|
-
"create-slidev-theme": "index.
|
|
17
|
+
"create-slidev-theme": "index.mjs"
|
|
17
18
|
},
|
|
18
19
|
"engines": {
|
|
19
20
|
"node": ">=18.0.0"
|
package/template/package.json
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"screenshot": "slidev export example.md --format png"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@slidev/types": "^0.43.
|
|
18
|
+
"@slidev/types": "^0.43.12",
|
|
19
19
|
"codemirror-theme-vars": "^0.1.2",
|
|
20
20
|
"prism-theme-vars": "^0.2.4",
|
|
21
21
|
"theme-vitesse": "^0.7.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@slidev/cli": "^0.43.
|
|
24
|
+
"@slidev/cli": "^0.43.12"
|
|
25
25
|
},
|
|
26
26
|
"//": "Learn more: https://sli.dev/themes/write-a-theme.html",
|
|
27
27
|
"slidev": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'node:path'
|
|
2
|
-
import { defineWindiSetup } from '@slidev/types'
|
|
3
|
-
|
|
4
|
-
export default defineWindiSetup(() => ({
|
|
5
|
-
extract: {
|
|
6
|
-
include: [
|
|
7
|
-
resolve(__dirname, '../**/*.{vue,ts}'),
|
|
8
|
-
],
|
|
9
|
-
},
|
|
10
|
-
shortcuts: {
|
|
11
|
-
// custom the default background
|
|
12
|
-
'bg-main': 'bg-white text-[#181818] dark:(bg-[#121212] text-[#ddd])',
|
|
13
|
-
},
|
|
14
|
-
}))
|