Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelgado committed Jul 6, 2017
2 parents 1327ee4 + e2c80dc commit c499d69
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ All notable changes to the "uruit-react-snippets" extension will be documented i
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]
- Initial release
- Initial release

## [1.1.1] - 2017-07-04
### Added
- CHANGELOG.md
- Troubleshooting section in README.md
### Changed
- Update `u-suite` snippet

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ ext install uruit-react-snippets
```

## Troubleshooting

If the snippets prefixes do not show up when typing them, make sure you have the tab-completion enabled in your settings: `"editor.tabCompletion": true`.

Alternatively, you can choose *Insert Snippet* in the Command Palette (`Cmd+Shift+P` on Mac, `Ctrl+Shift+P` on Windows or Linux).

## Author

* [UruIT](https://github.com/UruIT)

### Contributors

* [Matias Delgado](https://github.com/matiasdelgado)
* [Carloluis Rodríguez](https://github.com/carloluis)

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "uruit-react-snippets",
"displayName": "UruIT React Snippets",
"description": "React Snippets with ECMAScript 6",
"version": "1.1.1",
"version": "1.1.2",
"publisher": "UruIT",
"icon": "images/uruit-logo.png",
"engines": {
Expand Down
20 changes: 20 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,26 @@
],
"description": "Redux action"
},
"Redux reducer": {
"prefix": "u-reducer",
"body":[
"import { $1 } from './$2.action';",
"",
"const DEFAULT_STATE = { $3 };",
"",
"export function homeReducer(state = DEFAULT_STATE, action) {",
"\tswitch (action.type) {",
"\t\tcase $1:",
"\t\t\treturn {",
"\t\t\t\t$0",
"\t\t\t};",
"\t\tdefault:",
"\t\t\treturn state;",
"\t}",
"}"
],
"description": "Redux reducer"
},
"JSX Element className": {
"prefix": "u-cn",
"body": [
Expand Down

0 comments on commit c499d69

Please sign in to comment.