Move init into local-cli
This commit is contained in:
parent
9caee3248b
commit
29325d7cb3
|
@ -7,7 +7,7 @@
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
var init = require('../init.js');
|
var init = require('./init.js');
|
||||||
var install = require('./install.js');
|
var install = require('./install.js');
|
||||||
var bundle = require('./bundle.js');
|
var bundle = require('./bundle.js');
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ var fs = require('fs');
|
||||||
|
|
||||||
function init(projectDir, appName) {
|
function init(projectDir, appName) {
|
||||||
console.log('Setting up new React Native app in ' + projectDir);
|
console.log('Setting up new React Native app in ' + projectDir);
|
||||||
var source = path.resolve(__dirname, 'Examples/SampleApp');
|
var source = path.resolve(__dirname, '..', 'Examples/SampleApp');
|
||||||
|
|
||||||
walk(source).forEach(function(f) {
|
walk(source).forEach(function(f) {
|
||||||
f = f.replace(source + '/', ''); // Strip off absolute path
|
f = f.replace(source + '/', ''); // Strip off absolute path
|
Loading…
Reference in New Issue