Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
#!coding: utf-8
import sys, os, re, shutil
from optparse import OptionParser
parser = OptionParser(usage=
'''%prog [options] <target-dir>
Example:
# grunt-newer:
# Check for newer @import .scss files example(CoffeeScript version)
# Customized of @bellerus https://gist.github.com/bellerus/10414499
# See: https://github.com/tschaub/grunt-newer/issues/29
module.exports.checkForModifiedImports = (details, action) ->
fs = require('fs')
path = require('path')
scssFile = details.path
mTime = details.time