Skip to content
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

Merged
merged 1 commit into from
May 4, 2018
Merged

[DX-497] OC Clean #872

merged 1 commit into from
May 4, 2018

Conversation

matteofigus
Copy link
Member

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.

@@ -1,5 +1,7 @@
'use strict';
const colors = require('colors/safe');
const { green, yellow } = require('colors/safe');

Copy link
Member Author

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',
Copy link
Member Author

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]'
Copy link
Member Author

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

Copy link
Contributor

@nickbalestra nickbalestra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thanks for this!!!

@nickbalestra nickbalestra merged commit 5fb011c into master May 4, 2018
@nickbalestra nickbalestra deleted the clean branch May 4, 2018 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants