Skip to content
This repository was archived by the owner on Jan 23, 2022. It is now read-only.

Commit 3cf5ffd

Browse files
committed
Merge branch 'release/1.0.8'
2 parents 8a9f030 + 98d19ae commit 3cf5ffd

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ First, install [Yeoman](http://yeoman.io) and generator-angular2-firebase-bootst
88
```bash
99
npm install -g yo
1010
npm install -g generator-angular2-firebase-bootstrap
11+
# If you want this generator to init a git repository for yoy
12+
npm install -g generator-git-init
1113
```
1214

1315
Then generate your new project:
@@ -18,10 +20,12 @@ yo angular2-firebase-bootstrap
1820

1921
## Features
2022

21-
* Angular 2 with angular-cli.
23+
* An Angular 2 generated with angular-cli.
2224
* Bootstrap with ng2-bootstrap
2325
* AngularFire2 for Firebase
24-
* An initial implementation of an authentication service (See auth-service).
26+
* An initial implementation of an authentication service (See auth-service)
27+
* One ready to use component to display user information (from Firebase)
28+
* One ready to use component to login using username/password, Google or Twitter.
2529

2630
## Getting Started
2731

@@ -30,8 +34,7 @@ Authentication. The seeded project contains the auth-service that can handle sev
3034
as we don't provide forms for registration and login, the Email/Password is not supported as such.
3135

3236
1. Create a project folder and enter it: `mkdir myProject && cd $_`
33-
34-
2. Generate project: `yo generator-angular2-firebase-bootstrap`
37+
2. Generate project: `yo angular2-firebase-bootstrap`
3538

3639
The generator will ask you a few information on your Firebase project:
3740

@@ -54,6 +57,9 @@ Go to [Firebase Authentication Documentation](https://firebase.google.com/docs/a
5457
project in Firebase. Please note that to use Email/Password authentication you will have to register users yourself via the
5558
Firebase Console.
5659

60+
The generated project will contain 2 ready to be used components for login and display user information. They are initially
61+
present in the home page of the application but can be moved elsewhere at your convenience.
62+
5763
## Angular 2 Specifics
5864

5965
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.21.

generators/app/index.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
'use strict';
2-
var yeoman = require('yeoman-generator');
2+
var Generator = require('yeoman-generator');
33
var chalk = require('chalk');
44
var yosay = require('yosay');
55

6-
module.exports = yeoman.Base.extend({
7-
prompting: function () {
6+
module.exports = class extends Generator {
7+
constructor(args, opts) {
8+
super(args, opts);
9+
}
10+
prompting() {
811
// Have Yeoman greet the user.
912
this.log(yosay(
10-
'Welcome to the laudable ' + chalk.red('generator-angular2-firebase-bootstrap') + ' generator!'
13+
'Welcome to the laudable ' + chalk.red('angular2-firebase-bootstrap') + ' generator!'
1114
));
1215

1316
var prompts = [
@@ -54,18 +57,15 @@ module.exports = yeoman.Base.extend({
5457
// To access props later use this.props.someAnswer;
5558
this.props = props;
5659
}.bind(this));
57-
},
58-
configuring: function() {
60+
}
61+
configuring() {
5962
if(this.props.initGit) {
60-
this.composeWith('git-init', {
61-
options: { commit: 'Initial commit by angular-2-firebase-bootstrap generator' }
62-
}, {
63-
local: require.resolve('generator-git-init')
64-
});
63+
this.composeWith(require.resolve('generator-git-init'),
64+
{ commit: 'Initial commit by angular2-firebase-bootstrap generator' });
6565
}
66-
},
66+
}
6767

68-
writing: function () {
68+
writing () {
6969
var toCopy = [
7070
"./.editorconfig",
7171
"./e2e/app.po.ts",
@@ -116,9 +116,9 @@ module.exports = yeoman.Base.extend({
116116
for(i = 0; i < toCopyTpl.length; i++) {
117117
this.fs.copyTpl(this.templatePath(toCopyTpl[i]), this.destinationPath(toCopyTpl[i]), this.props);
118118
}
119-
},
119+
}
120120

121-
install: function () {
121+
install() {
122122
this.npmInstall();
123123
}
124-
});
124+
};

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-angular2-firebase-bootstrap",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Generator for Angular 2 - Firebase - Bootstrap projects",
55
"homepage": "",
66
"author": {
@@ -17,14 +17,14 @@
1717
"yeoman-generator"
1818
],
1919
"dependencies": {
20-
"chalk": "^1.0.0",
21-
"generator-git-init": "^1.1.3",
22-
"yeoman-generator": "^0.23.0",
23-
"yosay": "^1.0.0"
20+
"yeoman-generator": "^1.0.0",
21+
"chalk": "^1.1.3",
22+
"yosay": "^1.2.1",
23+
"generator-git-init": "^1.1.3"
2424
},
2525
"devDependencies": {
26-
"yeoman-test": "^1.0.0",
27-
"yeoman-assert": "^2.0.0",
26+
"yeoman-test": "^1.6.0",
27+
"yeoman-assert": "^2.2.1",
2828
"eslint": "^3.1.1",
2929
"eslint-config-xo-space": "^0.15.0",
3030
"gulp": "^3.9.0",

0 commit comments

Comments
 (0)