Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文上手文档 #7

Open
afc163 opened this issue Aug 25, 2014 · 3 comments
Open

中文上手文档 #7

afc163 opened this issue Aug 25, 2014 · 3 comments

Comments

@afc163
Copy link
Member

afc163 commented Aug 25, 2014

安装

$ npm install spm-server -g

进入一个 spm 模块目录

比如 arale-calendar:

$ git clone [email protected]:aralejs/calendar.git
$ cd calendar

安装依赖,开启服务

$ spm install
$ spm-server

访问对应文件

http://127.0.0.1:8000/arale-calendar/1.1.1/index.js

这个文件是映射到源文件 index.js 的,可以直接修改和调试。

绑定 host 并强制开启 80 端口

127.0.0.1 assets.example.com
$ sudo spm-server --port 80

然后访问 http://assets.example.com/arale-calendar/1.1.1/index.js ,这样就可以把开发或生产环境的文件代理到本地源码(基于 CommonJS 规范书写)了。

@afc163 afc163 changed the title 补充基本的用法和例子 最简单的用法 Sep 25, 2014
@w19871029
Copy link

安装不上 不知道是什么原因 win7系统

cmd 提示

D:\>git clone [email protected]:aralejs/calendar.git
Cloning into 'calendar'...
Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@w19871029
Copy link

是不是版本不对 我的是 spm3

@afc163
Copy link
Member Author

afc163 commented Sep 25, 2014

@afc163 afc163 changed the title 最简单的用法 中文上手文档 Oct 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants