0.0.7 • Published 10 years ago

fstimizely v0.0.7

Weekly downloads
21
License
LICENSE-2.0.txt
Repository
github
Last release
10 years ago

opthub

Sync an Optimizely snippet w/ your local fs and vice versa!

Installation

npm install -g fstimizely

Hello World

$ cd ~/sandbox/git-repos/ab-tests/test-foo

# tokens stored in ~/.fstimizelyrc and mapped via key
#   in local ./.fstimizelyrc to navigate multiple accounts
$ echo 'my_token_ref=1234567890' > .fstimizelyrc
$ echo -e '[tokens]\n  my_token_ref=abcdefghijklmnopqrstuvwxyz:123456' > ~/.fstimizelyrc

# download the experiment!
$ fstimizely

############ diff of original.js ############
// control code

############ diff of variation-1.js ############
// variation 1 code

############ diff of global.js ############
// experiment 1234567890's global js

############ diff of global.css ############
/* // experiment 1234567890's global css */

$ git status --porcelain
?? global.css
?? global.js
?? original.js
?? variation-1.js

# version control or what's the point
$ git add . && git commit -m "downloaded experiment"

# now edit the code, commit, and re-upload!
$ echo '// change' > variation-1.js
$ git add . && git commit -m "changed variation code"
$ fstimizely up

############ diff of original.js ############
// control code

############ diff of variation-1.js ############
- // variation 1 code
+ // change
Upload to variation-1.js? [n/Y]:

############ diff of global.js ############
// experiment 1234567890's global js

############ diff of global.css ############
/* // experiment 1234567890's global css */

Authors

Clearhead?

We're an AB Testing Consulting Agency specializing in Optimizely engagements. We're hiring!

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago