windowpp 0.1.9 → 0.1.10
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/lib/create.js +11 -3
- package/package.json +1 -1
package/lib/create.js
CHANGED
|
@@ -140,9 +140,17 @@ async function create(name, options = {}) {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
console.log(`\n-- Created "${name}"\n`);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
|
|
144
|
+
if (options.autoRun !== false) {
|
|
145
|
+
console.log('Starting dev mode...\n');
|
|
146
|
+
const { dev } = require('./dev');
|
|
147
|
+
process.chdir(appDir);
|
|
148
|
+
dev({ clean: false });
|
|
149
|
+
} else {
|
|
150
|
+
console.log('Next steps:');
|
|
151
|
+
console.log(` cd ${name}`);
|
|
152
|
+
console.log(' windowpp dev\n');
|
|
153
|
+
}
|
|
146
154
|
}
|
|
147
155
|
|
|
148
156
|
module.exports = { create };
|