-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DX-497] OC Clean #872
[DX-497] OC Clean #872
Conversation
@@ -1,5 +1,7 @@ | |||
'use strict'; | |||
const colors = require('colors/safe'); | |||
const { green, yellow } = require('colors/safe'); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved things around in this file to optimise readability, definitely doing another separate PR afterwards to reorganise this stuff
dev: { | ||
cmd: 'dev <dirPath> [port] [baseUrl]', | ||
example: { | ||
cmd: | ||
'$0 dev ../all-components 3001 127.0.0.1:3001 --fallbackRegistryUrl=http://anotherhost:anotherport/' | ||
}, | ||
description: | ||
'Runs a local oc test registry in order to develop and test components', | ||
'Run a local oc test registry in order to develop and test components', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took inspiration from lerna here, all the actions are intended as 2nd person rather than 3rd person intending the action is done by the user not the CLI really :)
@@ -43,7 +57,7 @@ module.exports = { | |||
default: '' | |||
} | |||
}, | |||
usage: 'Usage: $0 dev <dirName> [port] [baseUrl] [options]' | |||
usage: 'Usage: $0 dev <dirPath> [port] [baseUrl] [options]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this example to reflect the naming we use everywhere else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Thanks for this!!!
This introduces an handy oc clean command, pretty useful with monorepos of OCs that now contain templates and subdeps. The functionality is pretty similar to lerna's clean.