Skip to content

Commit 374f7bd

Browse files
authored
chore: enable lazy mode by default (#88)
1 parent 75b29b5 commit 374f7bd

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.changeset/real-clouds-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alauda/doom": patch
3+
---
4+
5+
chore: enable `lazy` mode by default

docs/en/start.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Options:
103103
-R, --edit-repo [boolean|url] Whether to enable or override the `editRepoBaseUrl` config feature, `https://github.com/` prefix could be omitted (default: false)
104104
-a, --algolia [boolean|alauda] Whether to enable or use the alauda (docs.alauda.io) preset for Algolia search (default: false)
105105
-S, --site-url Whether to enable the siteUrl for sitemap generation (default: false)
106-
-n, --no-open [boolean] Do not open the browser after starting the server
106+
-n, --no-open Do not open the browser after starting the server
107107
-h, --help display help for command
108108

109109
Commands:
@@ -137,7 +137,8 @@ Arguments:
137137
Options:
138138
-H, --host [host] Dev server host name
139139
-P, --port [port] Dev server port number
140-
-l, --lazy [boolean] Whether to enable `lazyCompilation` which could improve the compilation performance (default: false)
140+
-l, --lazy [boolean] Whether to enable `lazyCompilation` which could improve the compilation performance (default: true)
141+
--no-lazy Do not enable `lazyCompilation`
141142
-h, --help display help for command
142143
```
143144

docs/zh/start.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Options:
9999
-R, --edit-repo [boolean|url] Whether to enable or override the `editRepoBaseUrl` config feature, `https://github.com/` prefix could be omitted (default: false)
100100
-a, --algolia [boolean|alauda] Whether to enable or use the alauda (docs.alauda.io) preset for Algolia search (default: false)
101101
-S, --site-url Whether to enable the siteUrl for sitemap generation (default: false)
102-
-n, --no-open [boolean] Do not open the browser after starting the server
102+
-n, --no-open Do not open the browser after starting the server
103103
-h, --help display help for command
104104

105105
Commands:
@@ -133,7 +133,8 @@ Arguments:
133133
Options:
134134
-H, --host [host] Dev server host name
135135
-P, --port [port] Dev server port number
136-
-l, --lazy [boolean] Whether to enable `lazyCompilation` which could improve the compilation performance (default: false)
136+
-l, --lazy [boolean] Whether to enable `lazyCompilation` which could improve the compilation performance (default: true)
137+
--no-lazy Do not enable `lazyCompilation`
137138
-h, --help display help for command
138139
```
139140

src/cli/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ program
113113
parseBoolean,
114114
false,
115115
)
116-
.option(
117-
'-n, --no-open [boolean]',
118-
'Do not open the browser after starting the server',
119-
)
116+
.option('-n, --no-open', 'Do not open the browser after starting the server')
120117
.command('dev', { isDefault: true })
121118
.description('Start the development server')
122119
.argument('[root]', 'Root directory of the documentation')
@@ -126,8 +123,9 @@ program
126123
'-l, --lazy [boolean]',
127124
'Whether to enable `lazyCompilation` which could improve the compilation performance',
128125
parseBoolean,
129-
false,
126+
true,
130127
)
128+
.option('--no-lazy', 'Do not enable `lazyCompilation`')
131129
.action(async function (this: Command, root?: string) {
132130
setNodeEnv('development')
133131

0 commit comments

Comments
 (0)