added npm test to container build

This commit is contained in:
alecmerdler 2017-01-09 11:59:24 -08:00
parent 72151dc162
commit a6ac3b8940
2 changed files with 4 additions and 1 deletions

View file

@ -104,6 +104,9 @@ RUN cd grunt && npm install
# Run grunt # Run grunt
RUN cd grunt && grunt RUN cd grunt && grunt
# Run front-end tests
RUN npm test
# Optimize our images # Optimize our images
ADD static/img static/img ADD static/img static/img
RUN jpegoptim static/img/**/*.jpg RUN jpegoptim static/img/**/*.jpg

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"test": "./node_modules/.bin/karma start --browsers PhantomJS", "test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS",
"build": "./node_modules/.bin/webpack --progress -p -v", "build": "./node_modules/.bin/webpack --progress -p -v",
"watch": "./node_modules/.bin/webpack --watch" "watch": "./node_modules/.bin/webpack --watch"
}, },