generator-nitro 11.0.5 → 11.0.7
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/generators/app/templates/CUTAWAYpackage.json +2 -1
- package/generators/app/templates/project/docs/client-templates.md +2 -2
- package/generators/app/templates/project/docs/nitro-config.md +7 -5
- package/generators/app/templates/project/docs/nitro-themes.md +1 -1
- package/generators/server/templates/package.json +1 -1
- package/package.json +1 -1
|
@@ -120,12 +120,13 @@
|
|
|
120
120
|
"husky": "9.1.7",
|
|
121
121
|
"license-checker": "25.0.1",
|
|
122
122
|
"lighthouse": "13.0.3",
|
|
123
|
-
"lint-staged": "16.3.
|
|
123
|
+
"lint-staged": "16.3.3",
|
|
124
124
|
"npm-check-updates": "19.6.3",
|
|
125
125
|
"npm-run-all": "4.1.5",
|
|
126
126
|
"prettier": "3.8.1",
|
|
127
127
|
"rimraf": "6.1.3",
|
|
128
128
|
"stylelint": "16.26.1",<% if (options.jsCompiler === 'ts') { %>
|
|
129
|
+
"tslib": "2.8.1",
|
|
129
130
|
"typescript": "5.9.3",<% } %>
|
|
130
131
|
"webpack": "5.105.4",
|
|
131
132
|
"webpack-cli": "6.0.1",
|
|
@@ -15,7 +15,7 @@ The template name has not to contain slashes or special characters. Use only nam
|
|
|
15
15
|
|
|
16
16
|
The following js code shows an example how to use a precompiled template.
|
|
17
17
|
|
|
18
|
-
```
|
|
18
|
+
```js
|
|
19
19
|
const templateExample = require('../../template/example.hbs');
|
|
20
20
|
const tplData = {
|
|
21
21
|
title: 'Client Side Rendered Example Module',
|
|
@@ -37,7 +37,7 @@ in your `.hbs` file (e.g. `{{> partial/example.link}}`)
|
|
|
37
37
|
### Helpers
|
|
38
38
|
|
|
39
39
|
Require clientside handlebars helpers in your pattern source. You may place them in `template/helper`
|
|
40
|
-
or in a shared pattern (e.g in `
|
|
40
|
+
or in a shared pattern (e.g in `src/shared/utils/hbs-helpers`)
|
|
41
41
|
|
|
42
42
|
## Handlebars versions
|
|
43
43
|
|
|
@@ -149,11 +149,13 @@ For backwards compatibility, you can set it to `false`, to get the loading behav
|
|
|
149
149
|
|
|
150
150
|
#### Example config
|
|
151
151
|
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
```js
|
|
153
|
+
const config = {
|
|
154
|
+
server: {
|
|
155
|
+
port: 8080,
|
|
156
|
+
hmrPort: 3000,
|
|
157
|
+
host: 'dev.local',
|
|
158
|
+
},
|
|
157
159
|
}
|
|
158
160
|
```
|
|
159
161
|
|