Move index.html to root folder

This commit is contained in:
Max
2016-07-17 20:25:48 +02:00
committed by Christopher Chedeau
parent 6cc901b9ad
commit f9fe9ff942
5 changed files with 5 additions and 3 deletions

View File

@@ -35,9 +35,10 @@ module.exports = function(hostPath, appName, verbose) {
JSON.stringify(hostPackage, null, 2)
);
// Move the src folder
// Move the files for the user
// TODO: copying might be more correct?
fs.renameSync(path.join(selfPath, 'src'), path.join(hostPath, 'src'));
fs.renameSync(path.join(selfPath, 'index.html'), path.join(hostPath, 'index.html'));
// Run another npm install for react and react-dom
// TODO: having to do two npm installs is bad, can we avoid it?