create-pressplus 1.0.0 → 1.0.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/index.mjs CHANGED
@@ -72,6 +72,13 @@ async function copyTemplate(src, dest) {
72
72
  const spinner = ora(`正在创建项目...`).start();
73
73
  try {
74
74
  await copy(src, dest);
75
+
76
+ const gitignoreSrc = join(dest, "_gitignore");
77
+ const gitignoreDest = join(dest, ".gitignore");
78
+ if (fsExtra.existsSync(gitignoreSrc)) {
79
+ await fsExtra.rename(gitignoreSrc, gitignoreDest);
80
+ }
81
+
75
82
  spinner.succeed("项目创建成功");
76
83
  } catch (err) {
77
84
  spinner.fail("项目创建失败");
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "create-pressplus",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "一个基于 VitePress 的现代化文档模板",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "create-vueplus": "./index.mjs"
7
+ "create-pressplus": "./index.mjs"
8
8
  },
9
9
  "files": [
10
10
  "index.mjs",
@@ -0,0 +1,10 @@
1
+ {
2
+ "plugins": ["prettier-plugin-tailwindcss"],
3
+ "useTabs": true,
4
+ "tabWidth": 4,
5
+ "vueIndentScriptAndStyle": false,
6
+ "printWidth": 120,
7
+ "singleQuote": true,
8
+ "semi": true,
9
+ "htmlWhitespaceSensitivity": "ignore"
10
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
4
+ "editor.codeActionsOnSave": {
5
+ "source.fixAll.eslint": "explicit"
6
+ },
7
+ "[vue]": {
8
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
9
+ },
10
+ "[typescript]": {
11
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
12
+ },
13
+ "[javascript]": {
14
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
15
+ },
16
+ "[json]": {
17
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
18
+ },
19
+ "eslint.validate": [
20
+ "javascript",
21
+ "javascriptreact",
22
+ "typescript",
23
+ "typescriptreact",
24
+ "vue"
25
+ ],
26
+ "prettier.requireConfig": true
27
+ }
@@ -0,0 +1,6 @@
1
+ # Dependencies
2
+ node_modules
3
+
4
+ # VitePress build output
5
+ docs/.vitepress/dist
6
+ docs/.vitepress/cache
@@ -3,19 +3,14 @@ import { defineConfig } from 'vitepress';
3
3
 
4
4
  // https://vitepress.dev/reference/site-config
5
5
  export default defineConfig({
6
- title: 'JoJo的个人博客',
7
- description: 'JoJo的个人博客,分享技术文章、生活记录和项目经验',
8
-
9
- // Markdown 配置
10
- markdown: {
11
- theme: {
12
- light: 'github-light',
13
- dark: 'github-dark',
14
- },
15
- lineNumbers: true, // 显示行号
16
- },
6
+ title: '',
7
+ description: '',
17
8
 
18
9
  vite: {
19
10
  plugins: [tailwindcss()],
20
11
  },
12
+
13
+ head: [
14
+ ['link', { rel: 'icon', href: '/favicon.ico' }],
15
+ ]
21
16
  });
@@ -3,8 +3,10 @@ import { Content } from 'vitepress';
3
3
  </script>
4
4
 
5
5
  <template>
6
- <div class="w-full">
7
- <Content />
6
+ <div class="relative w-full">
7
+ <main class="vp-doc flex h-full min-h-screen w-full flex-col">
8
+ <Content />
9
+ </main>
8
10
  </div>
9
11
  </template>
10
12
 
@@ -1,5 +1,6 @@
1
1
  import type { Theme } from 'vitepress';
2
2
  import Layout from './Layout.vue';
3
+ import 'vitepress/theme';
3
4
  import './style.css';
4
5
 
5
6
  export default {
@@ -1,6 +1,5 @@
1
1
  @import 'tailwindcss';
2
2
 
3
- /* 基础样式重置 */
4
3
  *,
5
4
  *::before,
6
5
  *::after {
@@ -10,4 +9,21 @@
10
9
  body {
11
10
  margin: 0;
12
11
  padding: 0;
13
- }
12
+ }
13
+
14
+ @theme {
15
+
16
+ }
17
+
18
+ @layer base {
19
+
20
+ }
21
+
22
+ @layer components {
23
+
24
+ }
25
+
26
+ @layer utilities {
27
+
28
+ }
29
+
@@ -3,5 +3,5 @@ home: true
3
3
  ---
4
4
 
5
5
  <h1 class="w-full h-screen flex items-center justify-center text-3xl font-bold underline text-[#C75CC9]">
6
- Hello VitePress
6
+ Home
7
7
  </h1>
Binary file
@@ -1,9 +1,10 @@
1
1
  {
2
- "name": "template",
2
+ "name": "press-blog",
3
3
  "lockfileVersion": 3,
4
4
  "requires": true,
5
5
  "packages": {
6
6
  "": {
7
+ "name": "press-blog",
7
8
  "dependencies": {
8
9
  "@tailwindcss/postcss": "^4.1.18",
9
10
  "@tailwindcss/vite": "^4.1.18",
@@ -15,8 +16,7 @@
15
16
  "eslint-config-prettier": "^10.1.8",
16
17
  "postcss": "^8.5.6",
17
18
  "prettier": "^3.8.1",
18
- "prettier-plugin-tailwindcss": "^0.7.2",
19
- "tailwindcss": "^4.1.18"
19
+ "prettier-plugin-tailwindcss": "^0.7.2"
20
20
  }
21
21
  },
22
22
  "node_modules/@algolia/abtesting": {
@@ -1,4 +1,5 @@
1
1
  {
2
+ "name": "press-blog",
2
3
  "scripts": {
3
4
  "dev": "vitepress dev docs",
4
5
  "build": "vitepress build docs",
@@ -15,7 +16,6 @@
15
16
  "eslint-config-prettier": "^10.1.8",
16
17
  "postcss": "^8.5.6",
17
18
  "prettier": "^3.8.1",
18
- "prettier-plugin-tailwindcss": "^0.7.2",
19
- "tailwindcss": "^4.1.18"
19
+ "prettier-plugin-tailwindcss": "^0.7.2"
20
20
  }
21
21
  }
@@ -1,4 +1,3 @@
1
1
  export default {
2
2
  plugins: ['prettier-plugin-tailwindcss'],
3
- tailwindConfig: './tailwind.config.ts',
4
3
  };
@@ -1,31 +0,0 @@
1
- {
2
- "hash": "ada4f81b",
3
- "configHash": "bde764a9",
4
- "lockfileHash": "baacf20b",
5
- "browserHash": "1a9d3965",
6
- "optimized": {
7
- "vue": {
8
- "src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
9
- "file": "vue.js",
10
- "fileHash": "4a3f86cb",
11
- "needsInterop": false
12
- },
13
- "vitepress > @vue/devtools-api": {
14
- "src": "../../../../node_modules/@vue/devtools-api/dist/index.js",
15
- "file": "vitepress___@vue_devtools-api.js",
16
- "fileHash": "a9540d98",
17
- "needsInterop": false
18
- },
19
- "vitepress > @vueuse/core": {
20
- "src": "../../../../node_modules/@vueuse/core/index.mjs",
21
- "file": "vitepress___@vueuse_core.js",
22
- "fileHash": "4fccfa93",
23
- "needsInterop": false
24
- }
25
- },
26
- "chunks": {
27
- "chunk-XKDLJUKD": {
28
- "file": "chunk-XKDLJUKD.js"
29
- }
30
- }
31
- }