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": {