Comments (6)
I think it is because engine source code also has the folder named native
, and the generated folder also has a native
folder.
from cocos-engine.
I think it is because engine source code also has the folder named
native
, and the generated folder also has anative
folder.
Okay.
In my case, my engine plugin will have the native
directory because the installed npm package has a directory with that name, but the engine plugin will have to add node_modules to Git if it's going to work properly because of this unresolved issue: #16896
Then, the project directory also has a directory with this name:
- assets
- login-sdk
- native
- browser
- minigame
- login-sdk
from cocos-engine.
May be you should ask the plugin user to remove it. As most developers will not modify engine codes, so i think it is reasonable to keep it.
from cocos-engine.
May be you should ask the plugin user to remove it. As most developers will not modify engine codes, so i think it is reasonable to keep it.
What? no!
The engine code has not been modified!
- extensions
- plugin-a
- node_modules
- fs
- dist
- impls
- native
- index.js
- web
- other
- native
- impls
- dist
- fs
- node_modules
- plugin-a
Here I assume that the engine plug-in depends on a cross-platform file system implementation module.
Because of the gitignore file, users cannot simply put plugins into version management.
This situation is not uncommon!
from cocos-engine.
In my project, the .gitignore is
#///////////////////////////
# Cocos Creator 3D Project
#///////////////////////////
/library/
/temp/
/local/
/build/
/profiles/
/native/engine/android/**/*/assets
It is different from you.
from cocos-engine.
I tried creating a new project using 3.8.3 and the .gitignore is:
#///////////////////////////
# Cocos Creator 3D Project
#///////////////////////////
library/
temp/
local/
build/
profiles/
native
#//////////////////////////
# NPM
#//////////////////////////
node_modules/
#//////////////////////////
# VSCode
#//////////////////////////
.vscode/
#//////////////////////////
# WebStorm
#//////////////////////////
.idea/
The same problem just occurred in the my team. I added the l10n plug-in to the project and submitted it to git. An error occurred after the team member pulled it.
because gitignore ignores node_modules, but the current plug-in system cannot automatically install plugin's dependencies.
I think the default gitignore file needs to be completely improved, and try to only ignore directories that Creator must ignore, rather than hitting it on a large scale.
In addition, Some settings of Creator itself are also ignored. things like build settings should be synchronized by default.
from cocos-engine.
Related Issues (20)
- spine隐藏时调用setAnimation报错 HOT 2
- The same 3D scene 3.8.3 takes up 90MB more memory than Unity 2021 HOT 5
- taobao Platform can not trigger clearLRU
- 当一个bundle中包含 "排除" 设置时, 不管这个bundle内容是否改变. 每次build后, 都会生成新的config.json HOT 2
- 希望能支持 新版本 (24,25,26)的 Android NDK HOT 2
- 编辑器中, 无法定位 预制体上 龙鼓组件的 json 文件
- 单选框添加必须选中一个选项的功能
- 资源在不同AssetBundle优先级中归属问题
- shader能内置个世界矩阵的逆矩阵吗? 翻了文档和源码都没有找到
- [native] Keep the same behavior of Promise rejection and multiple resolve as nodejs and web
- [bug] The generated JS code format was changed in v3.8.3
- Editor tool for collect shader variants information in the whole project, and runtime preload api for collected variants.
- 关于 cocos编译后的微信小游戏的 window未定义 的错误.
- 希望在 cc的宏可用, 但是引擎以及canvas尚未初始化时, 加入一个hook节点, 可以让开发者来修改 宏.
- 【BUG】3.8.3 bundle独立构建有问题
- [3.8.3] Custom gpu particle shader effect render error
- [3.8.3] if use CustomRendererPipeline the gpu particle will render error
- [3.8.x] Mybe the cocos engine can use extension 'KHR_parallel_shader_compile' to optimizethe compilation time of many shaders
- 希望能暴露 IAssembler 和 IAssemblerManager , 自己写 Assembler 是要用到. HOT 4
- wrong behavior with propagationImmediateStopped
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocos-engine.