Skip to content

Commit

Permalink
Merge pull request #107 from AthennaIO/develop
Browse files Browse the repository at this point in the history
feat(cmd): add `version` command
  • Loading branch information
jlenon7 authored Apr 12, 2024
2 parents 89f878d + c231503 commit 6e30ec7
Show file tree
Hide file tree
Showing 7 changed files with 198 additions and 79 deletions.
6 changes: 5 additions & 1 deletion artisan.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
import { Exec } from '@athenna/common'

Exec.artisan('./bin/artisan.js', {
nodeOptions: ['--enable-source-maps', '--import=@athenna/tsconfig'],
nodeOptions: [
'--no-warnings',
'--enable-source-maps',
'--import=@athenna/tsconfig',
],
})
7 changes: 3 additions & 4 deletions bin/.athennarc.prod.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"providers": [
"@athenna/core/providers/CoreProvider"
],
"providers": ["@athenna/core/providers/CoreProvider"],
"commands": {
"new": "#src/commands/new.command"
"new": "#src/commands/new.command",
"version": "#src/commands/version.command"
},
"templates": {
"artisan": "templates/artisan.edge"
Expand Down
130 changes: 65 additions & 65 deletions package-lock.json

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

25 changes: 16 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/cli",
"version": "4.14.0",
"version": "4.15.0",
"description": "Athenna CLI to create new Athenna projects.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -49,13 +49,13 @@
"#tests": "./tests/index.js"
},
"dependencies": {
"@athenna/artisan": "^4.40.0",
"@athenna/common": "^4.35.0",
"@athenna/config": "^4.19.0",
"@athenna/core": "^4.34.0",
"@athenna/ioc": "^4.18.0",
"@athenna/logger": "^4.18.0",
"@athenna/view": "^4.20.0",
"@athenna/artisan": "^4.41.0",
"@athenna/common": "^4.36.0",
"@athenna/config": "^4.20.0",
"@athenna/core": "^4.36.0",
"@athenna/ioc": "^4.19.0",
"@athenna/logger": "^4.19.0",
"@athenna/view": "^4.21.0",
"reflect-metadata": "^0.2.1",
"source-map-support": "^0.5.21"
},
Expand Down Expand Up @@ -186,7 +186,14 @@
"path": "@athenna/core/commands/InstallCommand",
"registry": "npm"
},
"new": "#src/commands/new.command"
"new": {
"path": "#src/commands/new.command",
"loadApp": true
},
"version": {
"path": "#src/commands/version.command",
"loadApp": true
}
},
"templates": {
"artisan": "templates/artisan.edge",
Expand Down
Loading

0 comments on commit 6e30ec7

Please sign in to comment.