-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: add Props folder after running npm i #97
bugfix: add Props folder after running npm i #97
Conversation
👷 Deploy Preview for rne-playground processing. 🔨 Explore the source changes: 33cd6f2 🔍 Inspect the deploy log: https://app.netlify.com/sites/rne-playground/deploys/61c497954d518f0007856b86 |
70f6044
to
4886b5c
Compare
@pranshuchittora, Please review |
injectLatestProps.js
Outdated
exec( | ||
const { execSync } = require("child_process"); | ||
|
||
execSync("rm -rf ./react-native-elements/", (err, stdout, stderr) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm -rf is not recommended. Use rimraf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pranshuchittora , added rimraf
please review.
4886b5c
to
b267169
Compare
README.md
Outdated
```sh | ||
git clone https://github.com/react-native-elements/playground.git | ||
cd playground | ||
``` | ||
2. Install NPM packages | ||
|
||
2. Install NPM packages, add Playground Props, react-native-elements folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, removed it
injectLatestProps.js
Outdated
exec( | ||
const { execSync } = require("child_process"); | ||
|
||
execSync("rimraf ./react-native-elements/", (err, stdout, stderr) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check the dir before deleting it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done using find-remove package npm
injectLatestProps.js
Outdated
exec("cp -r ./react-native-elements/website/docs/props ./src/content/Props"), | ||
|
||
execSync( | ||
"cp -r ./react-native-elements/website/docs/props ./src/content/Props", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is UNIX based path can you use something like this -> https://www.npmjs.com/package/cp-file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, but cp-file copies files, using copy-dir https://www.npmjs.com/package/copy-dir for doing it
a18c60d
to
5fab498
Compare
@pranshuchittora please review
|
5e9d4aa
to
b75590b
Compare
b75590b
to
49c738a
Compare
@pranshuchittora I am having the same issue. |
@flyingcircle Please review. |
You shoulddouble check that this still works. The props folder you copy from no longer exists. |
|
@flyingcircle , changed folder from Props to main. Please check and review . |
fixes: #96
Solution:-
added rm -rf scripts, so that netlify build and deploys the apps. (How I know? - checks were not passing on earlier commit because the react-native-elements folder was already there and hence not re-cloning, see Image below). Hence added two more execSync Scripts.
Used
execSync
functionUpdated-
Also, readme updated for the same, spaces is because of prettier.
also fixes issue #88
Tested How?
npm i
after that