Skip to content

Commit

Permalink
add mdspell (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlostong authored Feb 13, 2020
1 parent 7a51e33 commit 89a130e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 9 deletions.
45 changes: 38 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
language: node_js
node_js:
- '10'
install: yarn
script: yarn test
addons:
srcclr: true
language: generic
os: linux

stages:
- 'Lint markdown files'
- 'Test'

jobs:
include:
- stage: 'Lint markdown files'
os: linux
language: generic
install: gem install awesome_bot
before_script: skip
script:
- find . -type f -name '*.md' -exec awesome_bot {} \;

- stage: 'Lint markdown files'
os: linux
language: generic
before_install: skip
install:
- npm i -g markdown-spellcheck
before_script:
- wget --quiet https://raw.githubusercontent.com/optimizely/mdspell-config/master/.spelling
script:
- mdspell -a -n -r --en-us '**/*.md'
after_success: skip

- stage: 'Test'
os: linux
language: node_js
node_js:
- 10
install: yarn
script: yarn test
addons:
srcclr: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function ExperimentComponent() {
}
```

**Note: If you are loading the datafile or the user asynchrounously, be sure to include an `<OptimizelyVariation default>` component as the render path if the datafile or user fails to load.**
**Note: If you are loading the datafile or the user asynchronously, be sure to include an `<OptimizelyVariation default>` component as the render path if the datafile or user fails to load.**

## `OptimizelyFeature`

Expand Down Expand Up @@ -392,7 +392,7 @@ The following type definitions are used in the `ReactSDKClient` interface:
* `getEnabledFeatures(overrideUserId?: string, overrideAttributes?: UserAttributes): Array<string>`: Return the keys of all features enabled for the given user
* `track(eventKey: string, overrideUserId?: string | EventTags, overrideAttributes?: UserAttributes, eventTags?: EventTags): void` Track an event to the Optimizely results backend
* `setForcedVariation(experiment: string, overrideUserIdOrVariationKey: string, variationKey?: string | null): boolean` Set a forced variation for the given experiment, variation, and user
* `getForcedVariation(experiment: string, overrideUserId?: string): string | null` Get the forced faration for the given experiment, variation, and user
* `getForcedVariation(experiment: string, overrideUserId?: string): string | null` Get the forced variation for the given experiment, variation, and user

## Rollout or experiment a feature user-by-user

Expand Down

0 comments on commit 89a130e

Please sign in to comment.