-
Notifications
You must be signed in to change notification settings - Fork 2
Script to turn web-boilerplate into a new repo #81
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| #!/bin/sh | ||
| echo what is your PROJECT_NAME? | ||
|
||
| read PROJECT_NAME | ||
| cd .. | ||
| mv web-boilerplate $PROJECT_NAME | ||
| cd $PROJECT_NAME | ||
| rm -rf .git | ||
| git init . | ||
|
|
||
| echo "# $PROJECT_NAME | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could do something with sed https://unix.stackexchange.com/questions/159367/using-sed-to-find-and-replace
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point. |
||
|
|
||
| ## Commands | ||
|
|
||
| Run the server with: | ||
| \`\`\` | ||
| yarn start | ||
| \`\`\` | ||
|
|
||
| Run your tests with: | ||
| \`\`\` | ||
| yarn test | ||
| \`\`\` | ||
|
|
||
| Run a build with: | ||
| \`\`\` | ||
| yarn build | ||
| \`\`\` | ||
|
|
||
| ## Docker Commands | ||
|
|
||
| ### Docker is not needed to run the boilerplate | ||
|
|
||
| Build and start the server: | ||
| \`\`\` | ||
| docker-compose up --build | ||
| \`\`\` | ||
|
|
||
| Run your tests with: | ||
| \`\`\` | ||
| docker-compose exec web yarn test | ||
| \`\`\` | ||
|
|
||
| Run a build with: | ||
| \`\`\` | ||
| docker-compose exec web yarn build | ||
| \`\`\` | ||
|
|
||
| If your terminal closes run: | ||
| \`\`\` | ||
| docker-compose logs --follow | ||
| \`\`\` | ||
| " > README.md | ||
|
|
||
| git add . | ||
| git reset ./init.sh | ||
| git commit -m "first commit" | ||
| git remote add origin https://github.com/smashingboxes/$PROJECT_NAME.git | ||
| git push -u origin master | ||
|
|
||
| echo " | ||
|
|
||
| You're all set. Please check out your project at | ||
| https://github.com/smashingboxes/$PROJECT_NAME | ||
| " | ||
|
|
||
| rm ./init.sh | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. :rip: |
||

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.
I think a better title here would be "Manual steps"