-
Notifications
You must be signed in to change notification settings - Fork 244
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
CB-11412 improve template implementation #456
Conversation
5139dee
to
b0f33e1
Compare
}; | ||
|
||
var configSubDirPkgJson = { | ||
lib: { |
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.
nitpick: Look like lib obj here has an extra tab
LGTM! |
b0f33e1
to
d46658b
Compare
@stevengill fixed up the little details |
pkgjson.name = cfg.name.toLowerCase(); | ||
} | ||
pkgjson.version = '1.0.0'; | ||
fs.writeFile(path.join(dir, 'package.json'), JSON.stringify(pkgjson), function (err) { |
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.
Lets maybe do the write operation as Sync and lets add spaces to the new package.json file. See
fs.writeFileSync(package_json_path, JSON.stringify(package_json, null, 4), 'utf8'); |
39f58de
to
3b9fedd
Compare
3b9fedd
to
7417db0
Compare
In preparation for apache/cordova-lib#456
Removed symlinking.