GeezerVison is showing github.com — fix(gen): canary cleanup · angular-fullstack/generator-angular-fullstack@96364a7
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: src/generators/app/index.js +12-3Lines changed: 12 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +import {exec} from 'child_process'; | 1 | 2 | import path from 'path'; | 2 | 3 | import Promise from 'bluebird'; | 3 | 4 | import { runCmd } from '../util'; | @@ -547,9 +548,17 @@ export class Generator extends Base { | 547 | 548 |
| 548 | 549 | function pugReplacer(contents) { | 549 | 550 | return contents | 550 | | - .replace('ngif', 'ngIf') | 551 | | - .replace('ngfor', 'ngFor') | 552 | | - .replace('ngmodel', 'ngModel'); | | 551 | + .replace(/confirmpassword/g, 'confirmPassword') | | 552 | + .replace(/loginform/g, 'loginForm') | | 553 | + .replace(/newpassword/g, 'newPassword') | | 554 | + .replace(/ngif/g, 'ngIf') | | 555 | + .replace(/ngfor/g, 'ngFor') | | 556 | + .replace(/ngmodel/g, 'ngModel') | | 557 | + .replace(/ngsubmit/g, 'ngSubmit') | | 558 | + .replace(/oldpassword/g, 'oldPassword') | | 559 | + .replace(/routerlinkactive/g, 'routerLinkActive') | | 560 | + .replace(/routerlink/g, 'routerLink') | | 561 | + .replace(/signupform/g, 'signupForm'); | 553 | 562 | } | 554 | 563 |
| 555 | 564 | this.registerTransformStream([ | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/_package.json +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 32 | 32 | "ejs": "^2.5.3",<% } %><% if(filters.mongoose) { %> | 33 | 33 | "mongoose": "^4.1.2", | 34 | 34 | "bluebird": "^3.3.3", | 35 | | - "connect-mongo": "^1.2.1",<% } %><% if(filters.sequelize) { %> | | 35 | + "connect-mongo": "^2.0.1",<% } %><% if(filters.sequelize) { %> | 36 | 36 | "sequelize": "^3.23.6", | 37 | 37 | "sqlite3": "~3.1.1", | 38 | 38 | "connect-session-sequelize": "^4.1.0",<% } %><% if(filters.auth) { %> | | 80 | 80 | "@types/selenium-webdriver": "^3.0.3", | 81 | 81 | "@types/webpack": "^3.0.10", | 82 | 82 | <%_ } -%> | 83 | | - "angular2-universal": "2.1.0-rc.1", | 84 | 83 | "angular2-jwt": "^0.2.3", | 85 | 84 | <% if(filters.auth) { %> | 86 | 85 | "angular-validation-match": "^1.9.0",<% } %> | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/client/app/account(auth)/signup/signup.component.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,6 @@ import { StateService } from 'ui-router-ng2';<% } %> | 5 | 5 | <%_ if(filters.ngroute) { -%> | 6 | 6 | import { Router } from '@angular/router';<% } %> | 7 | 7 | import { AuthService } from '../../../components/auth/auth.service'; | 8 | | -import template from './signup.html'; | 9 | 8 |
| 10 | 9 | <%_ if(filters.flow) { -%> | 11 | 10 | type User = { | @@ -21,7 +20,7 @@ interface User { | 21 | 20 |
| 22 | 21 | @Component({ | 23 | 22 | selector: 'signup', | 24 | | - template, | | 23 | + template: require('./signup.<%=templateExt%>'), | 25 | 24 | }) | 26 | 25 | export class SignupComponent { | 27 | 26 | user: User = { | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/client/components/navbar/navbar.component.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,11 +5,10 @@ import { StateService } from 'ui-router-ng2';<% } %> | 5 | 5 | <%_ if (filters.ngroute) { -%> | 6 | 6 | import { Router } from '@angular/router';<% } %> | 7 | 7 | import { AuthService } from '../auth/auth.service';<% } %> | 8 | | -import template from './navbar.html'; | 9 | 8 |
| 10 | 9 | @Component({ | 11 | 10 | selector: 'navbar', | 12 | | - template, | | 11 | + template: require('./navbar.<%=templateExt%>'), | 13 | 12 | }) | 14 | 13 | export class NavbarComponent { | 15 | 14 | isCollapsed = true; | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/tsconfig(ts).json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 | "moduleResolution": "node", | 18 | 18 | "lib": [ | 19 | 19 | "es2016", | | 20 | + "es2017", | 20 | 21 | "dom" | 21 | 22 | ] | 22 | 23 | }, | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/webpack.make.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -131,8 +131,8 @@ module.exports = function makeWebpackConfig(options) { | 131 | 131 | modules: false, | 132 | 132 | }] | 133 | 133 | ], | 134 | | - plugins: [ | 135 | | - 'transform-flow-comments', | | 134 | + plugins: [<% if(filters.flow) { %> | | 135 | + 'transform-flow-comments',<% } %> | 136 | 136 | 'angular2-annotations', | 137 | 137 | 'transform-runtime', | 138 | 138 | 'transform-decorators-legacy', | |
|