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

t2 init: broad cleanup #779

Merged
merged 7 commits into from
Jun 25, 2016
Merged

t2 init: broad cleanup #779

merged 7 commits into from
Jun 25, 2016

Conversation

rwaldron
Copy link
Contributor

WIP. I still have more JS tests to write.

Signed-off-by: Rick Waldron waldron.rick@gmail.com

@rwaldron rwaldron force-pushed the init-cleanup branch 2 times, most recently from e1a36f7 to 17c1216 Compare June 23, 2016 16:42
controller.installDrivers = function() {
return drivers.install();
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just being moved to lib/controller.js

@@ -33,14 +31,14 @@ exportables.loadNpm = () => {
};

// Resolve an npm cofig list, or nothing (existance is not needed)
exportables.getNpmConfig = (npm) => {
exportables.resolveNpmConfig = (npm) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In general, I think things that are "resolved" by a promise should be named accordingly.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
}
// Copy over config file, the blinky main, and the toml file
fs.createReadStream(path.resolve(__dirname, './../../resources/rust/', file_toml)).pipe(fs.createWriteStream(path_toml));
fs.createReadStream(path.resolve(__dirname, './../../resources/rust/', cargoToml)).pipe(fs.createWriteStream(cargoTomlDir));
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be simplified to use fs.copy or fs.copySync is we want to keep it synchronous, like in javascript.js?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you're right. Revision to follow

… string

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
log.info(`Wrote "Hello World" to ${dirAndMainRs}`);
resolve();
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
@HipsterBrown
Copy link
Contributor

Awesome. Thanks for tackling this @rwaldron. Once tests pass LGTM 👍

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
@rwaldron
Copy link
Contributor Author

Thanks @HipsterBrown!

@rwaldron rwaldron merged commit f6bb140 into tessel:master Jun 25, 2016
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

2 participants