tue-robotics / tue_mobile_ui

An app that allows you to control a robot wirelessly
2 stars 2 forks source link

Generate files on compile time instead of adding them to version control #29

Open Timple opened 6 years ago

Timple commented 6 years ago

This way the changes and pull requests become much more clear on what is actually changed.

MatthijsBurgh commented 5 years ago

I was able to figure out the following (From https://github.com/tue-robotics/tue_mobile_ui/blob/master/CONTRIBUTING.md and some testing).

required packages:

Install/build steps:

Install/build steps (challenge_open):

I haven't figured out yet:

@Rayman Is it correct what I figured out and could you help us with the remaining issues?

Timple commented 5 years ago

Another option is to compile in CI and only download the resulting files in the tue-env target

I have some code snippets that would accomplish this if anyone is interested

reinzor commented 5 years ago

Something like this in CMAKE would work:

find_program(NPM npm REQUIRED)
execute_process(COMMAND ${NPM} install WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
execute_process(COMMAND ${NPM} run build WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
reinzor commented 5 years ago

Better to switch fully to npm btw instead of using and npm and grunt and bower

Rayman commented 5 years ago

Grunt isn't used anymore. It's only npm install, npm run build