Skip to content

Instantly share code, notes, and snippets.

View toranb's full-sized avatar

Toran Billups toranb

View GitHub Profile
@toranb
toranb / step6-gruntfile.js
Created April 12, 2014 18:58
added grunt-contrib-watch and a new dev task
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
watch: {
options: {
spawn: false,
livereload: true
},
sources: {
@toranb
toranb / step7-package.json
Created April 12, 2014 19:54
added grunt-contrib-testem and phantomjs
{
"dependencies": {
"bower": "*",
"grunt": "*",
"grunt-cli": "*",
"phantomjs": "*",
"grunt-contrib-testem": "*",
"grunt-contrib-watch": "*",
"grunt-contrib-jshint": "*",
"grunt-contrib-concat": "*",
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-testem');
grunt.initConfig({
testem: {
basic: {
src: [
"js/dist/deps.min.js"
],
options: {
@toranb
toranb / step7-example-test.js
Created April 12, 2014 20:02
added a very simple qunit test
test('a very simple example test to verify testem integration', function() {
equal(1, 1, "some failure message");
});
@toranb
toranb / step7-gruntfile-with-test-transpile.js
Last active August 29, 2015 13:59
the new transpile task for test code that was added when we introduced testem
module.exports = function(grunt) {
grunt.initConfig({
transpile: {
tests: {
type: 'amd',
moduleName: function(path) {
return 'example/tests/' + path;
},
files: [{
expand: true,
@toranb
toranb / step7-gruntfile-with-test-concat.js
Last active August 29, 2015 13:59
the new concat task for test code that was added when we introduced testem
module.exports = function(grunt) {
grunt.initConfig({
concat: {
test: {
src: [
'js/vendor/jquery/jquery.min.js',
'js/vendor/handlebars/handlebars.js',
'js/vendor/ember/ember.js',
'js/lib/loader.js',
'js/lib/ember-resolver.js',
@toranb
toranb / step8-package.json
Created April 12, 2014 20:30
added grunt-contrib-uglify and grunt-hashres for deployment
{
"dependencies": {
"bower": "*",
"grunt": "*",
"grunt-cli": "*",
"phantomjs": "*",
"grunt-hashres": "*",
"grunt-contrib-watch": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-jshint": "*",
@toranb
toranb / step8-gruntfile.js
Created April 12, 2014 20:33
added grunt-contrib-uglify and grunt-hashres for deployment
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-hashres');
grunt.initConfig({
uglify: {
dist: {
src: 'js/dist/deps.min.js',
dest: 'js/dist/deps.min.js',
},
@toranb
toranb / step3-gruntfile-concat-update.js
Last active August 29, 2015 13:59
updated concat step to show the templates included
module.exports = function(grunt) {
grunt.initConfig({
concat: {
dist: {
src: [
'js/vendor/jquery/jquery.min.js',
'js/vendor/handlebars/handlebars.js',
'js/vendor/ember/ember.min.js',
'js/app.js',
'js/dist/tmpl.min.js'],
@toranb
toranb / sample.rb
Created April 21, 2014 23:03
very simple config file to deploy using the capistrano-django gem
set :application, 'myapp'
set :scm, :git
set :repo_url, 'git@bitbucket.org:toranb/foo.git'
set :django_settings_dir, 'myapp/settings'
set :pip_requirements, 'requirements.txt'
set :keep_releases, 5
set :grunt_task, 'deploy'
set :stage, :production
set :branch, :master
set :django_settings, 'production'