Skip to content

Commit

Permalink
docs: add ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Nov 18, 2016
1 parent 9300c70 commit 7ad2a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ We use npm package to manager boilerplate, you can follow this steps:
- Create a new repo like [egg-boilerplate-plugin](https://github.com/eggjs/egg-boilerplate-plugin)
- Put all files under `boilerplate` dir
- Use `egg-init --template=PATH` to check
- `index.js` can define variables which can be useed on template, like `{{name}}`.
- `index.js` can define variables which can be useed on template, like `{{name}}`, but `\{{name}}` will ignore.
```js
module.exports = {
Expand Down
1 change: 1 addition & 0 deletions lib/init_command.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = class Command {
this.fileMapping = {
gitignore: '.gitignore',
_gitignore: '.gitignore',
'_.gitignore': '.gitignore',
'_package.json': 'package.json',
};
}
Expand Down

0 comments on commit 7ad2a93

Please sign in to comment.