forked from yeoman/yeoman.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgettingstarted.html
56 lines (43 loc) · 2.22 KB
/
gettingstarted.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: default
markdown: 1
---
## Quick start
Yeoman supports a powerful set of high-level commands. These include:
{% highlight sh %}
yeoman init # Initialize and scaffold a new project using generator templates
yeoman build # Build an optimized version of your app, ready to deploy
yeoman server # Launch a preview server which will begin watching for changes
yeoman test # Run a Mocha test harness in a headless Phantom.js
yeoman install # Install a package from the client-side package registry
yeoman uninstall # Uninstall the package
yeoman update # Update a package to the latest version
yeoman list # List the packages currently installed
yeoman search # Query the registry for matching package names
yeoman lookup # Look up info on a particular package
{% endhighlight %}
A common initial workflow with Yeoman might be:
{% highlight sh %}
yeoman init # Invoke the most basic application scaffold (Bootstrap, Boilerplate etc.)
yeoman build # Build your project, creating an optimized version in a new `dist` directory
yeoman server # Fire off a file watch/server process which also places an
# intermediate build of your project in `temp`
{% endhighlight %}
Some more examples of how to use our commands include:
{% highlight sh %}
# Generators for MVC/MV* Frameworks
yeoman init quickstart # Skip our questions and get a H5BP, jQuery and Modernizr base
yeoman init bbb # Backbone Boilerplate generator scaffold
yeoman init ember # Ember-Rails generator scaffold
yeoman init backbone # Backbone-Rails generator scaffold
# Coming soon
yeoman init angular # Invoke the AngularJS generator scaffold
yeoman init angular:controller # Invoke the AngularJS Controller sub-generator
# Generator for Chrome Apps
yeoman init chromeapp
# Package management
yeoman search jquery # Lookup jQuery in the Bower registry
yeoman install jquery underscore [depName] # Install a dependency or dependencies
yeoman update jquery # Update a specific dependency (e.g jquery)
{% endhighlight %}
<img src="assets/img/yeoman-007.png" class="character">