EmbeddedEnterprises / cmake-ts

Typescript based rewrite of cmake-js to support cross compilation
9 stars 3 forks source link

Improving Options and CLI #15

Open aminya opened 3 years ago

aminya commented 3 years ago

In this issue, I want to discuss things related to options and CLI. As we already discussed, I think we can improve the options and also make cmake-ts CLI more ergonomic.

Here are the suggestions:

The following should build with the default config if no option is specified in the package.json

cmake-ts

By default process.cwd should be considered if the path is not specified

cmake-ts --configurationName MyConfig

Commander package handles these pretty good

aminya commented 3 years ago

Some more points about the docs:

aminya commented 3 years ago

We also need to support the CMAKE_TS env variables inside Cmake files. Using CMAKE_JS is nice for backward compatibility, but not supporting CMAKE_TS is confusing.