create-valaxy 0.11.1 → 0.11.3

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 CHANGED
@@ -37,7 +37,9 @@ async function init() {
37
37
  const packageName = await getValidPackageName(targetDir)
38
38
  const root = path.join(cwd, targetDir)
39
39
 
40
- if (!fs.existsSync(root)) { fs.mkdirSync(root, { recursive: true }) }
40
+ if (!fs.existsSync(root)) {
41
+ fs.mkdirSync(root, { recursive: true })
42
+ }
41
43
  else {
42
44
  const existing = fs.readdirSync(root)
43
45
  if (existing.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Create Starter Template for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "execa": "5",
25
25
  "kolorist": "^1.6.0",
26
- "minimist": "^1.2.6",
26
+ "minimist": "^1.2.7",
27
27
  "prompts": "^2.4.2"
28
28
  }
29
29
  }
@@ -0,0 +1,2 @@
1
+ node_modules
2
+ dist
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
@@ -0,0 +1,18 @@
1
+ FROM node:16-alpine as build-stage
2
+
3
+ WORKDIR /app
4
+ RUN corepack enable
5
+
6
+ COPY .npmrc package.json ./
7
+ RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
8
+ pnpm install
9
+
10
+ COPY . .
11
+ RUN pnpm build
12
+
13
+ FROM nginx:stable-alpine as production-stage
14
+
15
+ COPY --from=build-stage /app/dist /usr/share/nginx/html
16
+ EXPOSE 80
17
+
18
+ CMD ["nginx", "-g", "daemon off;"]
@@ -24,6 +24,12 @@ English & Chinese Docs is coming!
24
24
 
25
25
  > Wait a minute.
26
26
 
27
+ ### Docker
28
+
29
+ ```bash
30
+ docker build . -t your-valaxy-blog-name:latest
31
+ ```
32
+
27
33
  ## Structure
28
34
 
29
35
  In most cases, you only need to work in the `pages` folder.
@@ -11,7 +11,10 @@
11
11
  "serve": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "valaxy": "0.11.1",
15
- "valaxy-theme-yun": "0.11.1"
14
+ "valaxy": "0.11.3",
15
+ "valaxy-theme-yun": "0.11.3"
16
+ },
17
+ "devDependencies": {
18
+ "typescript": "^4.8.4"
16
19
  }
17
20
  }
@@ -10,6 +10,7 @@ const safelist = [
10
10
  * User Config
11
11
  */
12
12
  export default defineConfig<ThemeConfig>({
13
+ url: 'https://valaxy.site/',
13
14
  lang: 'zh-CN',
14
15
  title: 'Valaxy Theme Yun',
15
16
  author: {