-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09e7e99
commit d2a3638
Showing
17 changed files
with
642 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ignores: | ||
- "@types/*" | ||
- "@oclif/*" | ||
- "@oclif/plugin-*" | ||
- ts-node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
# optimizely-as-code | ||
optimizely-as-code | ||
================== | ||
|
||
optimizely-as-code | ||
|
||
<!-- toc --> | ||
* [CLI Usage](#cli-usage) | ||
<!-- tocstop --> | ||
|
||
## Usage | ||
# CLI Usage | ||
|
||
<!-- usage --> | ||
<!-- usagestop --> | ||
<!-- commands --> | ||
* [`optimizely-as-code sync`](#optimizely-as-code-sync) | ||
|
||
## Commands | ||
## `optimizely-as-code sync` | ||
|
||
<!-- commands --> | ||
Push local features to Optimizely. | ||
|
||
``` | ||
USAGE | ||
$ optimizely-as-code sync --accessToken <value> --projectId <value> [--dry-run] | ||
FLAGS | ||
--accessToken=<value> (required) Your Optimizely access token. Can also be provided via the environment variable | ||
OPTIMIZELY_ACCESS_TOKEN. | ||
--dry-run Output what changes would be made without actually making the changes. | ||
--projectId=<value> (required) Your Optimizely Project Id. Can also be provided via the environment variable | ||
OPTIMIZELY_PROJECT_ID. | ||
``` | ||
<!-- commandsstop --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"category": "other", | ||
"description": "Clicking on the Learn More Button", | ||
"event_type": "custom", | ||
"key": "clickColor" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[ | ||
{ | ||
"description": "Link Color Pipeline POC", | ||
"environments": { | ||
"development": { | ||
"status": "running" | ||
}, | ||
"production": { | ||
"status": "paused" | ||
} | ||
}, | ||
"feature_key": "link_color", | ||
"key": "link_color_experiment", | ||
"metrics": [ | ||
{ | ||
"aggregator": "unique", | ||
"event_key": "clickColor", | ||
"scope": "visitor", | ||
"winning_direction": "increasing" | ||
} | ||
], | ||
"name": "Link Color Experiment", | ||
"project_id": 19726420380, | ||
"type": "feature", | ||
"variations": [ | ||
{ | ||
"feature_enabled": true, | ||
"key": "blue", | ||
"name": "Blue Link", | ||
"status": "active", | ||
"variable_values": { | ||
"isOrange": "false" | ||
}, | ||
"weight": 5000 | ||
}, | ||
{ | ||
"feature_enabled": true, | ||
"key": "orange", | ||
"name": "Orange Link", | ||
"status": "active", | ||
"variable_values": { | ||
"isOrange": "true" | ||
}, | ||
"weight": 5000 | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"key": "link_color", | ||
"project_id": 19726420380, | ||
"variables": [ | ||
{ | ||
"default_value": "false", | ||
"key": "isOrange", | ||
"type": "boolean" | ||
} | ||
] | ||
}, | ||
{ | ||
"key": "demo_feature1", | ||
"project_id": 19726420380 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.