#Mac OS X
This file contains hidden or 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
#!/bin/bash | |
NODE_VERSION=0.4.7 | |
NPM_VERSION=1.0.94 | |
# Save script's current directory | |
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
#cd "${DIR}" | |
# |
Ideally this is the following we want to achieve:
- Project setup works flawelessly, when running
divio setup
anddivio run
everything should work (We might also want to test that essentialdivio
api commands are working) - We define a set of "core templates" which are tested agains:
- Screenshot differences when changing code
This file contains hidden or 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
Django Template | |
=============== | |
{# our styleguide would provide an API to load templates #} | |
{% load styleguide %} | |
{# we loop over our regular object, and assign the appropriate variables #} | |
{% for card in cards %} | |
styleguide.load('components/cards', { | |
'type': 'simple', |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
$brand-list: | |
"primary" "secondary" "sucess" "info" "warning" "danger" "muted" | |
"gray-darker" "gray-dark" "gray" "gray-light" "gray-lighter"; | |
@each $brand-name in $brand-list { | |
.brand-#{$brand-name} { |
This file contains hidden or 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
from cms.api import add_plugin | |
placeholder = page.placeholders.get(slot='content') | |
add_plugin(placeholder, | |
'TextPlugin', | |
self.language_code, | |
body=self.cleaned_data['content']) |