$ make
$ make test
test ok
生成されたppx-commandhash.exeをパスが通った場所に置く
browserify-postcssのindex.jsを下記のように修正すればいける | |
※この方法はcssifyと同じ方法、ただしsassifyではhashを埋め込んでいない、理由は1ファイルへのバンドルをするためか? | |
しかしpostcssではpostcss-importとプラグインになっているため、必ずsassifyに準じる必要はないはず、 | |
よって下記の方法は有効なはず。 | |
しかし確信を持っていないため、gistという形でメモに残す。 | |
```index.patch | |
--- index.js 2016-12-29 05:52:58.000000000 +0900 | |
+++ index_hmr.js 2016-12-29 22:04:22.187971400 +0900 | |
@@ -4,6 +4,8 @@ |
" tagsファイルを.gitディレクトリへ作成する | |
" NOtE : .gitディレトリが、プロジェクトのルートディレクトリ取得も兼ねている | |
function! Make_tags_gitdir() | |
let l:toplevel = system('git rev-parse --show-toplevel') | |
if v:shell_error | |
echo 'failed: git dir is not found' | |
endif | |
let l:toplevel = substitute(l:toplevel, '[\r\n]', '', 'g') | |
let l:cache_pwd = '' |
#!/bin/sh | |
echo_and_do () { | |
echo $ "$1" | |
eval "$1" | |
} | |
echo =============================================== | |
echo grep, ripgrep, git grep benchmark\(by cygwin environment\) | |
echo =============================================== |
all: obj $(TARGET) | |
obj: | |
mkdir obj | |
$(TARGET): ... | |
# ここには含めない | |
.PHONY: |
function! go#path#CheckBinPath(binpath) | |
" 省略 | |
if executable(binpath) | |
if exists('*exepath') | |
let binpath = exepath(binpath) | |
+ let binpath = substitute(binpath, '\', '/', 'g') | |
endif | |
let $PATH = old_path | |
return binpath |
# cygwinの場合 | |
$ ls -la $(find . -type f) | sort -nr -k5 | awk -F' ' '{printf("%5s: %s\n",$5, $9)}' | head -10 |
公式も役立つ | |
https://github.com/nodejs/node-gyp | |
1. Visual C++ Build Toolsをデフォルトオプションのままインストール | |
2. Python2.7をインストール | |
3. | |
``` | |
$ npm config set msvs_version 2015 | |
$ npm config set python d:\path\to\python27\python.exe | |
``` |
function! rustfmt#Format() | |
let l:curw = winsaveview() | |
let l:tmpname = expand("%:p:h") . "/." . expand("%:p:t") . ".rustfmt" | |
- call writefile(getline(1, '$'), l:tmpname) | |
+ " keep file format | |
+ :execute ":w " . l:tmpname |
# 環境変数 | |
SHELLを/bin/zshへ | |
# .zshrc | |
# titleにパス | |
precmd() { eval 'echo -ne "\033]0;$PWD\007"' } | |