-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Preparing changes to project.config.ts
- Loading branch information
1 parent
c3c56cc
commit 1e7e7ee
Showing
48 changed files
with
1,080 additions
and
1,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bun 1.1.8 | ||
bun 1.1.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
import { Command } from 'commander'; | ||
import { projectConfig } from '../../config/project'; | ||
import { deletePath } from '../../utils/file-system'; | ||
import logger from '../../utils/log'; | ||
import sharedOptions from '../../utils/shared-options'; | ||
import { Command } from 'commander' | ||
import { projectConfig } from '../../config/project' | ||
import { deletePath } from '../../utils/file-system' | ||
import logger from '../../utils/log' | ||
import sharedOptions from '../../utils/shared-options' | ||
|
||
export const cleanDepsCommand = () => { | ||
const command = new Command(); | ||
const command = new Command() | ||
command | ||
.name('deps') | ||
.aliases(['dependencies']) | ||
.summary('Cleanup repositories dependencies (node_modules).') | ||
.description('Cleans all repos dependencies locally installed.') | ||
.addOption(sharedOptions.force) | ||
.action(async (options) => { | ||
const config = projectConfig(); | ||
const config = projectConfig() | ||
logger.info( | ||
'Cleaning all local dependencies for configured applications...', | ||
); | ||
) | ||
|
||
if (options.force) { | ||
logger.warn('User interactivity disabled due to --force flag.'); | ||
logger.warn('User interactivity disabled due to --force flag.') | ||
} | ||
|
||
for (const repo of Object.values(config.paths.repos)) { | ||
await deletePath({ | ||
path: `${repo}/node_modules`, | ||
force: options.force, | ||
}); | ||
}) | ||
} | ||
|
||
logger.info('Dependencies cleanup task completed.'); | ||
}); | ||
logger.info('Dependencies cleanup task completed.') | ||
}) | ||
|
||
return command; | ||
}; | ||
return command | ||
} | ||
|
||
export default cleanDepsCommand(); | ||
export default cleanDepsCommand() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Command } from 'commander'; | ||
import CLIConfig from '../../config/cli.config'; | ||
import { Command } from 'commander' | ||
import { cliConfig } from '../../config/cli.config' | ||
|
||
export function generateConfigCommand() { | ||
return new Command() | ||
.name('generate') | ||
.alias('create') | ||
.summary('Generates default DEMS config file') | ||
.action(() => { | ||
CLIConfig.generate(); | ||
}); | ||
cliConfig.save(cliConfig.default()) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Command } from 'commander'; | ||
import CLIConfig from '../../config/cli.config'; | ||
import { Command } from 'commander' | ||
import { cliConfig } from '../../config/cli.config' | ||
|
||
export function viewConfigCommand() { | ||
return new Command() | ||
.name('view') | ||
.alias('get') | ||
.aliases(['get', 'show']) | ||
.summary('Shows the DEMS config file ') | ||
.action(() => { | ||
console.log(JSON.parse(CLIConfig.get().toString())); | ||
}); | ||
console.log(cliConfig.get()) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.