$ git add --all
to include delete files.
$ git commit
#!/bin/sh | |
# Be sure to set the index and 404 docs to "index" and "404" respectively in your bucket settings | |
# replace with your compile command | |
harp compile ./ ./out | |
# removes the html extension | |
for f in `ls out/*.html out/**/*.html`; do mv $f "${f%%.*}"; done |
// Wrapper for Harp web server, to include JS concat/compile step. Put your stuff | |
// in /harp subdirectory, npm install your dependencies, run, enjoy. | |
// Live updating of the concatenated JS file left as an exercise for the reader :) | |
var fs = require('fs'); | |
var path = require('path'); | |
var harp = require('harp'); | |
var UglifyJS = require('uglify-js'); | |
var files = []; | |
files.push(__dirname + '/harp/js/file0.js'); |
$ git add --all
to include delete files.
$ git commit
function archiveOld() { | |
var threads = GmailApp.search('in:inbox -is:starred older_than:7d'); | |
for (var thread in threads) { | |
GmailApp.moveThreadToArchive(threads[thread]); | |
} | |
} | |
archiveOld(); |
deployment: | |
staging: | |
branch: master | |
heroku: | |
appname: supahands-staging |
[
{ "keys": ["super+shift+;"], "command": "reindent" , "args": {"single_line": false}},
]
While at it, make use of full potential of CI + Heroku. We made that any push to Github on master branch will be pushed to Heroku as well:
<div> | |
<label for="sort-by">Sort by</label> | |
<select id="sort-by"> | |
<option value="manual">Featured</option> | |
<option value="price-ascending">Price: Low to High</option> | |
<option value="price-descending">Price: High to Low</option> | |
<option value="title-ascending">A-Z</option> | |
<option value="title-descending">Z-A</option> | |
<option value="created-ascending">Oldest to Newest</option> | |
<option value="created-descending">Newest to Oldest</option> |