Skip to content

Instantly share code, notes, and snippets.

View heshanlk's full-sized avatar
👋
Hi

Heshan Wanigasooriya heshanlk

👋
Hi
View GitHub Profile
@heshanlk
heshanlk / gulpfile.js
Last active October 21, 2016 00:58
Babel + React Gulpfile
const gulp = require('gulp');
const babel = require('gulp-babel');
const browserify = require('browserify');
const source = require('vinyl-source-stream');
const notify = require('gulp-notify');
gulp.task('default', () => {
return browserify({
entries: 'src/CallerBarApp.js',
extensions: ['.jsx'],
@heshanlk
heshanlk / gulpfile.js
Created October 14, 2016 23:02 — forked from Sigmus/gulpfile.js
gulpfile.js with browserify, reactify, watchify and gulp-notify.
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var gutil = require('gulp-util');
var browserify = require('browserify');
var reactify = require('reactify');
var watchify = require('watchify');
var notify = require("gulp-notify");
var scriptsDir = './scripts';
var buildDir = './build';
@heshanlk
heshanlk / commerce-coupon-rule.md
Last active November 15, 2017 11:55
Drupal Commerce Coupon - Limit one coupon per order rule

#Drupal Commerce Coupon - Limit one coupon per order rule

{ "rules_no_double_coupons" : {
    "LABEL" : "No double coupons",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "rules", "commerce_coupon" ],
    "ON" : { "commerce_coupon_applied_to_cart" : [] },
    "IF" : [
 { "entity_has_field" : { "entity" : [ "commerce-order" ], "field" : "commerce_coupons" } },