Git Project Creation/Workflow

Hi,

I was wondering if anyone could share any knowledge about setting up GIT Projects with Cocos2d-JS, it seems completely backwards to commit the full framework every time I create a new game. I’m looking to move towards submodules as this seems the best way to go.

Any help would be appreciated.

Garfty

Of course, you can fork the github repo of Cocos2d-JS and use it as a submodule in your projects. But in this way, it will not be compatible with cocos console tool. But you can work with Xcode project or Visual Studio project (need to be modified also).

Otherwise, I suggest you to ignore frameworks/js-bindings and frameworks/cocos2d-html5 when you commit your project in a github repo. This will effectively reduce the size of your repo.

The github repo: http://www.github.com/cocos2d/cocos2d-js

I need to clean some lines .
My .gitignore :

frameworks/js*
frameworks/cocos*
.apk
.exe
runtime/

tools/

publish/*
frameworks/runtime-src/proj.android/obj/*
frameworks/runtime-src/proj.android/bin/*
frameworks/runtime-src/proj.android/gen/*
frameworks/runtime-src/proj.android/libs/*/libcocos2djs.so

# from frameworks/js-bindings/cocos2d-x/.gitingore
# Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.aps
.vcproj..user
*.vcxproj.user
*.csproj.user
*.vspscc
*_i.c
*.i
*.icf
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug/
[Dd]ebug.win32/
.sbr
.sdf
obj/
[Rr]elease/
[Rr]elease.win32/
_ReSharper
/
[Tt]est[Rr]esult

ipch/
*.opensdf

# Ignore python compiled files
*.pyc

\build_xcode/
build
_vc10/

# Ignore files build by xcode
.modev*
*.pbxuser
*.xcbkptlist
*.xcworkspacedata
*.xcuserstate
.xccheckout
xcschememanagement.plist
.DS_Store
._.

xcuserdata/
DerivedData/

# Ignore files built by AppCode
.idea/

# Ignore files built by bada
.Simulator-Debug/
.Target-Debug/
.Target-Release/

# Ignore files built by blackberry
Simulator/
Device-Debug/
Device-Release/

# Ignore vim swaps
*.swp
*.swo

Sorry for the late reply.

This is awesome thanks! this is the way I’ve moved forward and seems the best way.