From 1104b46bd5371a022c2b8ee3085dbb774acbc58b Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 15 Jan 2015 16:38:33 +0800 Subject: [PATCH] Add spm support --- README.md | 8 +++++++- README_en.md | 6 ++++++ package.json | 6 +++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 319a253..c9f480d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -EventProxy [![Build Status](https://secure.travis-ci.org/JacksonTian/eventproxy.png)](http://travis-ci.org/JacksonTian/eventproxy) [![NPM version](https://badge.fury.io/js/eventproxy.png)](http://badge.fury.io/js/eventproxy) [English Doc](https://github.com/JacksonTian/eventproxy/blob/master/README_en.md) +EventProxy [![Build Status](https://secure.travis-ci.org/JacksonTian/eventproxy.png)](http://travis-ci.org/JacksonTian/eventproxy) [![NPM version](https://badge.fury.io/js/eventproxy.png)](http://badge.fury.io/js/eventproxy) [![spm package](http://spmjs.io/badge/eventproxy)](http://spmjs.io/package/eventproxy) [English Doc](https://github.com/JacksonTian/eventproxy/blob/master/README_en.md) ====== [![NPM](https://nodei.co/npm/eventproxy.png?downloads=true&stars=true)](https://nodei.co/npm/eventproxy) @@ -73,6 +73,12 @@ $ npm install eventproxy var EventProxy = require('eventproxy'); ``` +### [spm](http://spmjs.io/package/eventproxy) + +```bash +$ spm install eventproxy +``` + ### Component ```bash diff --git a/README_en.md b/README_en.md index f92f5de..4c3ceda 100644 --- a/README_en.md +++ b/README_en.md @@ -73,6 +73,12 @@ Usage: var EventProxy = require('eventproxy'); ``` +### [spm](http://spmjs.io/package/eventproxy) + +```bash +$ spm install eventproxy +``` + ### For browser Following examples direct resource address of Github, and you can also download [resource file](https://raw.github.com/JacksonTian/eventproxy/master/lib/eventproxy.js) to your own project. 500 lines in total including comments and blank lines. To ensure the easy integrate with your project, EventProxy doesn't provide the minified version. You can use Uglify, YUI Compressor or Google Closure Complier to compress it. diff --git a/package.json b/package.json index 19c6df8..3585dd3 100755 --- a/package.json +++ b/package.json @@ -43,5 +43,9 @@ "doc": "doc", "test": "test" }, - "license": "MIT" + "license": "MIT", + "spm": { + "main": "index.js", + "ignore": ["test"] + } }