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

[minor] [chore] : Update to support Lerna structure #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

animesh10
Copy link

No description provided.

@animesh10 animesh10 changed the title [DO Not MERGE] [minor] [chore] : Update to support Lerna structure [minor] [chore] : Update to support Lerna structure Aug 1, 2017
data.deps = moduleDeps;
// Fetch the repo data file if it already exists
let repoFile = {};
let writePath = Path.join(__dirname, `../../data/${moduleName}.json`);
Copy link

Choose a reason for hiding this comment

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

Shall we use const here since writePath won't change.

And if try catch is to verify if the path exists, you can use optional-require: https://www.npmjs.com/package/optional-require

//fetch top level package.json for repo
readPackageContent(org, repoName, "package.json")
.then(response => {
let packageContent = contentToString(response.content);
Copy link

Choose a reason for hiding this comment

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

const for packageContent?

if (err) {
console.log(err);
return;
}

exec(`crontab ${filePath}`, (error) => {
exec(`crontab ${filePath}`, (error, stdout, stderr) => {
Copy link

@didi0613 didi0613 Oct 24, 2017

Choose a reason for hiding this comment

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

Saw some unused references here: stdout, stderr.
Please fix all the linter errors :-)

@CLAassistant
Copy link

CLAassistant commented Oct 25, 2017

CLA assistant check
All committers have signed the CLA.

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.

None yet

3 participants