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

Script to turn web-boilerplate into a new repo #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OzoneTank
Copy link

Why?

  • Wouldn't life be easier if you didn't have to run all those pesky commands and could just run a single script

What Changed?

  • Made a script that does most of the init steps
    • Changes README
    • Creates a master branch and pushes it to new repo url
    • Script deletes itself on finishing the job
  • Updated README to let people know of init shell script

@ghost ghost assigned OzoneTank Mar 7, 2018
@ghost ghost added the in progress label Mar 7, 2018
rm -rf .git
git init .

echo "# $PROJECT_NAME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. I like the idea of building up a readme for the new project. I think a better way to do it though would be to have a README_TEMPLATE.md file, that you copy into place with rm README.md && mv README_TEMPLATE.md README.md

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkniffin Is there an easy to interpolate values like this in markdown? I really like the idea of building the readme like this where we can set stuff like the project name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I kept it in the script itself was so that there's less cleanup if you didn't go with the script. I considered writing it so that if you tried to run it after changing it away from web-boilerplate that it would just delete itself.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering why anyone would actually want to do this manually, now that we have a script

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point.

init.sh Outdated
@@ -0,0 +1,66 @@
#!/bin/sh
echo what is your PROJECT_NAME?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think what is your PROJECT_NAME? should be in quotes. It's weird to see a string like that without quotes.

README.md Outdated

## or

### Follow these steps
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a better title here would be "Manual steps"

https://github.com/smashingboxes/$PROJECT_NAME
"

rm ./init.sh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:rip:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants