Skip to content

Fix circleci link #8

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

Merged
merged 4 commits into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
steps:
- *attach_workspace
- checkout
- run: npm run semantic-release
- run: npx semantic-release

workflows:
build:
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p>
<a href="https://npmjs.org/package/@smartthings/firestore-context-store"><img src="https://badge.fury.io/js/@smartthings/firestore-context-store.svg"></a>
<a href="https://circleci.com/gh/SmartThingsCommunity/firestore-context-store-nodejs.svg?style=svg"><img src="https://circleci.com/gh/SmartThingsCommunity/firestore-context-store-nodejs.svg?style=svg"></a>
<a href="https://circleci.com/gh/SmartThingsCommunity/firestore-context-store-nodejs"><img src="https://circleci.com/gh/SmartThingsCommunity/firestore-context-store-nodejs.svg?style=svg"></a>
<a href="https://david-dm.org/SmartThingsCommunity/firestore-context-store-nodejs"><img src="https://david-dm.org/SmartThingsCommunity/firestore-context-store-nodejs.svg?theme=shields.io"></a>
<a href="https://codecov.io/gh/SmartThingsCommunity/firestore-context-store-nodejs"><img src="https://codecov.io/gh/SmartThingsCommunity/firestore-context-store-nodejs/branch/master/graph/badge.svg" /></a>
</p>
Expand Down Expand Up @@ -46,15 +46,12 @@ To use this module to add Firebase Cloud Firestore context storage to your Smart
1. **Create a context store instance** with the service account object and the document collection name and pass it to the SmartApp SDK object. For example, the following code:

```javascript
const smartapp = require('@smartthings/smartapp');
const SmartApp = require('@smartthings/smartapp');
const FirestoreDBContextStore = require('@smartthings/firestore-context-store');
const serviceAccount = require('./googleservices-YOURAPPNAME-AND-ID.json')

smartapp
const smartapp = new SmartApp()
.contextStore(new FirestoreDBContextStore(serviceAccount, 'installedapps'))
.configureI18n()
.page('mainPage', (page) => {
...
```

This will use a document collection named `installedapps` to store documents as keyed by the `installedAppId` value.
Expand Down
13 changes: 2 additions & 11 deletions config/release.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
module.exports = {
preset: 'angular',
analyzeCommits: {
parserOpts: {
// Optional, only you want to have emoji commit support
headerPattern: /^(?::([\w-]*):)?\s*(\w*):\s*(.*)$/,
headerCorrespondence: ['emoji', 'tag', 'message']
}
preset: 'eslint'
},
generateNotes: {
parserOpts: {
// Optional, only you want to have emoji commit support
headerPattern: /^(?::([\w-]*):)?\s*(\w*):\s*(.*)$/,
headerCorrespondence: ['emoji', 'tag', 'message']
}
preset: 'eslint'
}
}
Loading