環境によってはsudoを付ける。
$ (sudo) npm install -g less
Node.jsを入れてない場合はこちらを参考に。
module.exports = (grunt) -> | |
# プラグインを package.json から自動読み込み | |
pkg = undefined | |
taskName = undefined | |
pkg = grunt.file.readJSON("package.json") | |
# タスクスタート | |
grunt.initConfig |
$root-font-size: 15 !default; | |
// rem() | |
// Divides $input by $root-font-size and appends "rem" unit | |
// $input is processed via px() if it contains multiple values | |
// | |
// PARAMS: | |
// $input required | |
// |
#################################### | |
# COMPASS CONFIG # | |
# --------- # | |
# PUT config.rb ON PROJECT ROOT # | |
#################################### | |
##================================## | |
# Require any additional compass plugins here. | |
##================================## |
require 'bundler/setup' | |
require 'thread' | |
require 'launchy' | |
require 'directory_watcher' | |
require 'jekyll' | |
desc 'preview' | |
task preview: [:watch] do | |
Thread.new do |
require 'bundler/setup' | |
require 'thread' | |
require 'launchy' | |
desc 'preview' | |
task :preview do | |
Thread.new do | |
sleep 1 | |
Launchy.open 'http://localhost:9001/' | |
end |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile ~/.gitignore_global | |
# Ignore bundler config | |
################### | |
/.bundle | |
/.gem |
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_size_limit": 4194304, | |
"auto_indent": true, | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", |