2016-11-15 2 views
0

создать в tutorial for creating a Meteor app using Angular 2 вам будет предложено выполнить следующую команду в окне терминала:Документация для метеора команды

meteor create --example angular2-boilerplate socially 

Я не смог найти какой-либо документации, которая объясняет различные опции команды meteor create, что даст представление о том, что делают аргументы --example angular2-boilerplate. Ближайший я нашел в Meteor docs for the commandline, но в этом только упоминается опция --package без дополнительной информации.

Не могли бы вы объяснить все варианты, доступные с помощью meteor create, и как они работают?

+1

'метеорная помощь создать' – MasterAM

ответ

2

Инструмент Метеор CLI содержит свою собственную документацию.

Вы можете использовать meteor help (или более стандартный meteor --help или meteor -h), чтобы получить общий список команд. Обратите внимание на строку внизу.

$ meteor help 
Usage: meteor [--release <release>] [--help] <command> [args] 
     meteor help <command> 
     meteor [--version] [--arch] 

With no arguments, 'meteor' runs the project in the current 
directory in local development mode. You can run it from the root 
directory of the project or from any subdirectory. 

Use 'meteor create <path>' to create a new Meteor project. 

Commands: 
    run    [default] Run this project in local development mode. 
    debug    Run the project, but suspend the server process for debugging. 
    create    Create a new project. 
... 
    show    Show detailed information about a release or package. 

See 'meteor help <command>' for details on a command. 

Таким образом, для получения справки по команде create, вы должны ввести:

$ meteor help create 
Usage: meteor create [--release <release>] <path> 
     meteor create [--release <release>] --example <example_name> [<path>] 
     meteor create --list 
     meteor create --package [<package_name>] 

Make a subdirectory named <path> if it doesn't exist and create a new Meteor app 
there. You can pass an absolute path, relative path, or '.' for the current 
directory. 

With the --package option, creates a Meteor package instead of an app. If you're 
in an app, the package will go in the app's top-level 'packages' directory; 
otherwise it will be created in the current directory. 

The app will use the release of Meteor specified with the --release 
option, or the latest available version if the option is not specified. (A 
package created in an app, will be created using the application's version of 
meteor and a package created outside a meteor app will use the latest release). 

You can pass --example to start off with a copy of one of the Meteor 
sample applications. Use --list to see the available examples. There are 
currently no package examples. 

Options: 
    --package Create a new meteor package instead of an app. 
    --example Example template to use. 
    --list  Show list of available examples. 

и список примеров:

$ meteor create --list 
Available examples: 
    clock: https://github.com/meteor/clock  
    leaderboard: https://github.com/meteor/leaderboard 
    localmarket: https://github.com/meteor/localmarket 
    simple-todos: https://github.com/meteor/simple-todos 
    simple-todos-react: https://github.com/meteor/simple-todos-react 
    simple-todos-angular: https://github.com/meteor/simple-todos-angular 
    todos: https://github.com/meteor/todos  
    todos-react: https://github.com/meteor/todos#react 
    angular2-boilerplate: https://github.com/bsliran/angular2-meteor-base 

To create an example, simply git clone the relevant repository and branch (run 
'meteor create --example <name>' to see the full command). 

(это выход для Метеор v1.4.2)

1

meteor create <project> ...

--example angular2-boilerplate просто тянет код отсюда https://github.com/Urigo/angular2-meteor-base, а не делать Скелтон, стандартное приложение метеоритный

Ваше имя проекта socially

Смежные вопросы