Skip to content

Commit bdbf1fb

Browse files
committed
improve demo css
1 parent dcfc507 commit bdbf1fb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/react-scripts/scripts/init.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ module.exports = function(
8989
);
9090

9191
let command;
92-
let args;
92+
let depArgs;
9393

9494
if (useYarn) {
9595
command = 'yarnpkg';
96-
args = ['add'];
96+
depArgs = ['add'];
9797
} else {
9898
command = 'npm';
99-
args = ['install', '--save', verbose && '--verbose'].filter(e => e);
99+
depArgs = ['install', '--save', verbose && '--verbose'].filter(e => e);
100100
}
101-
args.push('react', 'react-dom');
101+
depArgs.push('react', 'react-dom');
102102

103103
// Install additional template dependencies, if present
104104
const templateDependenciesPath = path.join(
@@ -107,7 +107,7 @@ module.exports = function(
107107
);
108108
if (fs.existsSync(templateDependenciesPath)) {
109109
const templateDependencies = require(templateDependenciesPath).dependencies;
110-
args = args.concat(
110+
depArgs = depArgs.concat(
111111
Object.keys(templateDependencies).map(key => {
112112
return `${key}@${templateDependencies[key]}`;
113113
})
@@ -122,9 +122,9 @@ module.exports = function(
122122
console.log(`Installing react and react-dom using ${command}...`);
123123
console.log();
124124

125-
const proc = spawn.sync(command, args, { stdio: 'inherit' });
125+
const proc = spawn.sync(command, depArgs, { stdio: 'inherit' });
126126
if (proc.status !== 0) {
127-
console.error(`\`${command} ${args.join(' ')}\` failed`);
127+
console.error(`\`${command} ${depArgs.join(' ')}\` failed`);
128128
return;
129129
}
130130
}

packages/react-scripts/template/src/components/example/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.wrapper {
22
display: flex;
3-
height: 100vh;
3+
height: 100%;
44
flex-direction: column;
55

66
&.isTwoColumn {

0 commit comments

Comments
 (0)