Skip to content

Commit

Permalink
minor changes to default files
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmorneau committed Oct 29, 2020
1 parent af88cf1 commit 637bd6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ${config.appName}.p1 = {
* @example ${config.appName}.p1.init();
**/
init: function () {
alert('Hello World');
console.log('Hello World');
}
};
Expand All @@ -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;
}`
);
Expand Down
8 changes: 4 additions & 4 deletions lib/modes/pro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}`
);
Expand All @@ -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;
}`
);
Expand All @@ -88,7 +88,7 @@ body {
await fs.writeFile(
path.resolve(process.cwd(), finalConfig.srcFolder, 'main.less'), `@import "less/file1";
body {
main {
background-color: #fff;
}`
);
Expand All @@ -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'));
Expand Down

0 comments on commit 637bd6d

Please sign in to comment.