Skip to content

Commit

Permalink
fix(sra): modified order of checkappname in createApp func
Browse files Browse the repository at this point in the history
  • Loading branch information
maumercado committed Jun 11, 2019
1 parent 27597eb commit e2a7aa6
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 66 deletions.
8 changes: 2 additions & 6 deletions bin/sra.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,7 @@ const executeCreation = async (root, appName) => {
await setupRepo(root, spinner);
await copyReactTemplateApp(root, appName, spinner);
log(
boxen(`Your react application ${appName} is ready to go!\n
To start coding the app run: cd ${appName}\n
To start executing the application run: ${npm run start}\n
To start executing the application tests run: ${npm run test}
`,
boxen(`Your react application ${appName} is ready to go!\n To start coding the app run: cd ${appName}\n To start executing the application run: npm run start\n To start executing the application tests run: npm run test`,
{ padding: 1, borderStyle: 'doubleSingle', align: 'center ' }),
);
} catch (err) {
Expand All @@ -271,9 +267,9 @@ const executeCreation = async (root, appName) => {
*/
const createApp = (name) => {
// Project root directory
checkAppName(name);
const root = path.resolve(name);

checkAppName(name);
fs.ensureDirSync(name);

log(`Creating a new React app in ${chalk.green(root)}.`);
Expand Down
153 changes: 94 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"prettier-stylelint": "^0.4.2",
"react-hot-loader": "^4.6.3",
"sass-loader": "^7.1.0",
"semantic-release": "^15.13.12",
"semantic-release": "^15.13.16",
"style-loader": "^0.23.1",
"stylelint": "^10.1.0",
"stylelint-config-recommended": "^2.2.0",
Expand Down

0 comments on commit e2a7aa6

Please sign in to comment.