From c557ec5611f3ee782e3f9d6fd5430ad0109a4d76 Mon Sep 17 00:00:00 2001 From: Boris Kubiak Date: Sat, 27 Jan 2018 12:36:17 +0100 Subject: [PATCH] Update travis build job --- .travis.yml | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index eb56d05..dd8a67d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,8 @@ install: npm i script: - npm test -- npm run-script build +- npm run build +- npm run clean deploy: provider: pages diff --git a/package.json b/package.json index 46144bc..649ecf3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "scripts": { "test": "node ./node_modules/xo/cli.js", "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", - "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" + "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", + "clean": "find . -maxdepth 1 -type f -not -name 'index.html' -not -name 'README.md' -delete && rm -fr src dist/vanity.js" }, "xo": { "rules": {