Skip to content

Commit 80887d4

Browse files
authored
Merge pull request #2631 from angular-fullstack/chore/generated-dep-update
chore(package): update generated app deps
2 parents f39bd24 + a08cf41 commit 80887d4

10 files changed

+72
-73
lines changed

Diff for: src/test/get-expected-files.js

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export function app(options) {
100100
'karma.conf.js',
101101
'mocha.conf.js',
102102
'mocha.global.js',
103+
'postcss.config.js',
103104
'protractor.conf.js',
104105
'README.md',
105106
'spec.js',

Diff for: templates/app/_package.json

+46-50
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"core-js": "^2.4.1",
77
"cors": "^2.8.1",
88
"express": "^4.13.3",
9-
"morgan": "~1.7.0",
9+
"morgan": "~1.8.2",
1010
"body-parser": "^1.13.3",
1111
"method-override": "^2.3.5",
1212
"cookie-parser": "^1.3.5",
1313
"express-session": "^1.11.3",
1414
"errorhandler": "^1.4.2",
1515
"composable-middleware": "^0.3.0",
16-
"fast-json-patch": "^1.0.0",
16+
"fast-json-patch": "^2.0.5",
1717
"lodash": "^4.17.4",
1818
"lodash-es": "^4.17.4",
1919
"lusca": "^1.4.1",
@@ -37,14 +37,14 @@
3737
"express-sequelize-session": "0.4.0",<% } %><% if(filters.auth) { %>
3838
"jsonwebtoken": "^7.0.0",
3939
"express-jwt": "^5.0.0",
40-
"passport": "~0.3.0",
40+
"passport": "~0.4.0",
4141
"passport-local": "^1.0.0",<% } %><% if(filters.facebookAuth) { %>
4242
"passport-facebook": "^2.0.0",<% } %><% if(filters.twitterAuth) { %>
4343
"passport-twitter": "^1.0.3",<% } %><% if(filters.googleAuth) { %>
4444
"passport-google-oauth20": "^1.0.0",<% } %><% if(filters.ws) { %>
4545
"primus": "^7.0.1",
4646
"primus-emit": "^1.0.0",
47-
"uws": "^0.14.5",<% } %>
47+
"uws": "^8.14.1",<% } %>
4848
"serve-favicon": "^2.3.0",
4949
"shrink-ray": "^0.1.3"
5050
},
@@ -64,7 +64,7 @@
6464
"@angular/platform-browser-dynamic": "^4.3.3",
6565
"@angular/router": "^4.3.3",
6666
<%#"@angular/material": "^2.0.0-alpha.10",%>
67-
"@angularclass/hmr": "^1.2.1",
67+
"@angularclass/hmr": "^2.1.3",
6868
<%_ if(filters.ts) { -%>
6969
"@types/core-js": "^0.9.41",
7070
<%_ if(filters.jasmine) { -%>
@@ -73,16 +73,16 @@
7373
"@types/lodash": "^4.14.63",
7474
<%_ if(filters.mocha) { -%>
7575
"@types/mocha": "^2.2.41",
76-
"@types/chai": "^3.5.2",
76+
"@types/chai": "^4.0.4",
7777
"@types/sinon": "^2.1.3",
7878
"@types/sinon-chai": "^2.7.27",
7979
<%_ } -%>
80-
"@types/node": "^7.0.14",
80+
"@types/node": "^8.0.26",
8181
"@types/selenium-webdriver": "^3.0.3",
82-
"@types/webpack": "^2.2.15",
82+
"@types/webpack": "^3.0.10",
8383
<%_ } -%>
8484
"angular2-universal": "2.1.0-rc.1",
85-
"angular2-jwt": "^0.1.28",
85+
"angular2-jwt": "^0.2.3",
8686
<% if(filters.auth) { %>
8787
"angular-validation-match": "^1.9.0",<% } %>
8888
<% if(filters.uirouter) { %>
@@ -91,7 +91,7 @@
9191
<% if(filters.bootstrap) { %>
9292
"bootstrap": "~3.3.7",
9393
<% if(filters.uibootstrap) { %>
94-
"ng2-bootstrap": "~1.1.16",<% } %>
94+
"ngx-bootstrap": "~1.6.3",<% } %>
9595
<% if(filters.sass) { %>
9696
"bootstrap-sass": "~3.3.7",<% } %>
9797
<% if(filters.stylus) { %>
@@ -107,91 +107,87 @@
107107

108108
<%# END CLIENT %>
109109

110-
"autoprefixer": "^6.0.0",
110+
"autoprefixer": "^7.1.3",
111111
"babel-core": "^6.6.5",
112-
"babel-eslint": "^6.0.4",
112+
"babel-eslint": "^7.2.3",
113113
"babel-register": "^6.16.0",
114114
"bs-fullscreen-message": "^1.0.0",
115115
<%_ if(filters.flow) { -%>
116-
"flow-bin": "^0.31.0",
116+
"flow-bin": "^0.54.0",
117117
"babel-plugin-syntax-flow": "^6.8.0",
118118
"babel-plugin-transform-flow-comments": "^6.8.0",<% } %>
119119
"babel-plugin-transform-class-properties": "^6.6.0",
120120
"babel-plugin-transform-runtime": "^6.6.0",
121-
"babel-plugin-istanbul": "^3.1.0",
121+
"babel-plugin-istanbul": "^4.1.4",
122122
"babel-preset-es2015": "^6.6.0",
123123
"eslint": "^2.12.0",
124-
"del": "^2.0.2",
124+
"del": "^3.0.0",
125125
"gulp": "^3.9.1",
126-
"gulp-babel": "^6.1.2",<% if(filters.ts) { %>
127-
"gulp-typescript": "~2.13.0",
128-
"gulp-typings": "^1.3.6",
129-
"gulp-tslint": "^5.0.0",<% } %>
126+
"gulp-babel": "^7.0.0",<% if(filters.ts) { %>
127+
"gulp-typescript": "~3.2.2",
128+
"gulp-tslint": "^8.0.0",<% } %>
130129
"gulp-env": "^0.4.0",
131130
"gulp-eslint": "^2.0.0",
132131
"gulp-imagemin": "^3.0.1",
133132
"gulp-inject": "^4.0.0",
134133
"gulp-istanbul": "^1.1.1",
135134
"gulp-istanbul-enforcer": "^1.0.3",
136135
"gulp-load-plugins": "^1.0.0-rc.1",
137-
"gulp-mocha": "^2.1.3",
136+
"gulp-mocha": "^4.3.1",
138137
<%# "gulp-node-inspector": "^0.1.0", %>
139138
"gulp-plumber": "^1.0.1",
140139
"gulp-protractor": "^3.0.0",
141-
"gulp-rev": "^7.0.0",
140+
"gulp-rev": "^8.0.0",
142141
"gulp-rev-replace": "^0.4.2",
143142
"gulp-sort": "^2.0.0",
144-
"gulp-sourcemaps": "^1.5.2",
143+
"gulp-sourcemaps": "^2.6.1",
145144
"gulp-util": "^3.0.5",
146145
"gulp-watch": "^4.3.5",
147-
"gulp-stylint": "^3.0.0",
146+
"gulp-stylint": "^4.0.0",
148147
"grunt": "^1.0.1",
149148
"grunt-build-control": "^0.7.0",
150149
"isparta": "^4.0.0",
151150
"nodemon": "^1.3.7",
152-
"run-sequence": "^1.1.0",
151+
"run-sequence": "^2.1.0",
153152
"lazypipe": "^1.0.1",
154153
<%# WEBPACK %>
155-
"webpack": "^2.3.1",
154+
"webpack": "^3.5.5",
156155
"webpack-dev-server": "^2.4.2",
157-
"extract-text-webpack-plugin": "2.0.0",
156+
"extract-text-webpack-plugin": "3.0.0",
158157
"html-webpack-plugin": "^2.24.1",
159-
"html-webpack-harddisk-plugin": "~0.0.2",
158+
"html-webpack-harddisk-plugin": "~0.1.0",
160159
<%_ if(filters.pug) { _%>
161160
"pug-html-loader": "^1.0.8",<% } %>
162161
"typescript": "^2.2.1",
163162
"awesome-typescript-loader": "^3.1.2",
164-
"ng-annotate-loader": "~0.1.0",
165-
"babel-loader": "^6.2.4",
166-
"css-loader": "^0.24.0",
167-
"file-loader": "^0.9.0",
168-
"imports-loader": "^0.6.5",
169-
"isparta-instrumenter-loader": "^1.0.0",
170-
"isparta-loader": "^2.0.0",
171-
"istanbul-instrumenter-loader": "^0.2.0",
163+
"babel-loader": "^7.1.2",
164+
"css-loader": "^0.28.7",
165+
"file-loader": "^0.11.2",
166+
"imports-loader": "^0.7.1",
167+
"istanbul-instrumenter-loader": "^3.0.0",
172168
"null-loader": "^0.1.1",
173-
"postcss-loader": "^0.11.1",
169+
"postcss-loader": "^2.0.6",
174170
"raw-loader": "^0.5.1",
175-
"style-loader": "^0.13.0",
171+
"style-loader": "^0.18.2",
176172
<%_ if(filters.sass) { _%>
177-
"node-sass": "^3.8.0",
178-
"sass-loader": "^4.0.1",<% } %>
173+
"node-sass": "^4.5.3",
174+
"sass-loader": "^6.0.6",<% } %>
179175
<%_ if(filters.less) { _%>
180176
"less": "^2.7.1",
181-
"less-loader": "^2.2.3",<% } %>
177+
"less-loader": "^4.0.5",<% } %>
182178
<%_ if(filters.stylus) { _%>
183179
"stylus": "^0.54.5",
184-
"stylus-loader": "^2.1.1",<% } %>
180+
"stylus-loader": "^3.0.1",<% } %>
185181
"karma-webpack": "^2.0.3",
186182
<%# END WEBPACK %>
187183
"through2": "^2.0.1",
188184
"open": "~0.0.4",
189185
"istanbul": "1.1.0-alpha.1",
190-
"chai": "^3.2.0",
191-
"sinon": "^1.16.1",
192-
"chai-as-promised": "^5.1.0",
186+
"chai": "^4.1.2",
187+
"sinon": "^3.2.1",
188+
"chai-as-promised": "^7.1.1",
193189
"chai-things": "^0.2.0",
194-
"karma": "~0.13.3",
190+
"karma": "^1.7.1",
195191
"karma-firefox-launcher": "^1.0.0",
196192
"karma-script-launcher": "^1.0.0",
197193
"karma-coverage": "^1.0.0",
@@ -202,15 +198,15 @@
202198
"sinon-chai": "^2.8.0",
203199
"mocha": "^3.0.2",<% if(filters.mocha) { %>
204200
"karma-mocha": "^1.0.1",
205-
"karma-chai-plugins": "~0.7.0",<% } if(filters.jasmine) { %>
201+
"karma-chai-plugins": "~0.9.0",<% } if(filters.jasmine) { %>
206202
"jasmine-core": "^2.3.4",
207203
"karma-jasmine": "^1.0.2",
208-
"jasmine-spec-reporter": "^2.4.0",<% } %>
204+
"jasmine-spec-reporter": "^4.2.1",<% } %>
209205
"phantomjs-prebuilt": "^2.1.4",
210206
"proxyquire": "^1.0.1",
211-
"strip-ansi": "^3.0.1",
212-
"supertest": "^1.1.0"<% if(filters.ts) { %>,
213-
"tslint": "^3.5.0"<% } %>
207+
"strip-ansi": "^4.0.0",
208+
"supertest": "^3.0.0"<% if(filters.ts) { %>,
209+
"tslint": "^5.7.0"<% } %>
214210
},
215211
"engines": {
216212
"node": "^6.2.2",

Diff for: templates/app/client/app/main/main.module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { UIRouterModule } from 'ui-router-ng2';<% } %>
66
<%_ if(filters.ngroute) { %>
77
import { RouterModule, Routes } from '@angular/router';<% } %>
88
<%_ if(filters.uibootstrap) { %>
9-
import { TooltipModule } from 'ng2-bootstrap';<% } %>
9+
import { TooltipModule } from 'ngx-bootstrap';<% } %>
1010

1111
import { MainComponent } from './main.component';
1212
<%_ if(filters.ws) { -%>

Diff for: templates/app/client/components/directives.module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33
<% if(filters.uibootstrap) { %>
4-
import { CollapseModule } from 'ng2-bootstrap';<% } %>
4+
import { CollapseModule } from 'ngx-bootstrap';<% } %>
55

66
<%_ if (filters.uirouter) { -%>
77
import { UIRouterModule } from 'ui-router-ng2';<% } %>

Diff for: templates/app/client/tslint.json(ts)

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"no-trailing-whitespace": true,
3030
"no-unused-expression": true,
3131
"no-unused-variable": true,
32-
"no-unreachable": true,
3332
"no-use-before-declare": true,
3433
"one-line": [true,
3534
"check-open-brace",
@@ -58,4 +57,4 @@
5857
"check-type"
5958
]
6059
}
61-
}
60+
}

Diff for: templates/app/gulpfile.babel.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ function whenServerReady(cb) {
9797
let lintClientScripts = lazypipe()<% if(filters.babel) { %>
9898
.pipe(plugins.eslint, `${clientPath}/.eslintrc`)
9999
.pipe(plugins.eslint.format);<% } %><% if(filters.ts) { %>
100-
.pipe(plugins.tslint, require(`./${clientPath}/tslint.json`))
101-
.pipe(plugins.tslint.report, 'verbose', {emitError: false});<% } %>
100+
.pipe(plugins.tslint, { formatter: 'verbose' })
101+
.pipe(plugins.tslint.report, {emitError: false});<% } %>
102102

103103
const lintClientTestScripts = lazypipe()
104104
<%_ if(filters.babel) { -%>
@@ -113,8 +113,8 @@ const lintClientTestScripts = lazypipe()
113113
.pipe(plugins.eslint.format);
114114
<%_ } -%>
115115
<%_ if(filters.ts) { -%>
116-
.pipe(plugins.tslint, require(`./${clientPath}/tslint.json`))
117-
.pipe(plugins.tslint.report, 'verbose', {emitError: false});
116+
.pipe(plugins.tslint, { formatter: 'verbose' })
117+
.pipe(plugins.tslint.report, {emitError: false});
118118
<%_ } -%>
119119

120120
let lintServerScripts = lazypipe()

Diff for: templates/app/postcss.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const autoprefixer = require('autoprefixer');
2+
3+
module.exports = (ctx) => ({
4+
plugins: [
5+
autoprefixer(ctx.plugin),
6+
]
7+
});

Diff for: templates/app/protractor.conf.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,16 @@ var config = {
7676
Object.getOwnPropertyDescriptor(Object.prototype, 'should')
7777
);
7878
<% } if (filters.jasmine) { %>
79-
var SpecReporter = require('jasmine-spec-reporter');
79+
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
8080
// add jasmine spec reporter
81-
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: true}));
81+
jasmine.getEnv().addReporter(new SpecReporter({
82+
spec: {
83+
displayStacktrace: true
84+
},
85+
summary: {
86+
displayStacktrace: true
87+
}
88+
}));
8289
<% } %>
8390
var serverConfig = config.params.serverConfig;<% if (filters.mongoose) { %>
8491

Diff for: templates/app/webpack.make.js

-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/*eslint-env node*/
33
const _ = require('lodash');
44
var webpack = require('webpack');
5-
var autoprefixer = require('autoprefixer');
65
var HtmlWebpackPlugin = require('html-webpack-plugin');
76
var HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
87
var ExtractTextPlugin = require('extract-text-webpack-plugin');
@@ -227,16 +226,6 @@ module.exports = function makeWebpackConfig(options) {
227226
options: {
228227
context: __dirname
229228
},
230-
/**
231-
* PostCSS
232-
* Reference: https://github.com/postcss/autoprefixer-core
233-
* Add vendor prefixes to your css
234-
*/
235-
postcss: [
236-
autoprefixer({
237-
browsers: ['last 2 version']
238-
})
239-
],
240229
<%_ if(filters.sass) { -%>
241230
sassLoader: {
242231
outputStyle: 'compressed',

Diff for: templates/endpoint/basename.controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
'use strict';<% if(filters.models) { %>
1212

13-
import jsonpatch from 'fast-json-patch';<% if(filters.mongooseModels) { %>
13+
import { applyPatch } from 'fast-json-patch';<% if(filters.mongooseModels) { %>
1414
import <%= classedName %> from './<%= basename %>.model';<% } if(filters.sequelizeModels) { %>
1515
import {<%= classedName %>} from '<%= relativeRequire(config.get('registerModelsFile')) %>';<% } %>
1616

@@ -27,7 +27,7 @@ function respondWithResult(res, statusCode) {
2727
function patchUpdates(patches) {
2828
return function(entity) {
2929
try {
30-
jsonpatch.apply(entity, patches, /*validate*/ true);
30+
applyPatch(entity, patches, /*validate*/ true);
3131
} catch(err) {
3232
return Promise.reject(err);
3333
}

0 commit comments

Comments
 (0)