Skip to content

Instantly share code, notes, and snippets.

View triblondon's full-sized avatar

Andrew Betts triblondon

View GitHub Profile
@triblondon
triblondon / Gruntfile.js
Created January 29, 2014 13:05
Sample Grunt config for Origami compliant build process
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
sass: {
docs: {
options: {
style: 'compressed',
loadPath: './bower_components'
},
@triblondon
triblondon / .travis.yml
Last active January 4, 2016 22:09
Sample Travis test to ensure that Origami-compliant modules will build successfully
script:
- "test/travis.rb"
language: ruby
before_install:
- gem install sass
- npm install -g bower
- npm install -g grunt-cli
- npm install
- bower install
@triblondon
triblondon / SassMeister-input.scss
Created January 15, 2014 23:43
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$o-colors-is-silent: true !default;
$colorList:
pink #fff1e0,
black #000000,
@triblondon
triblondon / page.html
Last active January 3, 2016 03:08
Recommended Origami JavaScript loader
<script>
(function() {
if (Modernizr.classlist && Modernizr.queryselector && Modernizr.localstorage && Modernizr.eventlistener) {
var j = document.createElement('script');
j.type = 'text/javascript';
j.async = true;
j.src = '/resources/javascript/bundle.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(j, s);
} else {