2

Play Framework 2.0 と Dojo 1.8 を使用してプロジェクトを開始しており、バージョン管理には Git を使用する予定です。Dojo ファイルは巨大なライブラリーであるため、プロジェクトと共にバージョン管理するのが良い方法かどうかを知りたいと思いました。

4

1 に答える 1

2

Dojo の公式の読み取り専用ミラーがGitHub にあります: https://github.com/dojodojodijitdojox、およびutilをサブモジュールとしてプロジェクト リポジトリに追加します。

# create project directory
mkdir MyProject
cd MyProject

# init git repository
git init

# add git submodule
mkdir src
git submodule add https://github.com/dojo/dojo.git src/dojo

# switch to the particular dojo version
# use `git tag` inside the submodule directory to list available versions 
cd src/dojo
git checkout 1.8.0

# repeat previous two steps for dijit, dojox, util (if necessary):
# https://github.com/dojo/dijit.git
# https://github.com/dojo/dojox.git
# https://github.com/dojo/util.git

# commit changes
cd ../..
git add .
git commit -m "added dojo submodule and moved it to the version 1.8.0"

# push if applicable

これらは、しばらく前に同じ質問をしたときにインスピレーションを得た2つのスタックオーバーフローの回答です。

前述のものと合わせて、成功した Git 分岐モデルを採用しています。これは素晴らしいですが、セットアップが少し難しいです。興味があれば、上記のような段階的な手順を追加できます。

于 2012-09-22T17:33:08.640 に答える