diff --git a/src/commands/config/config.js b/src/commands/config/config.js deleted file mode 100644 index 394a23c7c..000000000 --- a/src/commands/config/config.js +++ /dev/null @@ -1,10 +0,0 @@ -export default { - stylePrefix: 'com-', - - // Default array of commands - defaults: [], - - // If true, stateful commands (with `run` and `stop` methods) can't be runned multiple times. - // So, if the command is already active, running it again will not execute the `run` method - strict: 1, -}; diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts new file mode 100644 index 000000000..40937ee9b --- /dev/null +++ b/src/commands/config/config.ts @@ -0,0 +1,28 @@ +export interface CommandsConfig { + /** + * Style prefix + * @default 'com-' + */ + stylePrefix?: string; + + /** + * Default array of commands + * @default [] + */ + defaults: any[]; + + /** + * If true, stateful commands (with `run` and `stop` methods) can't be executed multiple times. + * If the command is already active, running it again will not execute the `run` method. + * @default true + */ + strict: boolean; +} + +const config: CommandsConfig = { + stylePrefix: 'com-', + defaults: [], + strict: true, +}; + +export default config;