@caweb/cli 1.12.0 → 1.12.1
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/commands/env/start.js
CHANGED
|
@@ -105,6 +105,11 @@ export default async function createSite({
|
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
// create content/pages directory if it doesn't exist
|
|
109
|
+
if( ! fs.existsSync( path.join( appPath, 'content', 'pages' ) ) ) {
|
|
110
|
+
fs.mkdirSync( path.join( appPath, 'content', 'pages' ), { recursive: true });
|
|
111
|
+
}
|
|
112
|
+
|
|
108
113
|
// create media directory if it doesn't exist
|
|
109
114
|
if( ! fs.existsSync( path.join( appPath, 'media' ) ) ) {
|
|
110
115
|
fs.mkdirSync( path.join( appPath, 'media' ) );
|