Skip to content

Commit 3b91b87

Browse files
authored
Merge pull request #10 from ilyasudakov/develop
Develop
2 parents 555cda1 + 3e1bf28 commit 3b91b87

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

bin/setup.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ const apps = {
177177
};
178178

179179
function checkAppVersion(minimalVersion, app) {
180-
const curApp = apps[app] ?? apps['node'];
180+
let curApp = apps[app];
181+
if (apps[app] === undefined) {
182+
curApp = apps['node'];
183+
}
181184
return new Promise((resolve, reject) => {
182185
exec(curApp.command, (err, stdout) => {
183186
const version = stdout.trim();
@@ -239,7 +242,6 @@ function reportError(error) {
239242

240243
await installPackages().catch((reason) => reportError(reason));
241244
await removeFilesFromDirectory('bin/').catch((reason) => reportError(reason));
242-
await removeFilesFromDirectory('public/assets/logo.png').catch((reason) => reportError(reason));
243245

244246
if (repoRemoved) {
245247
process.stdout.write('\n');

readme.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ GitHub Action - for Continous Integration<br>
2525
Clone the repository
2626

2727
```
28-
git clone https://github.com/ilyasudakov/basic-react-boilerplate.git <YOUR_PROJECT_NAME>
28+
git clone https://github.com/ilyasudakov/react-base.git <YOUR_PROJECT_NAME>
2929
3030
cd <YOUR_PROJECT_NAME>
3131
```
@@ -60,22 +60,21 @@ You can run commands bellow manually, or they will run automatically with pre-co
6060

6161
- TypeScript
6262

63-
### In Plans
64-
65-
- ...
66-
6763
### Maybe?
6864

6965
- React DnD
7066
- Some Animation library
71-
- Material UI
7267

7368
## Questions
7469

7570
- Q: Why no Redux?
7671

7772
A: Too much boilercode, hard to maintain and slow to code. Rather use React-Query, which fetches, parses, caches data for you. Or in case if you need global storage for your app, React Context will probably do fine , but in huge apps where global state changes frequently - Redux is probably better option
7873

74+
- Q: Why use this instead of Create-React-App?
75+
76+
A: CRA is really cool, but it becomes really frustrating when you want to customize project setup, configs, and here everything is easily accessible
77+
7978
- Q: Why use this exact boilerplate?
8079

8180
A: This is perfect barebones boilerplate i wanted in my development, which could be helpful for you. Its pretty much just a skeleton, so you can build up your own structure and project. I hope this project gives pretty quick start to code stuff

0 commit comments

Comments
 (0)