Commit Graph

146 Commits

Author SHA1 Message Date
David Glasser
2aba1dce35 style cleanup 2015-01-13 16:35:39 -08:00
rissem
909cd7a99f document --velocity flag 2015-01-13 16:33:56 -08:00
ekatek
a43af02152 add help to mention the source of Exports in package show
Specifically, we want to avoid the situation where you run
'meteor show iron:router'
and then spend hours trying to figure out why Meteor can't process
your calls to, for example, BetterRouteController. The answer, of course,
might be that you are several versions behind and your version doesn't have
that export. We do not want to run the constraint solver to figure out what version
you are using; we played around with how to display this data and decided to just
be explicit about it.

My wording is intentionally vague. In reality, we take:
- the local version if one exists OR
- the latest mainline version, which a non-pre-release non-unmigrated(?) version.
- the latest version that we are showing iff there is no mainline version.
- for releases, we take the latest recommended version

This set of rules is much more complicated than the reality. The reality is pretty
intuitive. We don't want to dwell on what these rules are, just get the general idea across.
2015-01-13 13:53:21 -08:00
ekatek
0f6c31cab7 upload README.md files to the server and view the excerpt in meteor show
This commit is based on the following design document:
https://mdg.hackpad.com/Creating-and-Updating-Docs-0ZyyDcSZDxp,
and some other stuff from here: https://mdg.hackpad.com/Meteor-Long-Description-wGZ1vIOwVlF
and was code reviewed here: https://github.com/meteor/meteor/pull/3375

It does the following:

- Allow the user to specify package documentation in Package.Describe.
  We will take the README.md file by default, to make the transition easier.
  Users can specify ‘documentation: null’ to not submit a README.md

- From that documentation, extract the section between the first and second header
  to use as the long form description for the package.

- Upload the documentation to the server at publish-time. Allow metadata changes with ‘publish —update’.

- Change the default package skeleton to include the README.md file.
  Also, changes the skeleton to have fewer useless placeholders in Package.describe values.

- Fix a minor bug where Git did not show up when running ‘meteor show’ on local packages.

A note on ‘documentation: null’ and blank documentation — we don’t let maintainers upload
blank README.md files, because we want to encourage people to fill them out. (Instead,
we allow a ‘documentation: null’ as an override) This is a UX issue! It is not a technical thing.

There is more discussion and code review in: https://github.com/meteor/meteor/pull/3375
2015-01-13 13:53:21 -08:00
ekatek
a66bb6b10d enable meteor show w/o arguments
This is a thing that I wanted to try -- running 'meteor show' in a
package directory shows you that version's data.
- You might want to run 'meteor show' to get export or dependency
  information on a local package, instead of looking through the
  package.js file.

- Before publishing your package, or updating its metadata, you might
  want to make really sure that its longform description looks good
  in 'meteor show'. Hopefully it does! I would want to check.

Running 'meteor show <name>@local' from a package directory feels
slightly janky to me.
- Other commands in the publiction workflow read 'package.js' to figure
  out your package name. It feels weird to type it out.
- Many package names don't correspond to the directory name. It is good
  to help the user spend less time inspecting package.js files for
  obvious information.

This has bothered me a lot during testing, which is not a normal workflow.
I might be somewhat biased here, in a way that normal users would not be.

There is a minor inefficiency around retrieving a local version record twice,
but I think that it is worth it for code simplicity/readability/etc.
2015-01-13 13:53:21 -08:00
ekatek
12d030dd53 completely rewrite of ‘meteor show’; some changes to ‘meteor search’.
The ‘show’ command has been completely rewritten. It has different output
and now does the following:

- Interacts with local package versions. Checks in the local package catalog, and
  returns the local versions along with the server versions. When ‘meteor show’ is
  run with a specific version request (‘meteor show foo@<version>’), default to
  showing the local package version (but show a message that a server version is
  available). Running ‘meteor show foo@local’ will always show the local version
  (useful for version-less local packages).

- Simplify the interface. Instead of various ‘show-*’ flags, we only have one: show-all.
  By default, we only show the top 5 official (non-prerelease) unmigrated versions of a
  package (+ local version, if applicable). This can be overridden with ‘show-all’, and we
  let the user know that more versions are available. For releases, ‘show-all’ will show
  non-recommended releases.

- Display publication time for non-local package versions. This makes it easier to run
  ‘meteor show <name>’ and see if <name> is actively maintained. For local packages,
  we display the root directory (useful for large apps or running with the
  LOCAL_PACKAGE_DIRS variable, for example).

- For non-local package versions, show if the version is ‘installed’ (downloaded into the
  warehouse). This involved minor changes to tropohouse.js. The idea is that this should
  give a pretty good clue whether the version can be added offline.

- Show version dependencies. This should help the user understand, track down and
  debug constraint solver failures.

- Do not show version architectures except in —ejson mode.

- Allow an ‘—ejson’ flag to get the output in EJSON format. That should make scripting
  easier. (As a bonus, for release versions, the EJSON output acts as a nice template
  for the release configuration file.)

The search command now does the following:

- Interacts with local package versions. Specifically, local versions override equivalent
  server versions. Also, ‘search’ works on local packages (so, for example,
  ‘meteor search troposphere’ inside the package server app will give you the troposphere
  package).

- Allows an ‘—ejson’ flag to get the outout in EJSON format.

Minor changes to some minor testing infrastructure:

 - A new skeleton package, package-for-show. Its versions contain different
   values for various metadata, so we can test that metadata comes from
   the right version.

 - In several places, replace the pattern of copying around
   package.js files with using the replace function on a placeholder
   string. (Mostly, as applied to package versions).

This is based on these hackpads: https://mdg.hackpad.com/Showing-Package-Metadata-HdGo3Lzx3hR
and https://mdg.hackpad.com/Meteor-Search-Output-1xxEzrAK9YU.
2015-01-13 13:53:20 -08:00
David Glasser
6f7636b4e6 Document build --architecture
Fixes #3093.
2015-01-07 17:07:41 -08:00
David Glasser
3b7459e62a start on self-test. file 'run' passes 2014-11-25 09:06:27 -08:00
David Glasser
e88f588cfc Fix updating releases (not package update though)
Move run-upgrader command under 'admin'
2014-11-25 09:06:23 -08:00
David Glasser
5fcab5c42d fix 'meteor rebuild' 2014-11-25 09:06:20 -08:00
Emily Stark
de20ebaa15 Update help text for --mobile-server to reflect reality
Reality is actually a little more complicated than this:
* We use your automatically detected local IP if you are running on device.
* We use 'localhost' if you are running on a simulator.
But it's hard to fit that in help text, and this is at least closer to
reality than it was before.
2014-10-23 13:53:53 -07:00
Maxime Quandalle
8040967e73 show command doesn't have a maintainer option 2014-10-20 17:14:28 -07:00
Ben Newman
830acf651c Implement a meteor shell command.
Summary:
Invoking `meteor shell` starts an interactive REPL for evaluating server-side code.

Shell commands are evaluated in the server process, so the shell's input and output have to be piped through a socket from/to the parent process that runs the `meteor shell` command. This separation accounts for most of the complexity of this diff, but the end result is pretty seamless: tab completion, history, ctlr-c and ctrl-d, etc. all work as expected.

Task: https://app.asana.com/0/15750483766338/16576093991355

Test Plan: Run `meteor run` in one terminal and `meteor shell` in another, evaluate some commands, and verify that the commands seem to be running the context of the server process. Also check tab completion and history, and ensure that the server is running simultaneously with the shell.

Reviewers: dgreenspan, avital, slava, emily, nim, sashko

CC: sashko

Differential Revision: https://phabricator.meteor.com/D837
2014-10-20 14:44:09 -04:00
Nick Martin
5bb1af29a3 Tweak help text for get-machine. 2014-10-17 17:53:36 -07:00
Emily Stark
2a0ff3dad0 Change to --minutes in 'meteor admin get-machine' usage 2014-10-17 17:52:02 -07:00
ekatek
2b3a49ce1a better help for get-machine 2014-10-17 16:32:18 -07:00
Avital Oliver
c1ee15e21e Tweak comment and help text on --mobile-settings 2014-10-17 14:43:33 -07:00
Slava Kim
00658816b1 --mobile-settings option for the meteor build command
Since we removed the --settings for build before, here is an alternative that
only puts it into application bundle (not used for build time settings).
2014-10-17 14:35:44 -07:00
Slava Kim
d63b88926d Copy-edit the meteor help run text 2014-10-16 16:57:37 -07:00
Slava Kim
25c3d39fb8 Fix the deprecation message for meteor bundle 2014-10-16 16:18:39 -07:00
Slava Kim
eb3355e52d update build help text 2014-10-16 15:59:08 -07:00
Slava Kim
56ae0c5764 Wrap every help.txt line to 80 chars 2014-10-16 15:38:55 -07:00
ekatek
f83c08e8fa introduces the 'meteor admin get-machine' command; changes publish not to publish binary builds
This commit does the following:
- Introduces the get-machine command. This command contacts the build farm server
 gets back a machine reservation and then opens    a secure shell to the machine (Alternatively,
 you can ask for a json). This also involved factoring out some   commands to deal with authenticated
 ddp from package-client into a more general auth-client.

- No longer publish binary builds in publish or publish-release; instead give the user a warning
to run get-machine and then publish-for-arch. Someone could ignore this: --existing-version and
publish-for-arch both publish binary builds, but you need to be    at least somewhat familiar with
what you are doing to run them.      Hopefully, you are running them  from a certified build machine,   but
if you are not,    then, well, it    is your    package.

Stuff remaining:
  - We are going to have a url to external documentation, but I haven't written it yet.
  - We are currently talking to   the test-build server, instead of the build server, so mac doesn't
work.
(Neither of those changes require significant tool changes)
2014-10-14 16:49:50 -07:00
ekatek
0fc7f60dcc helper admin method to set the readme on the latest mainline release 2014-10-09 19:13:07 -07:00
David Glasser
04f515da85 Merge branch '0.9.4' into devel
Conflicts:
	docs/client/data.js
	tools/tests/package-tests.js
2014-10-08 17:26:39 -07:00
Justin SB
bb77c6e210 Add some help to install-sdk 2014-10-08 08:11:03 -07:00
David Greenspan
746fd0f792 Take a ––file regex; comments and usage 2014-10-07 15:59:05 -07:00
Slava Kim
d42030989d Document the test-app-path option in test-packages
As using it is the only way to run tests on iOS
2014-10-03 12:07:39 -07:00
Slava Kim
ef68181947 Use plugins configuration from the mobile control file instead of --settings 2014-09-30 21:25:14 -07:00
Sashko Stubailo
07987a009d Merge branch 'devel' into platform-list
Conflicts:
	tools/commands-cordova.js
	tools/tests/cordova-platforms.js
2014-09-30 19:02:42 -07:00
Nick Martin
43c996cd13 Fix whitespace 2014-09-29 21:41:05 -07:00
Nick Martin
fc194393b2 Merge branch 'devel' into release-0.9.4
Conflicts:
	tools/help.txt
2014-09-29 21:38:47 -07:00
Ben Newman
f53c12815e Implement a meteor debug command.
Summary:
The `node-inspector` NPM package was added to the dev_bundle by this
recent commit: 64a624ae5c

Task: https://app.asana.com/0/15750483766338/16241466809965

Test Plan:
Add `debugger` statements to server code, run `meteor debug`, visit the
node-inspector URL in a browser, continue the application, and verify that
the debugger stops at the `debugger` statements that were set.

Reviewers: nim, slava, emily, avital, dgreenspan

CC: sashko

Differential Revision: https://phabricator.meteor.com/D827
2014-09-29 22:50:49 -04:00
Nick Martin
5a4d35184c code style cleanups to match style guide.
help text nitpicking.
2014-09-29 19:50:24 -07:00
Nick Martin
a72629c6ce Mark run --test as experimental. 2014-09-29 19:19:25 -07:00
Emily Stark
59db2ff04b Rename --mobile-server to --server for 'meteor build'. 2014-09-29 18:38:52 -07:00
rissem
251763f2eb clean up velocity --test pull request
- remove hardcoded localhost:3000
- add documentation to command
- remove emoji
2014-09-29 17:58:42 -07:00
Emily Stark
56f5200078 Suggest that you can set protocol in --mobile-server help text 2014-09-29 17:53:02 -07:00
Emily Stark
1598e9c826 Add --mobile-server to 'meteor build' usage. 2014-09-29 17:53:01 -07:00
Emily Stark
257de8a62e WIP: '--mobile-port' to '--mobile-server', and allow https 2014-09-29 17:53:00 -07:00
Sashko Stubailo
59b93e8792 Fix help text for platforms and add special cases for default platforms 2014-09-29 14:13:54 -07:00
ekatek
81caacec4c help message mistype correction 2014-09-16 11:13:31 -07:00
ekatek
c9697bd6d8 a hidden option to mark packages as unsuccessfully migrated 2014-09-15 23:43:56 -07:00
Emily Stark
ccfee68145 Merge branch 'master' into devel
Conflicts:
	docs/client/api.html
	docs/client/data.js
	docs/client/names.json
	meteor
	packages/autoupdate/package.js
	packages/base64/.gitignore
	packages/constraint-solver/package.js
	packages/device-orientation/.gitignore
	packages/less/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	packages/package-version-parser/package.js
	packages/webapp/webapp_server.js
	scripts/admin/meteor-release-experimental.json
	tools/commands.js
	tools/help.txt
	tools/package-version-parser.js
	tools/run-all.js
	tools/tests/apps/build-errors/packages/with-colon-plugin/.gitignore
2014-09-15 14:48:57 -07:00
ekatek
a4bc4c16e8 search should show RC packages optionally; sort alphabetically on lists 2014-09-14 19:09:37 -07:00
Emily Stark
5067f47269 Fix help.txt typo 2014-09-11 15:17:03 -07:00
Emily Stark
c1d6c9aded Replace '--no-server' option with '--mobile-port'.
--no-server was broken as of recently and not trivial to
fix. Instead, if you want to do a mobile build that connects to
something other than your local development server, use --mobile-port,
and your local development server will just listen on localhost:3000
as usual.
2014-09-11 14:55:36 -07:00
Slava Kim
6ca6641a34 Merge branch 'master' into release-0.9.2
Includes latest 0.9.1 changes

Conflicts:
	examples/leaderboard/.meteor/versions
	examples/parties/.meteor/versions
	examples/todos/.meteor/versions
	packages/accounts-base/package.js
	packages/accounts-ui-unstyled/package.js
	packages/autoupdate/package.js
	packages/constraint-solver/package.js
	packages/facebook/package.js
	packages/github/package.js
	packages/google/package.js
	packages/http/package.js
	packages/less/package.js
	packages/meetup/package.js
	packages/meteor-developer/package.js
	packages/meteor-platform/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	packages/minimongo/package.js
	packages/oauth/package.js
	packages/oauth1/package.js
	packages/reload/package.js
	packages/templating/package.js
	packages/twitter/package.js
	packages/webapp/package.js
	packages/weibo/package.js
	scripts/admin/meteor-release-experimental.json
	tools/help.txt
	tools/tests/apps/hot-code-push-test/.meteor/versions
2014-09-05 11:28:12 -07:00
Avital Oliver
186579ea5e Merge branch 'master' into devel
Conflicts:
	examples/todos/.meteor/versions
	packages/autoupdate/package.js
	packages/constraint-solver/package.js
	packages/less/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	scripts/admin/meteor-release-experimental.json
	tools/help.txt
	tools/tests/apps/hot-code-push-test/.meteor/versions
2014-09-04 16:56:19 -07:00
Emily Stark
e46522c7c6 Shorten 'meteor admin maintainers' help text 2014-09-04 15:30:43 -07:00