diff --git a/lib/commands/init.js b/lib/commands/init.js index d8b442c..74a14ae 100644 --- a/lib/commands/init.js +++ b/lib/commands/init.js @@ -54,7 +54,7 @@ ${config.appName}.p1 = { * @example ${config.appName}.p1.init(); **/ init: function () { - alert('Hello World'); + console.log('Hello World'); } }; @@ -63,7 +63,7 @@ $(document).ready(function () { });` ); await fs.writeFile( - path.resolve(process.cwd(), config.srcFolder, `${config.appName}.css`), `body { + path.resolve(process.cwd(), config.srcFolder, `${config.appName}.css`), `main { background-color: #fff; }` ); diff --git a/lib/modes/pro.js b/lib/modes/pro.js index e360d13..e20de06 100644 --- a/lib/modes/pro.js +++ b/lib/modes/pro.js @@ -60,7 +60,7 @@ module.exports = class ProModeInitializer { if (finalConfig.cssExtensions.includes('css')) { finalConfig.mainCss = './src/main.css'; await fs.writeFile( - path.resolve(process.cwd(), finalConfig.srcFolder, 'main.css'), `body { + path.resolve(process.cwd(), finalConfig.srcFolder, 'main.css'), `main { background-color: #fff; }` ); @@ -71,7 +71,7 @@ module.exports = class ProModeInitializer { await fs.writeFile( path.resolve(process.cwd(), finalConfig.srcFolder, 'main.scss'), `@import "scss/file1"; -body { +main { background-color: #fff; }` ); @@ -88,7 +88,7 @@ body { await fs.writeFile( path.resolve(process.cwd(), finalConfig.srcFolder, 'main.less'), `@import "less/file1"; -body { +main { background-color: #fff; }` ); @@ -105,7 +105,7 @@ body { await fs.writeFile( path.resolve(process.cwd(), finalConfig.srcFolder, 'main.styl'), `@import "styl/file1"; -body +main background-color: #fff` ); await fs.ensureDir(path.resolve(process.cwd(), finalConfig.srcFolder, 'styl'));