-
Notifications
You must be signed in to change notification settings - Fork 9
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
workaround to publish also .gitignore #69
Conversation
@@ -30,7 +30,7 @@ | |||
}, | |||
"scripts": { | |||
"start": "HTTPS=true react-scripts start", | |||
"build": "react-scripts build && cp -a ./build/. ./cordova-app/www/", | |||
"build": "react-scripts build && cp -a ./build/. ./cordova-app/www/ && cp .gitignore gitignore", |
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.
Why need to copy to a new gitignore 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.
it is not a folder: it is a copy of .gitignore. it is a work around as .gitignore is not published.
@@ -39,7 +39,8 @@ function copySrc() { | |||
ncp(path.join(geovationPhotoFolder, "src"), "src", errFunc); | |||
ncp(path.join(geovationPhotoFolder, "cordova-app"), "cordova-app", errFunc); | |||
ncp(path.join(geovationPhotoFolder, "public"), "public", errFunc); | |||
ncp(path.join(geovationPhotoFolder, ".gitignore"), ".gitignore", { clobber : false }, errFunc); | |||
// see https://github.com/atlassubbed/atlas-npm-init/issues/1 | |||
ncp(path.join(geovationPhotoFolder, "gitignore"), ".gitignore", { clobber : false }, errFunc); |
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.
Why set clobber
to false? it means ncp
will not overwrite the existing .gitignore
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.
correct... (should we instead. ?.. perhaps using it we'll learn)
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, we can leave it for now. I will merge this PR then.
No description provided.