Skip to content

Commit cefcad7

Browse files
authored
chore: Updated node_js version from v8 => v10 on travis (material-components#5094)
1 parent 4f11851 commit cefcad7

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ after_script:
3232
matrix:
3333
include:
3434

35-
- node_js: 8
35+
- node_js: 10
3636
env:
3737
- TEST_SUITE=lint
3838
script:
3939
- if has_testable_files; then npm run lint && npm run test:feature-targeting; else log_untestable_files; fi
4040

41-
- node_js: 8
41+
- node_js: 10
4242
env:
4343
- TEST_SUITE=build
4444
script:
4545
- if has_testable_files; then npm run dist; else log_untestable_files; fi
4646

47-
- node_js: 8
47+
- node_js: 10
4848
env:
4949
- TEST_SUITE=unit
5050
addons:
@@ -60,7 +60,7 @@ matrix:
6060
script:
6161
- if has_testable_files; then npm run test:site; else log_untestable_files; fi
6262

63-
- node_js: 8
63+
- node_js: 10
6464
env:
6565
- TEST_SUITE=screenshot
6666
git:

karma.conf.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
const path = require('path');
25-
const webpackConfig = require('./webpack.config')[0];
25+
const webpackConfig = require('./webpack.config')[1];
2626

2727
const USING_TRAVISCI = Boolean(process.env.TRAVIS);
2828
const USING_SL = Boolean(process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY);
@@ -76,7 +76,7 @@ module.exports = function(config) {
7676
preprocessors: {
7777
'test/unit/index.js': ['webpack', 'sourcemap'],
7878
},
79-
reporters: ['dots', 'coverage-istanbul'],
79+
reporters: ['progress', 'coverage-istanbul'],
8080
port: 9876,
8181
colors: true,
8282
logLevel: config.LOG_INFO,
@@ -118,6 +118,7 @@ module.exports = function(config) {
118118
// Refer https://github.com/webpack-contrib/karma-webpack
119119
webpack: Object.assign({}, webpackConfig, {
120120
plugins: [], // Exclude UglifyJs plugin from test build.
121+
mode: 'development',
121122
module: Object.assign({}, webpackConfig.module, {
122123
// Cover source files when not debugging tests. Otherwise, omit coverage instrumenting to get
123124
// uncluttered source maps.
@@ -132,6 +133,7 @@ module.exports = function(config) {
132133

133134
webpackMiddleware: {
134135
noInfo: true,
136+
stats: 'minimal',
135137
},
136138
});
137139

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"description": "Material Components Web",
44
"license": "MIT",
55
"scripts": {
6-
"build": "npm run clean && mkdirp build && webpack --mode=development --progress --colors",
6+
"build": "npm run clean && mkdirp build && webpack --mode=development --progress --colors --display=minimal",
77
"build:esmodules": "tsc --project ./tsconfig.json --module esnext --outDir ./packages --importHelpers",
8-
"build:min": "mkdirp build && cross-env MDC_ENV=production webpack -p --mode=production --progress --colors",
8+
"build:min": "mkdirp build && cross-env MDC_ENV=production webpack -p --mode=production --progress --colors --display=minimal",
99
"clean": "node ./scripts/build/clean",
1010
"clean:site": "node ./scripts/build/clean --site-generator-tmp",
1111
"dist": "npm run build && npm run build:min && npm run build:esmodules",
@@ -32,7 +32,7 @@
3232
"screenshot:serve": "node test/screenshot/run.js serve",
3333
"screenshot:test": "node test/screenshot/run.js test",
3434
"screenshot:watch": "node test/screenshot/run.js build --watch",
35-
"screenshot:webpack": "webpack --config=test/screenshot/webpack.config.js --progress",
35+
"screenshot:webpack": "webpack --config=test/screenshot/webpack.config.js --progress --display=minimal",
3636
"start": "npm-run-all --parallel screenshot:serve screenshot:watch",
3737
"test:watch": "karma start --auto-watch",
3838
"test:unit": "karma start --single-run",
@@ -141,9 +141,9 @@
141141
"url-search-params-polyfill": "^7.0.0",
142142
"useragent": "^2.3.0",
143143
"verror": "^1.10.0",
144+
"vhtml": "^2.1.0",
144145
"webpack": "^4.34.0",
145-
"webpack-cli": "^3.3.4",
146-
"vhtml": "^2.1.0"
146+
"webpack-cli": "^3.3.4"
147147
},
148148
"babel": {
149149
"presets": [

0 commit comments

Comments
 (0)