What do you think?
Rate this book


288 pages, ebook
First published January 1, 2014
In this section, we have learned about the CommonJS module format and how to create modules that can be used on the server side. We covered the basics of setting up testing.Then, at the end of the next section on creating a Node.js module (page 189), there is another conclusion that seems it was also intended for the CommonJS section:
That was easy; now you should have an understanding on what a CommonJS module is and how to create one using the Yeoman CommonJS generator. We covered setting up a new CommonJS project, writing a unit test to verify the code works, and publishing the module to the npm repository. Now, you should be able to create CommonJS modules with ease and publish them to the npm repository.
The serve task does a few things, which are as follows:which is just the same as saying:
1. First, it removes [...]
The serve task:
1. removes...
- app: This is where the application source code is present:
- images: This is where images for your application go
- scripts: This is where the application logic scripts go:
- controllers: This is for controllers
- models: This is for models
- routes: This is for routes
- views: This is for views
- app.coffee: This is the main Ember.js app file
- router.coffee: This is the main application router
- store.coffee: This is the application's data store adapter
- styles: This is for stylesheets
- templates: This is for Handlebar templates:
- application.hbs: This is the main app template
- index.hbs: This is the app index template
- bower_components: This contains client-side Bower dependencies
- index.html: This contains the application's entry point