-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Viper edited this page Aug 24, 2023
·
5 revisions
Smake can be configured either globally or locally.
Global Configuration Locations:
Windows: %APPDATA%\Syntad\Smake\config.json
MacOS and Linux: $HOME/.smake/config.json
If you do not use the provided install file to install Smake for the first time, you may have to create the directories yourself. You will have to create config.json if this is your first time configuring Smake.
Global Options:
- pluginsDirectory: An absolute path to your global plugins directory. Defaults to
%PROGRAMDATA%\smake\pluginson Windows and$HOME/.smake/pluginson MacOS and Linux. - smakeFileName: The default file name for Smake files. Defaults to "smake.lua".
This is useful for configuring Smake for your project. Simply create a smake.json file in your project directory and write your configuration there.
Local Options:
- pluginsDirectory: A relative path to your project's Smake plugins directory.
- smakeFileName: The file name for the Smake file. Defaults to "smake.lua".
- defaultCommand: The default command to execute when typing
smake. This isbuildby default. - aliases: A map of aliases for commands. Example:
{
"b": "build",
"i": "install"
}