Comments (3)
While installation should as fast as possible, we should not support easily broken installations, like not installing the webgui and leaving a previously built, possibly outdated version there.
Instead, an incremental installation of the webgui should be supported. This requires two steps:
- Only perform
npm install
, if thepackage-lock.json
file changed. (For the old GUI, there is only apackage.json
file.) This is already done. - Do not make a full rebuild of the web GUI, but an incremental build. NextJS supports ISR (Incremental Static Regeneration), though I am not sure how much work it would require to implement it. I would not waste time doing this with the old GUI, unless it is very easy to do.
Alternatively we could use the COMPONENT
argument of the install()
command in CMake to define multiple installation components. Then it would be possible to install the logger and the parser component and not install the webserver component, if it is not needed in a scenario.
from codecompass.
Instead, an incremental installation of the webgui should be supported.
I agree, that would indeed be a better option.
Would that be possible to build the webgui during make
and check if the webgui source code changed? In that case, make install
would just simply copy the built files.
from codecompass.
The build workflow of Node is not highly compatible with CMake, be it is nice that we have a unified build system for the complete project.
While we can build the frontend during the build
stage of CMake, this will raise another performance issue during development. If someone is working on both the GUI and backend Thrift service, he/she would need to rebuild the frontend each time a make
command is issued. This is vain, as during development, usually not a statically built version of the frontend is tested, but the development server of NodeJS is utilized.
from codecompass.
Related Issues (20)
- Cyclomatic Complexity at Function Level for C++
- Cyclomatic Complexity at Type Level for C++ HOT 13
- Bumpy Road Complexity at Function Level for C++
- LibODB not added properly to runtime docker images
- Multiple CppFunction entities HOT 3
- Separate parse-time C++ metrics information into distinct tables
- Fix code scanning alert - Token-Permissions
- Newer NodeJS versions are not compatible with Ubuntu 16.04 / SUSE 42.1
- Dynamic parsing job launch based on available memory
- Add C++ linter to the CI workflow
- Macro expansion error in C/C++ for _Pragma
- Parallel parsing in C++ metrics
- Incremental parsing fails with segmentation fault HOT 3
- Long C++ metrics parsing time on Ubuntu 22.04 HOT 1
- Handle duplicated compile commands
- Incorrect ODB installation to webserver Docker images HOT 2
- Files are not parsed on dockers codecompass/* HOT 3
- Make type level McCabe calculation parallel
- Metrics backlog
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 codecompass.