clovie 0.1.2 → 0.1.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/README.md
CHANGED
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
Clovie supports asynchronous data loading for dynamic content:
|
|
136
136
|
|
|
137
137
|
```javascript
|
|
138
|
-
//
|
|
138
|
+
// clovie.config.js
|
|
139
139
|
export default {
|
|
140
140
|
// ... other config
|
|
141
141
|
data: async () => {
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
Create multiple pages from data arrays using the models system:
|
|
158
158
|
|
|
159
159
|
```javascript
|
|
160
|
-
//
|
|
160
|
+
// clovie.config.js
|
|
161
161
|
export default {
|
|
162
162
|
// ... other config
|
|
163
163
|
data: {
|
|
@@ -369,7 +369,7 @@ When you create a new project with `clovie create`, you get this structure:
|
|
|
369
369
|
|
|
370
370
|
```
|
|
371
371
|
my-site/
|
|
372
|
-
├──
|
|
372
|
+
├── clovie.config.js # Configuration
|
|
373
373
|
├── package.json # Dependencies and scripts
|
|
374
374
|
├── README.md # Project documentation
|
|
375
375
|
├── views/ # HTML templates
|
|
@@ -386,7 +386,7 @@ You can also create your own structure:
|
|
|
386
386
|
|
|
387
387
|
```
|
|
388
388
|
my-site/
|
|
389
|
-
├──
|
|
389
|
+
├── clovie.config.js # Configuration
|
|
390
390
|
├── views/ # Templates
|
|
391
391
|
│ ├── _base.html # Base template (partial)
|
|
392
392
|
│ ├── _header.html # Header partial
|
package/bin/cli.js
CHANGED
|
@@ -77,7 +77,7 @@ const argv = mainOptions._unknown || [];
|
|
|
77
77
|
|
|
78
78
|
// Command-specific options
|
|
79
79
|
const optionDefinitions = [
|
|
80
|
-
{ name: 'config', alias: 'c', type: String, defaultValue: '
|
|
80
|
+
{ name: 'config', alias: 'c', type: String, defaultValue: 'clovie.config.js' },
|
|
81
81
|
{ name: 'watch', alias: 'w', type: Boolean },
|
|
82
82
|
{ name: 'template', alias: 't', type: String, defaultValue: 'default' }
|
|
83
83
|
];
|
package/package.json
CHANGED
|
File without changes
|