invoke the linter using npm

This commit is contained in:
Petros Angelatos 2016-09-09 09:44:32 +01:00
parent 762ff2b498
commit 0546ba51d9
2 changed files with 2 additions and 4 deletions

View File

@ -45,7 +45,8 @@ RUN JOBS=MAX npm install --unsafe-perm
COPY src /usr/src/app/src
RUN npm run build
RUN npm run lint \
&& npm run build
# Re-install just production modules. This should be fast due to npm cache from previous layer
RUN rm -rf node_modules \

View File

@ -16,9 +16,6 @@ MAKE_ARGS="ARCH=${ARCH} \
PUBNUB_PUBLISH_KEY=${PUBNUB_PUBLISH_KEY} \
MIXPANEL_TOKEN=${MIXPANEL_TOKEN}"
# Disabled until this is merged in npm https://github.com/npm/npm/pull/13257
# make ${MAKE_ARGS} lint
make ${MAKE_ARGS} \
SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} \
DEPLOY_REGISTRY= \