question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better way to package and distribute boilerplate

See original GitHub issue

I love the work done so far to build and maintain this boilerplate. git (v >= 1.9) complains when cloning a shallow copy of this repo, then changing the remote URL and then proceeding to push to the updated remote. This means if I were to use this boilerplate for my own project I would

  • either need to keep the commit history of this repo and build on top of it
  • remove the .git folder and git init myself and push the new changes
  • ZIP download the contents, and then go a similar route as the one above

… I don’t really like either 😅

I was wondering if there is a way to package and distribute this boilerplate, much like an npm package?

Thanks for all the hard work! 💖

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yeskunallcommented, Feb 9, 2018

I fully understand that 😅thanks for being open to the idea — even if it’s not viable in the near future! @amilajack

0reactions
syddocommented, Jun 19, 2020

I’m not sure if this will be an acceptable alternative but in my case I did:

git remote remove origin
git rev-parse --verify master >> .git/info/grafts
git filter-branch -- --all
rm .git/shallow
git remote add origin <new-git-repo-url>
git push origin master

It worked okay and started a new git project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Better way to package and distribute boilerplate #1421 - GitHub
I was wondering if there is a way to package and distribute this boilerplate, much like an npm package? Thanks for all the...
Read more >
How to Write a Press Release Boilerplate in 5 Steps (+ ...
A good press release boilerplate is concise and easy to read so that journalists can quickly get an idea of what your company...
Read more >
How to Write Boilerplates: 5 Do's, 5 Don'ts, 5 Great Examples
A boilerplate sums up the compelling story for a brand in a clear, standby description that can be easily included in corporate communications....
Read more >
What is boilerplate and why do we use it? Necessity of coding ...
As Joachim Pense clearly states, boilerplate is something that you copy and paste and just add to a document. It comes up most...
Read more >
Useful Front-End Boilerplates And Starter Kits
Everything you need to develop, build, and deploy your next project in one package. Another modern front-end boilerplate comes from the team ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found