John Days
214c6c5cd2
Add similar options from packager.sh to bundle.js, so we can develop and package with the same functionality
2015-05-27 19:02:26 +01:00
Dave Sibiski
b1b93f902d
Fixes typo
2015-05-23 18:59:33 -04:00
Dave Sibiski
3b3ee6126f
Adds validation check for "React" package name
...
- "React" is a reserve word and cannot be used as a project name since it will break the Sample app when generated
2015-05-23 16:28:04 -04:00
Alex Kotliarskyi
d4f158a983
Fix react-native-cli code formatting
2015-05-18 10:25:17 -07:00
Alexander Kotliarskyi
e12762e036
Merge pull request #1293 from skv-headless/confirm-init-overwrite
...
Ask confirmation on init command
2015-05-18 10:24:19 -07:00
skv
af26e9628c
ask confirmation on init command
...
if directory already exist
2015-05-16 22:23:19 +03:00
Joe Stanton
557f721ba8
Stylistic cleanup
2015-05-15 17:08:21 +01:00
Joe Stanton
0a3a2f04bb
Duplicate the name validation for now
2015-05-15 09:21:38 +01:00
Joe Stanton
84bce3e42d
Added react-native new-library command
2015-05-15 09:17:27 +01:00
Joe Stanton
39684ea2e7
Added react-native new-library command
2015-05-15 09:17:27 +01:00
Joe Stanton
d22a554e20
Fixed stylistic issues
2015-05-14 20:19:29 +01:00
Joe Stanton
df1bf66bf8
Move init into local-cli
2015-05-14 18:08:56 +01:00
Joe Stanton
b265ffc819
Linked with new local-cli, refactored
2015-05-14 16:11:05 +01:00
Joe Stanton
c332c32fc3
Require directly, don't spawn
2015-05-14 15:25:35 +01:00
Joe Stanton
53a0dbaafb
1-1 port of init script to Nodejs
...
This will remove the dependency on Ruby.
2015-05-14 15:23:25 +01:00
Alex Kotliarskyi
975bbbc4fb
Warn if init is called from existing project
2015-05-04 12:19:48 -07:00
Arthur Lee
2a541536d6
Added bundle command using ReactPackager
...
Added bundle script
Pipe http response straight to file
Used ReactPackager directly, minor fixes
Added error handling to fs.writeFile
Changed .then to .done
2015-04-20 20:01:03 -04:00
Christopher Chedeau
09c6530eab
Warn when installing globally react-native instead of react-native-cli
...
This adds a react-native binary that just output some instructions.
2015-04-08 11:15:56 -07:00
Thomas Mchugh
a44bba4aad
Updates tests to work with new install output
2015-04-08 07:12:12 -05:00
Vinnie Garcia
0cb18791e3
Fix packager script breakage when running npm start
2015-04-08 01:21:30 -07:00
Christopher Chedeau
e020b2aada
Unbreak npm publish
...
See https://github.com/facebook/react-native/pull/706#issuecomment-90799052
2015-04-07 21:30:46 -07:00
Thomas Mchugh
86c13f797c
Merge remote-tracking branch 'upstream/master'
2015-04-07 15:18:07 -05:00
Thomas Mchugh
2bd15e5ab4
added tests to cli
2015-04-07 15:16:33 -05:00
Alex Kotliarskyi
2d451096bd
Allow running local cli from terminal
2015-04-07 12:33:41 -07:00
Thomas Mchugh
d8a4b45e10
created install command and moved cli to local-cli directory
2015-04-06 12:58:03 -05:00
Thomas Mchugh
e02e4d4d9e
created install command and moved cli to local-cli directory
2015-04-06 12:58:03 -05:00
Pedro Gaspar
c8172be19f
Adds missing space character to CLI error message
...
Before:
> Command `foo` unrecognized.Did you mean to run this inside a react-native project?
After:
> Command `foo` unrecognized. Did you mean to run this inside a react-native project?
2015-03-27 04:12:18 +00:00
Ben Alpert
47453c7f11
Bump react-native-cli version actually
2015-03-26 12:13:29 -07:00
Amjad Masad
eaf1101e07
Only allow valid identifier names as project names. Fixes #213
2015-03-26 11:19:39 -07:00
Steve Lacy
4abb0b5a48
Lint code - change double to single quotes to keep code style
2015-03-26 10:47:05 -07:00
Alexander Kotliarskyi
c09eb8a17f
Use full path to packager for generated project
...
This way people without react-native-cli can still do `npm start`
2015-03-26 08:59:10 -04:00
Alex Kotliarskyi
67be5a298e
Fix few paths for react-native cli scripts
2015-03-22 14:04:55 -07:00
Alex Kotliarskyi
28025eee8e
Allow react-native init <project-or-dir-name>
2015-03-22 13:27:32 -07:00
Amjad Masad
b69309c318
react-native-cli initial commit
...
A cli package that is responsible for:
* starting a new react-native project
* forwarding all other commands to a cli module in react-native
* currently cli.js knows how to start the webserver, in the future it may do things like build the app etc.
2015-03-19 17:48:23 -07:00