Commit 48f384dc by Torkel Ödegaard

build: reduced webpack log output and remove race flag from go tests

parent b6184a71
...@@ -42,7 +42,7 @@ set -e ...@@ -42,7 +42,7 @@ set -e
echo "" > coverage.txt echo "" > coverage.txt
for d in $(go list ./pkg/...); do for d in $(go list ./pkg/...); do
exit_if_fail go test -race -coverprofile=profile.out -covermode=atomic $d exit_if_fail go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then if [ -f profile.out ]; then
cat profile.out >> coverage.txt cat profile.out >> coverage.txt
rm profile.out rm profile.out
......
...@@ -7,7 +7,7 @@ module.exports = function(grunt) { ...@@ -7,7 +7,7 @@ module.exports = function(grunt) {
'clean:release', 'clean:release',
'clean:build', 'clean:build',
'phantomjs', 'phantomjs',
'webpack:prod', 'exec:webpack',
]); ]);
}; };
...@@ -7,7 +7,8 @@ module.exports = function(config, grunt) { ...@@ -7,7 +7,8 @@ module.exports = function(config, grunt) {
} }
return { return {
tslint : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json", tslint: "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json",
jest : "node ./node_modules/jest-cli/bin/jest.js " + coverage, jest: "node ./node_modules/jest-cli/bin/jest.js " + coverage,
"webpack": "./node_modules/.bin/webpack --config scripts/webpack/webpack.prod.js",
}; };
}; };
...@@ -5,7 +5,7 @@ module.exports = function() { ...@@ -5,7 +5,7 @@ module.exports = function() {
'use strict'; 'use strict';
return { return {
options: { options: {
stats: !process.env.NODE_ENV || process.env.NODE_ENV === 'development' stats: false,
}, },
dev: dev, dev: dev,
prod: prod prod: prod
......
...@@ -27,7 +27,10 @@ module.exports = merge(common, { ...@@ -27,7 +27,10 @@ module.exports = merge(common, {
}, },
devServer: { devServer: {
stats: 'errors-only', noInfo: true,
stats: {
chunks: false,
},
}, },
plugins: [ plugins: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment