Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
⭐ new: main branch asking
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jun 8, 2016
1 parent 6274b4e commit fbb8802
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ module.exports = {
type: 'string',
message: 'Author'
},
branch: {
type: 'string',
required: true,
message: 'Development main branch name',
default: 'dev'
},
githubAccount: {
type: 'string',
required: false,
Expand Down
6 changes: 3 additions & 3 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ See [here](http://{{ githubAccount }}.github.io/{{ name }}/){{/unless_eq}}{{/git
npm test

## Changelog
Details changes for each release are documented in the {{#unless_eq githubAccount ""}}[CHANGELOG.md](/~https://github.com/{{ githubAccount }}/{{ name }}/blob/master/CHANGELOG.md){{/unless_eq}}{{#if_eq githubAccount ""}}`CHANGELOG.md`{{/if_eq}}.
Details changes for each release are documented in the {{#unless_eq githubAccount ""}}[CHANGELOG.md](/~https://github.com/{{ githubAccount }}/{{ name }}/blob/{{ branch }}/CHANGELOG.md){{/unless_eq}}{{#if_eq githubAccount ""}}`CHANGELOG.md`{{/if_eq}}.

{{#issue}}
## Issues
Expand All @@ -38,11 +38,11 @@ Please make sure to read the [Issue Reporting Checklist](/~https://github.com/vuej
{{#contribution}}Please make sure to read the [Contributing Guide](/~https://github.com/vuejs/vue/blob/dev/CONTRIBUTING.md) before making a pull request.
{{/contribution}}
- Fork it !
- Create your top branch from `dev`: `git branch my-new-topic origin/dev`
- Create your top branch from `{{ branch }}`: `git branch my-new-topic origin/{{ branch }}`
- Commit your changes: `git commit -am 'Add some topic'`
- Push to the branch: `git push origin my-new-topic`
{{#unless_eq githubAccount ""}}
- Submit a pull request to `dev` branch of `{{ githubAccount }}/{{ name }}` repository !
- Submit a pull request to `{{ branch }}` branch of `{{ githubAccount }}/{{ name }}` repository !
{{/unless_eq}}

## License
Expand Down
2 changes: 1 addition & 1 deletion template/docs/book.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"pluginsConfig": {
{{#unless_eq githubAccount ""}}
"edit-link": {
"base": "/~https://github.com/{{ githubAccount }}/{{ name }}/tree/master/docs",
"base": "/~https://github.com/{{ githubAccount }}/{{ name }}/tree/{{ branch }}/docs",
"label": "Edit This Page"
},
"github": {
Expand Down
2 changes: 1 addition & 1 deletion template/docs/en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> {{ description }}
{{#unless_eq githubAccount ""}}
**[CHANGELOG](/~https://github.com/{{ githubAccount }}/{{ name }}/blob/master/CHANGELOG.md)**
**[CHANGELOG](/~https://github.com/{{ githubAccount }}/{{ name }}/blob/{{ branch }}/CHANGELOG.md)**
{{/unless_eq}}

- [Installation](installation.md)
2 changes: 1 addition & 1 deletion template/docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{#unless_eq githubAccount ""}}
## Direct Download

See [dist folder](/~https://github.com/{{ githubAccount }}/{{ name }}/tree/master/dist). Note the dist files are always the latest stable - it's not update-to-date with the master branch source.
See [dist folder](/~https://github.com/{{ githubAccount }}/{{ name }}/tree/{{ branch }}/dist). Note the dist files are always the latest stable - it's not update-to-date with the {{ branch }} branch source.
{{/unless_eq}}

## NPM
Expand Down
4 changes: 2 additions & 2 deletions template/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Got a question?
===============
The issue list of this repo is **exclusively** for bug reports and feature requests. For simple questions, please use the following resources:
- Read the docs: /~https://github.com/{{ githubAccount }}/{{ name }}/blob/dev/README.md
- Read the docs: /~https://github.com/{{ githubAccount }}/{{ name }}/blob/{{ branch }}/README.md
- Ask in the Gitter chat room: https://gitter.im/vuejs/vue
- Ask on the forums: http://forum.vuejs.org/
- Look for/ask questions on stack overflow: https://stackoverflow.com/questions/ask?tags={{ name }}
Reporting a bug?
================
- Try to search for your issue, it may have already been answered or even fixed in the development branch.
- Try to search for your issue, it may have already been answered or even fixed in the `{{ branch }}` branch.
- Check if the issue is reproducible with the latest stable version of Vue. If you are using a pre-release, please indicate the specific version you are using.
Expand Down

0 comments on commit fbb8802

Please sign in to comment.