create-valaxy 0.7.8 → 0.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.7.8",
3
+ "version": "0.9.0",
4
4
  "description": "Create Starter Template for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -11,7 +11,7 @@
11
11
  "serve": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "valaxy": "0.7.8",
15
- "valaxy-theme-yun": "0.7.8"
14
+ "valaxy": "0.9.0",
15
+ "valaxy-theme-yun": "0.9.0"
16
16
  }
17
17
  }
@@ -3,6 +3,7 @@
3
3
  You can override styles here.
4
4
 
5
5
  - New file `index.scss` to write global css.
6
- - New file `vars.scss` to set css vars.
6
+ - New file `css-vars.scss` to set css vars.
7
7
 
8
- Only `index.scss`/`vars.scss`/`index.css` will be loaded automatically.
8
+ <!-- todo: new docs -->
9
+ More info see <https://valaxy.site/guide/extend>.
File without changes
@@ -14,7 +14,7 @@
14
14
  "strictNullChecks": true,
15
15
  "forceConsistentCasingInFileNames": true,
16
16
  "paths": {
17
- "@/*": ["./*"]
17
+ "~/*": ["./*"]
18
18
  }
19
19
  },
20
20
  "exclude": ["dist", "node_modules"]
@@ -1,11 +1,10 @@
1
- import type { UserConfig } from 'valaxy'
2
- import type { ThemeUserConfig } from 'valaxy-theme-yun'
1
+ import { defineConfig } from 'valaxy'
2
+ import type { ThemeConfig } from 'valaxy-theme-yun'
3
3
 
4
4
  /**
5
5
  * User Config
6
- * do not use export const
7
6
  */
8
- const config: UserConfig<ThemeUserConfig> = {
7
+ export default defineConfig<ThemeConfig>({
9
8
  lang: 'zh-CN',
10
9
  title: 'Valaxy Theme Yun',
11
10
  author: {
@@ -153,6 +152,4 @@ const config: UserConfig<ThemeUserConfig> = {
153
152
  },
154
153
  },
155
154
  },
156
- }
157
-
158
- export default config
155
+ })