1.1.5 • Published 7 years ago

gm-bootstrap v1.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

###准备 请确定已经安装nodejs及npm,且电脑上有ruby环境,gem命令能够正常使用.

请先运行命令:npm install安装依赖.

安装jekyll静态站点生成器:

gem install jekyll

###关于gem源被墙的问题:

  • 下载安装Jekyll 坑:国内的镜像不能用,淘宝的镜像也不行了。
$ gem sources -a http://ruby.taobao.org/
Error fetching http://ruby.taobao.org/:
        bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)

####解决方法:Ruby China 的 RubyGems 镜像上线

gem sources -a https://gems.ruby-china.org/

####添加成功后:

$  gem sources -l

*** CURRENT SOURCES ***

https://gems.ruby-china.org/

###使用

运行npm run watch会监控less文件改动,自动编译. 修改less目录下的theme.less文件,添加或修改变量的值,该文件的变量将直接覆盖variable.less里面的变量的值。

运行npm start,即可打开127.0.0.1:4000查看效果,且文件发生变动自动刷新(貌似不会).

发布

运行npm run deploy对less编译

发布到gh-pages

运行npm run gh-pages

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago