Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# generator-ngbp
# generator-ngbp-material

> Yeoman Generator based on the popular ngBoilerplate AngularJS kickstarter. ngBoilerplate is a best-practice boilerplate for scalable Angular projects built on a highly modular, folder-by-feature structure. You work in vertical slices on a daily basis (view, controller, service, etc), so why not organize your projects to optimize your workflow, maximize discoverability, and get copy-paste module reuse for free?
> Yeoman Generator based on angular-material and the popular ngBoilerplate AngularJS kickstarter. ngBoilerplate is a best-practice boilerplate for scalable Angular projects built on a highly modular, folder-by-feature structure. You work in vertical slices on a daily basis (view, controller, service, etc), so why not organize your projects to optimize your workflow, maximize discoverability, and get copy-paste module reuse for free?

## Quick Start

Install generator-ngbp from npm, run:

```
$ npm install -g generator-ngbp
$ npm install -g generator-ngbp-angular
```

Create a new directory for your project and cd into it:
Expand All @@ -20,7 +20,7 @@ $ cd my-new-project
Initiate the generator:

```
$ yo ngbp
$ yo ngbp-material
```

### Sub-Generators
Expand All @@ -31,7 +31,7 @@ There's only one subgenerator at the moment
To create a new module...

```
$ yo ngbp:module "moduleName"
$ yo ngbp-material:module "moduleName"
```

You can specify the root folder of the module via prompt - default is "app".
Expand Down
15 changes: 4 additions & 11 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var yeoman = require('yeoman-generator');
var chalk = require('chalk');


var NgbpGenerator = yeoman.generators.Base.extend({
var NgbpMaterialGenerator = yeoman.generators.Base.extend({
init: function () {
this.pkg = require('../package.json');

Expand All @@ -25,11 +25,11 @@ var NgbpGenerator = yeoman.generators.Base.extend({
//this.spawnCommand('grunt', ['build']);
this.log(chalk.green(
'\nYou\'re good to go!!!!\n' +
'Simply running ') + chalk.cyan.bold("grunt watch") + chalk.green(' will do the following:\n' +
'Simply running ') + chalk.cyan.bold("gulp") + chalk.green(' will do the following:\n' +
' - Build everything (concat, create js templates of html, etc) and place it into a "build" folder\n' +
' - Run all your tests\n' +
' - Watch your files for changes to do the above without any intervention\n' +
' - Launch express server to host your app at http://localhost:9000/index.html\n' +
' - Launch express server to host your app at http://localhost:8080/index.html\n' +
' - Setup LiveReload so you immediately see changes in your browser (you still have to enable LiveReload on your browser)\n'));
});
},
Expand Down Expand Up @@ -57,12 +57,6 @@ var NgbpGenerator = yeoman.generators.Base.extend({
type: 'confirm',
name: 'useCoffeescript',
message: 'Would you like to use Coffeescript?',
default: false
},
{
type: 'confirm',
name: 'includeAngularResource',
message: 'Do you want to include angular-resource, helpful for calling RESTful apis?',
default: true
},
];
Expand All @@ -71,7 +65,6 @@ var NgbpGenerator = yeoman.generators.Base.extend({
this.projectName = props.projectName;
this.author = props.author;
this.useCoffeescript = props.useCoffeescript;
this.includeAngularResource = props.includeAngularResource;

done();
}.bind(this));
Expand Down Expand Up @@ -121,4 +114,4 @@ var NgbpGenerator = yeoman.generators.Base.extend({

});

module.exports = NgbpGenerator;
module.exports = NgbpMaterialGenerator;
Loading