- We have a couple challenges of our own, like ProfileChallenge, but this recipes shows how to create a custom one that you can use anywhere in your store.
{
"b2b-challenge": {
"component": "Challenge",
#! /usr/bin/python | |
''' | |
Move or copy files from subdirectories of specified directories into them or into current directory | |
and optionally remove the empty subdirectories (in case of moving). | |
TODO: add exception handling. | |
''' | |
import sys |
alias nvim='print -Pn "\e]0;${PWD##*/}-vim\a";nvim' | |
alias vl='vtex link' | |
alias vls='vtex ls' | |
alias vs='vtex switch' | |
alias vua='vtex unlink --all' | |
alias vwr='vtex workspace reset' | |
oni() | |
{ | |
/Applications/Onivim2.app/Contents/MacOS/Oni2_editor $1 & |
#!/bin/bash | |
TOOLBELT_CFG_FILE="$HOME/.config/configstore/vtex.json" | |
parse_vtex_json() { | |
cat "$TOOLBELT_CFG_FILE" | grep $1 | sed -n "s/^.*\"$1\": \"\(.*\)\".*$/\1/p" | |
} | |
get_vtex_account() { | |
parse_vtex_json "account" | |
} | |
ACCOUNT=`parse_vtex_json "account"` | |
WORKSPACE=`parse_vtex_json "workspace"` |
#!/bin/bash | |
TOOLBELT_CFG_FILE="$HOME/.config/configstore/vtex.json" | |
parse_vtex_json() { | |
cat "$TOOLBELT_CFG_FILE" | grep $1 | sed -n "s/^.*\"$1\": \"\(.*\)\".*$/\1/p" | |
} | |
get_vtex_account() { | |
parse_vtex_json "account" | |
} | |
ACCOUNT=`parse_vtex_json "account"` | |
WORKSPACE=`parse_vtex_json "workspace"` |
import { | |
ExternalClient, | |
InstanceOptions, | |
IOContext, | |
} from '@vtex/api' | |
import { | |
ReposGetResponse, | |
UsersGetByUsernameResponse, | |
GitCreateTagParams, |
{
"b2b-challenge": {
"component": "Challenge",
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
Complete Guide / Isseus / Common Problems: https://github.com/Homebrew/homebrew-php
# Install PHP with PHP-FPM and excluding snmp
brew install -v homebrew/php/php56 --with-fpm --without-snmp