Commit Graph
1197 Commits
Author SHA1 Message Date
Felix Oghină 7927440d6b [cli] convert project generation to use yeoman 2015-08-12 12:04:27 +01:00
Alex Kotliarskyi 0b1246d71e Hide npm output when doing react-native init 2015-08-07 10:59:59 -07:00
Isken Huang 93652051aa add cli bundle url params 2015-07-14 10:40:39 +08:00
Spencer Ahrens cb5cbd3886 Fix tests
e2e flowconfig needed update, plus tweaks
2015-07-09 14:12:56 +02:00
Christopher Chedeau 79e1556652 Merge pull request #1428 from JohnyDays/master
[CLI][Bundle][Packager] Implement --root --assetRoot and --out for consistency with packager and more flexibility
2015-06-19 11:56:02 +01:00
John Days f8e64239c0 Fix syntax error (missing ')') 2015-06-12 14:03:28 +01:00
John Days f9e57197a9 [Bundler] Support multiple asset roots, for consistency with the packager 2015-06-12 13:06:31 +01:00
Spencer Ahrens 32768cb884 Merge pull request #1448 from jsierles/cli-documentation
[Docs] Document the react-native CLI init command
2015-06-11 16:22:22 -07:00
Tadeu Zagallo abea512fe6 Merge pull request #727 from TomMcHugh/master
[CLI] Adds Testing to CLI
2015-06-11 22:23:47 +01:00
Christopher Chedeau a61abac9da Bump react-native-cli version 2015-06-08 14:25:48 -07:00
John Days ad5d9ab78c Spaces before and after if conditions 2015-06-02 23:32:49 +01:00
Joshua Sierles f3d8c923ee capitalize sample app name to avoid issues with JSX 2015-05-29 22:51:04 +02:00
Joshua Sierles 00ee669754 add README for react-native cli 2015-05-29 21:00:51 +02:00
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