Skip to content

Instantly share code, notes, and snippets.

@cotapon
cotapon / Gruntfile.coffee
Created July 3, 2014 09:10
grunt-express-serverを使って開発できるGruntfileを作ってみた ref: http://qiita.com/cotapon@github/items/87a04de4486f208e361f
'use strict'
proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest
mountFolder = folderMount = (connect, base) ->
connect['static'] require('path').resolve(base)
listen = 8000
server = 3000
module.exports = (grunt) ->
@cotapon
cotapon / Gruntfile.coffee
Created December 10, 2013 07:28
jadeとstylusとcoffeeのgruntを作ってみた ref: http://qiita.com/cotapon@github/items/2fd644381fa6860875d8
module.exports = (grunt) ->
# load all grunt tasks
(require 'matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)
_ = grunt.util._
path = require 'path'
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
@cotapon
cotapon / build.rb
Created February 20, 2013 05:01 — forked from deguchi/build.rb
# original https://gist.github.com/715378
# thanks hakobe!
# Macで動作確認。Windowsの場合、spawnを使うとよいらしい。 参考: https://gist.github.com/325036
require 'webrick'
server = WEBrick::HTTPServer.new({
:DocumentRoot => nil,
:BindAddress => '0.0.0.0',
:Port => 9090