安装旧版本的 Foundation
Installing an old version of Foundation
有什么方法可以轻松安装 Foundation 版本,而不是最新版本? "manual" 安装说明以
开头
git clone https://github.com/zurb/foundation-sites-template projectname
理想情况下,我希望能够做类似
的事情
git clone https://github.com/zurb/foundation-sites-template/tree/v6.1.2 projectname
但是没有这样的 v6.1.2 标签
编辑:
我找到了解决方法 - I 运行
git clone https://github.com/zurb/foundation-sites-template projectname
然后我在 bower.json 中编辑依赖项并继续安装的其余部分。至少它对我有用,因为我主要需要 scss 的东西,而不是整个项目。而且我仍然需要寻找 scss/app.scss 和 scss/_settings.scss 的正确版本,因为下载的是最新版本。
如果有一种完全自动化的方式来安装最新版本以外的版本,那就太好了。
github (https://github.com/zurb/foundation-sites-template) 上的 Zurb-Foundation TEMPLATE 项目实际上没有标签:
也许你可以切换到实际的站点项目,如果它是你正在寻找的。
编辑:
我建议制作一个 ps1 或 .bat 脚本来执行以下操作
git clone https://github.com/zurb/foundation-zurb-template projectname
cd projectname
cp C://bower.json bower.json -f
npm install
bower install
您还可以在 Github 上创建模板项目并对其进行编辑 bower.json,这样它始终是最新的并且无需使用 cp 命令
或者对您正在使用的变量进行 git 回购,然后执行类似
的操作
git clone https://github.com/zurb/foundation-zurb-template projectname
git clone https://github.com/you/foundation-version foundation-version
cd projectname
cp ../foundation-version/bower.json bower.json -f
npm install
bower install
有什么方法可以轻松安装 Foundation 版本,而不是最新版本? "manual" 安装说明以
开头git clone https://github.com/zurb/foundation-sites-template projectname
理想情况下,我希望能够做类似
的事情git clone https://github.com/zurb/foundation-sites-template/tree/v6.1.2 projectname
但是没有这样的 v6.1.2 标签
编辑: 我找到了解决方法 - I 运行
git clone https://github.com/zurb/foundation-sites-template projectname
然后我在 bower.json 中编辑依赖项并继续安装的其余部分。至少它对我有用,因为我主要需要 scss 的东西,而不是整个项目。而且我仍然需要寻找 scss/app.scss 和 scss/_settings.scss 的正确版本,因为下载的是最新版本。 如果有一种完全自动化的方式来安装最新版本以外的版本,那就太好了。
github (https://github.com/zurb/foundation-sites-template) 上的 Zurb-Foundation TEMPLATE 项目实际上没有标签:
也许你可以切换到实际的站点项目,如果它是你正在寻找的。
编辑: 我建议制作一个 ps1 或 .bat 脚本来执行以下操作
git clone https://github.com/zurb/foundation-zurb-template projectname
cd projectname
cp C://bower.json bower.json -f
npm install
bower install
您还可以在 Github 上创建模板项目并对其进行编辑 bower.json,这样它始终是最新的并且无需使用 cp 命令
或者对您正在使用的变量进行 git 回购,然后执行类似
的操作git clone https://github.com/zurb/foundation-zurb-template projectname
git clone https://github.com/you/foundation-version foundation-version
cd projectname
cp ../foundation-version/bower.json bower.json -f
npm install
bower install