requirejs config and Gruntfile to use with zurb foundation, Backbonejs and lodash or underscorejs.
Works for foundation 4.0 with requirejs 2.x and grunt 0.4
# for dev
$ npm install
# for production
$ npm install --production
requirejs config and Gruntfile to use with zurb foundation, Backbonejs and lodash or underscorejs.
Works for foundation 4.0 with requirejs 2.x and grunt 0.4
# for dev
$ npm install
# for production
$ npm install --production
<?php | |
namespace Vendor\ApplicationBundle\Tests\Utils; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseTestCase; | |
class WebTestCase extends BaseTestCase | |
{ | |
protected $databaseResetedOnce = false; |
Declare child mapping:
curl -XPUT 'http://localhost:9200/test' -d '{
"settings": {
"analysis": {
"analyzer": {
"fullfields": {
"tokenizer" : "keyword",
"filter" : ["lowercase"],
"analyzer": "keyword"
#!/bin/bash | |
bundle install --deployment --path /var/bundle --without production | |
if [ ! -e "config/database.yml" ] ; then cp config/database.example.yml config/database.yml; fi | |
if [ ! -e ".env" ] ; then cp sample.env .env; fi | |
bundle exec rake db:create | |
bundle exec rake db:schema:load | |
bundle exec rake db:migrate | |
bundle exec rake db:seed |
#!/usr/bin/env bash | |
# This is the project root. | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# Log a message. | |
function log { | |
echo -e " \033[32m*\033[0m ${1}" | |
} | |
# write an error message. |
#!/usr/bin/env bash | |
ORIG_BRANCH="$(git rev-parse --abbrev-ref HEAD)" | |
git checkout -b release && \ | |
grunt release && \ | |
git add -f public && \ | |
git commit -m 'Latest release' && \ | |
git push -f deploy release:master && \ | |
git tag "release-`date +'%F-%s'`" | |
git checkout "${ORIG_BRANCH}"&& \ |
#!/usr/bin/env bash | |
BACKUP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | |
# Log a message. | |
function log { | |
echo -e " \033[32m*\033[0m ${1}" | |
} | |
# write an error message. | |
function error { | |
echo -e "\033[31m${1}\033[0m" |
/** | |
* Simple actions test utils. | |
* | |
* This is definitely not the best api, but this is simple. | |
* | |
* FIXME override action `_dispatch` and `_dispatchAsync` to remove warning | |
* FIXME and to deliver a cleaner api | |
*/ | |
import _ from 'lodash'; |
/** | |
* Hook babel compilation into require. | |
* | |
* To disable cache, see https://babeljs.io/docs/usage/require/#environment-variables | |
* | |
* ``` javascript | |
* const lookupDirs = ['app/server', 'app/shared/lib', 'app/shared']; | |
* const resolveModuleSource = require('babel-hooks'); | |
* | |
* require('babel/register')({ |