Add spm support
Merge pull request #22 from spmjs/master

Add spm support