cd ~/.CocosCreator/packages
git clone https://github.com/aztack/cc-modules.git
cd cc-modules
npm i
Open CC Module Manager
by click 'Main Menu/Extension/CC Module Manager'
Setup mandatory confgiurations.
End Point
: Your private gitlab domain (with protocol and without trailing slash)Private Token
: Your private token. see Gitlab: Personal access tokensAPI Version
: Currently only supportapi/v4
. Do not changeNamespace Name
: Namespace name where your modules locatedNamespace Id
: Namespace id where your modules located.Module Directory
: Directory where your modules will be downloadedPrefixes
: Only repository name started with given prefixes will be considered as modules
- All your modules MUST be located in ONE namespace
- All your modules MUST be started with meaningful prefixes (
comp-
for component andutil
for utilities). If you need to support more prefixes, setPrefixes
likecomp,util,image,audio
- All your modules MUST contains a
package.json
which is generated withnpm init
and contains aversion
field as current version. - All your module repositories MUST be tagged with semantic version like
v1.0.0
if you want use different versions in different projects.
- You can install modules by click the
plus
button at the begining of the module list item - You can uninstall modules by just delete module folder in
Assets Manager
.Module manager
will refresh the list when deletion is detected.
- Automatically install dependencies
- Add search bar, fold/unfold button
- Load/Save settings to file to avoid losing settings when open more than one Cocos Creator
- Group modules with same prefix into sections
- Support custom
Prefixes
- Remove module backup (You have to remove existing module manually)
- Detect existing module version
- Add tag explanation
- Basic functionality