Skip to content

Instantly share code, notes, and snippets.

@linclark
linclark / composer.json
Last active December 29, 2015 06:29
Basic composer.json for working with Behat, Mink, and Selenium
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink": "1.5.*@stable",
"behat/mink-goutte-driver": "*",
"behat/mink-extension": "*",
"behat/mink-selenium2-driver": "*"
}
}
@linclark
linclark / behat.yml
Last active December 29, 2015 06:29
Basic behat.yml
default:
paths:
features: features
bootstrap: %behat.paths.features%/bootstrap
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
@linclark
linclark / Step Definition
Created November 24, 2013 17:13
Step definition for search step, added to FeatureContext.php
/**
* @When /^I search for "([^"]*)"$/
*/
public function iSearchFor($arg1)
{
$this->fillField('Search Drupal.org', $arg1);
$this->pressButton('Search');
}
@linclark
linclark / test.feature
Last active December 29, 2015 10:39
Example .feature file
Feature: Drupal.org search
In order to find modules on Drupal.org
As a Drupal user
I need to be able to use Drupal.org search
@javascript
Scenario: Searching for "behat"
Given I go to "http://drupal.org"
When I search for "behat"
Then I should see "Behat Drupal Extension"
node_modules/workshopper/util/makews.js exercises/menu.json
@linclark
linclark / package.json
Created February 24, 2015 17:34
package.json for using-jquery-plugins-global
{
"name": "using-jquery-plugins-global",
"version": "1.0.0",
"dependencies": {
"jquery": "^2.1.3",
"tipso": "^1.0.2"
},
"browser": {
"tipso": "./node_modules/tipso/src/tipso.js"
},
// This function is called immediately. The second function is passed in
// as the factory parameter to this function.
(function (factory) {
// If there is a variable named module and it has an exports property,
// then we're working in a Node-like environment. Use require to load
// the jQuery object that the module system is using and pass it in.
if(typeof module === "object" && typeof module.exports === "object") {
factory(require("jquery"), window, document);
}
// Otherwise, we're working in a browser, so just pass in the global
{
"name": "...",
"version": "...",
"browserify": {
"transform": [ "browserify-shim" ]
},
"browserify-shim": {
"angular": "global:angular"
}
}
module.exports = {
entry: '...',
output: {...},
externals: {
react: "React"
}
}
diff --git a/app/ui/browser/index.jsx b/app/ui/browser/index.jsx
index 4ab9a68..e2a5972 100644
--- a/app/ui/browser/index.jsx
+++ b/app/ui/browser/index.jsx
@@ -20,6 +20,10 @@ import configureStore from './store/store';
import rootReducer from './reducers';
import Immutable from 'immutable';
+import * as actions from './actions/main-actions';
+