Automated project setup with krankerl up

less than 1 minute read

With the release of Krankerl 0.7.0, I’ve added a new up command that detects composer and npm availability and automatically installs all Nextcloud app dependencies and runs the npm build task. For those who are not familiar with Krankerl: it’s a small CLI tool to help building Nextcloud apps, written in Rust.

The goal was to use my Krankerl tool for any Nextcloud apps, not just those that I maintain and where a Krankerl config is available. By reading both composer.json and package.json, Krankerl can safely determine whether these package managers are used and if there is a build script defined for npm.

For interested Rustaceans: this feature was build with the help of two new crates: composer and npm_scripts. You can find both of them on crates.io: