Skip to content

Commit 650cb3f

Browse files
author
NaomiFPassarelli
committed
add pull_request_template
add CRA add complete CRA change run - generator on the bottom add prefix when run CRA
1 parent 9e98d33 commit 650cb3f

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ react-bootstrap
66
3- Run: npm start or yarn start
77
4- Track and add or delete comment lines: with: // TODO Add this if you need it with: // TODO import your {..}
88
5- Add .env with your API_BASE_URL
9+
10+
11+
12+
13+
bash <(curl -s https://raw.githubusercontent.com/Wolox/react-bootstrap/initial-bootstrap/run.sh) folderName

generators/app/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,11 @@ class GeneratorReact extends Generator {
464464
this.destinationPath("src/app/screens/Login/styles.js"),
465465
{}
466466
);
467+
this.fs.copy(
468+
this.templatePath("pull_request_template.md"),
469+
this.destinationPath("pull_request_template.md"),
470+
{}
471+
);
467472
}
468473
}
469474

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Summary
2+
3+
[Change!] Describe your feature, problems you had, notes, improvements and others.
4+
5+
## Screenshots
6+
7+
[Change!] Show the screenshots of the views you modified.
8+
9+
## Trello Card
10+
11+
[Change!] Link to the associated Trello card.

run.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,17 @@ elif ! system_has yarn; then
2424
exit 1
2525
fi
2626

27+
echo "You have pass system checks"
28+
yarn global add create-react-app --prefix /usr/local
29+
echo which create-react-app
30+
echo $1
31+
create-react-app $1
32+
#! create-react-app $2 --scripts-version mycompany-react-scripts
33+
echo "Great job! now you have install react"
34+
cd $1/
2735
yarn global add yo generator-react > /dev/null 2>&1
2836
yo react
37+
yarn start
2938

3039
wait $!
3140

0 commit comments

Comments
 (0)