Skip to content

Commit

Permalink
Merge pull request #28 from AthennaIO/develop
Browse files Browse the repository at this point in the history
chore(npm): update dependencies
  • Loading branch information
jlenon7 authored Jul 6, 2022
2 parents 47f827e + 3380da8 commit 26f7d13
Show file tree
Hide file tree
Showing 21 changed files with 426 additions and 116 deletions.
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/artisan",
"version": "1.2.7",
"version": "1.2.8",
"description": "The Athenna CLI application. Built on top of commander.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down Expand Up @@ -42,9 +42,9 @@
"#tests/*": "./tests/*.js"
},
"dependencies": {
"@athenna/ioc": "1.2.0",
"@athenna/logger": "1.2.5",
"@secjs/utils": "1.9.4",
"@athenna/ioc": "1.2.2",
"@athenna/logger": "1.2.7",
"@secjs/utils": "1.9.7",
"chalk-rainbow": "1.0.0",
"cli-table": "0.3.11",
"columnify": "1.6.0",
Expand Down
12 changes: 8 additions & 4 deletions src/Commands/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@ export class Command {
/**
* The name and signature of the console command.
*
* @type {string}
* @return {string}
*/
signature
get signature() {
throw new Error('Signature getter not implemented.')
}

/**
* The console command description.
*
* @type {string}
* @return {string}
*/
description
get description() {
return ''
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Eslint/Fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { Command } from '#src/index'
export class MakeFix extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'eslint:fix <filePath>'
get signature() {
return 'eslint:fix <filePath>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Lint one specific file using eslint.'
get description() {
return 'Lint one specific file using eslint.'
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ import { Artisan, Command } from '#src/index'
export class List extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'list <alias>'
get signature() {
return 'list <alias>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'List all commands available of the alias.'
get description() {
return 'List all commands available of the alias.'
}

/**
* Set additional flags in the commander instance.
Expand Down
16 changes: 12 additions & 4 deletions src/Commands/Make/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { Artisan, Command as AbstractCommand } from '#src/index'
export class MakeCommand extends AbstractCommand {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'make:command <name>'
get signature() {
return 'make:command <name>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Make a new command file.'
get description() {
return 'Make a new command file.'
}

/**
* Set additional flags in the commander instance.
Expand Down Expand Up @@ -66,9 +74,9 @@ export class MakeCommand extends AbstractCommand {
}

if (options.register) {
await TemplateHelper.replaceArrayProperty(
await TemplateHelper.replaceArrayGetter(
Path.console('Kernel.js'),
'commands =',
'commands',
`#app/Console/Commands/${file.name}`,
)
}
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Make/Exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { TemplateHelper } from '#src/Helpers/TemplateHelper'
export class MakeException extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'make:exception <name>'
get signature() {
return 'make:exception <name>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Make a new exception file.'
get description() {
return 'Make a new exception file.'
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Make/Facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { TemplateHelper } from '#src/Helpers/TemplateHelper'
export class MakeFacade extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'make:facade <name>'
get signature() {
return 'make:facade <name>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Make a new facade file.'
get description() {
return 'Make a new facade file.'
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Make/Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { TemplateHelper } from '#src/Helpers/TemplateHelper'
export class MakeProvider extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'make:provider <name>'
get signature() {
return 'make:provider <name>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Make a new provider file.'
get description() {
return 'Make a new provider file.'
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Make/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { TemplateHelper } from '#src/Helpers/TemplateHelper'
export class MakeService extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'make:service <name>'
get signature() {
return 'make:service <name>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Make a new service file.'
get description() {
return 'Make a new service file.'
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Make/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import { TemplateHelper } from '#src/Helpers/TemplateHelper'
export class MakeTest extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'make:test <name>'
get signature() {
return 'make:test <name>'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Make a new test file.'
get description() {
return 'Make a new test file.'
}

/**
* Set additional flags in the commander instance.
Expand Down
12 changes: 10 additions & 2 deletions src/Commands/Serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@ import { Command } from '#src/index'
export class Serve extends Command {
/**
* The name and signature of the console command.
*
* @return {string}
*/
signature = 'serve'
get signature() {
return 'serve'
}

/**
* The console command description.
*
* @return {string}
*/
description = 'Serve the Athenna application.'
get description() {
return 'Serve the Athenna application.'
}

/**
* Set additional flags in the commander instance.
Expand Down
Loading

0 comments on commit 26f7d13

Please sign in to comment.