Comments (10)
thank you very much! NX is very good.
I don't know how many changes will happen, if time permits, i will try to.
from ng-alain.
Yes, it'll be a breaking change for sure. If you intend to integrate NX, can you create another branch so that I can also contribute to?
However, we can write an inject script to have current repository to work with NX.
Please let me know if you have any better idea ;).
from ng-alain.
it is unlikely that if need releases a breaking change. I have a lot of work to do future, so i can't maintenance extra branches.
can supported NX on the bases, maybe your write an inject script is also a pretty good choice. other ways is so hard to implement, i don't have too much energy.
from ng-alain.
@xgenvn hi, i pondered this problem over and over again that manage multiple apps within one place.
so, i plan to create a new repository service for business components (like alain), please tell me how to do compatible NX?
from ng-alain.
I'll start experiment with creating a lib called alain
, and moving things from the core
and shared
into alain
. Or two different lib (alain_shared, alain_core). Well, I don't think you'll have problem moving things around like that. However, the structures should be well-defined. Then the current dashboard implementation can be defined as a playground app for references.
Perhaps we can create another repository called nx.alain?
from ng-alain.
Sure, it's the best if you can create a basic project service for NX.
and i have a few questions to ask.
- What is the difference between NX and npm?
- What should a NX directory structure?
from ng-alain.
I'm not sure how to answer the first question correctly.
I think it's very similar if we manage the app as npm packages.
There's one point that NX is superior though.
Scenario: We have Front app for user, Admin app for management, maybe Mobile app as well.
With NX, we have these apps under app folder. You can choose to build which app, and anything can be shared, put in lib folder, or separate npm package is also good.
With npm, I suppose we still have multiple app folders, right? And it makes maintenance a little bit harder.
So for me, NX solution is like a Visual Studio solution, where every app is a different project.
from ng-alain.
Why not using lerna to manage packages that you want to share among many other apps ?
And the code structure could be like colmena which is more scalable
from ng-alain.
Hi,
I haven't heard about lerna before. Thank you for mentioning it. Just have been checking it out, it serves similar to NX. However, lerna is very general compare to NX, which serves only Angular based development. And it requires a lot of configuration (correct me if I'm wrong). It's not like NX, one command and we have it working nicely.
And NX will extend Angular CLI, so it'll be better if we're using Angular CLI.
Colmena directory structure is similar to NX, and under active development. NX has reach the stable release at 1.5.x.
from ng-alain.
@xgenvn In fact, there's little configuration you have to do with lerna, just try it.
Yes, Colmena directory structure is similar to NX.
Using lerna to manage projects, you can control the package version and quickly publish it to npm, thus you can update your packages in semver. and use packages in other apps, not only current project. It's flexible whereas you have to manage the directory structure by yourself like Colmena. You can use ng serve
as usual and do not have to build libs at first.
AFAIK, using Nx do save our time to manage directory structure and the time to create some basic files, but you can not control the package version.
They are complementary。 I think it may be better if using both of them.
from ng-alain.
Related Issues (20)
- 希望st表格的format能够支持异步数据,支持返回Observable<any> HOT 4
- st导出貌似没有正确处理已被忽略的列 HOT 3
- startupService.load() was blocked by @delon/auth HOT 5
- sf的object组件属性会默认继承到子组件 HOT 2
- form select 设置 onSearch后无法使用设置enum来显示默认值 HOT 7
- this.sf.setValue('/subjectId2', null) this.sf.value 结果不对 HOT 3
- sf的array元素通过sf的ui设置grid无效 HOT 2
- Is there a similar vs code extension i18n-ally that supports ng-alain i18n? HOT 1
- No translation for SettingDrawer
- NG-ALAIN v17 升级指南 / v17 upgrade guide HOT 9
- ng add `ng add ng-alain` support for v17 HOT 4
- fix(acl,auth): corrected reference issue of optional dependencies
- fix(cli): corrected Node 20 support
- No widget for type "tree-select"
- 14.x版本文档无法访问 HOT 2
- Max items limit
- st.export excel 后端分页仅导出第一页 HOT 2
- st export type checkbox/no 导出后列顺序不正确的问题 HOT 2
- st export column render没有导出/0 值导出为空 HOT 5
- reuse tab 打开多个标签后,再切到第一个标签,后续新开标签位置错乱 HOT 1
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 ng-alain.