Skip to content
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

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

sebastianovide
Copy link
Contributor

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 165

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 10.788%

Totals Coverage Status
Change from base Build 163: 0.0%
Covered Lines: 21
Relevant Lines: 170

💛 - Coveralls

@@ -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",
Copy link
Contributor

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?

Copy link
Contributor Author

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);
Copy link
Contributor

@joykuotw joykuotw Oct 31, 2018

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.

Copy link
Contributor Author

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)

Copy link
Contributor

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.

@joykuotw joykuotw merged commit c8a3be4 into Geovation:master Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants