From ef81cf72702be200de0c0d6849e34ddf5ca0f29b Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 5 Jun 2019 23:08:00 +0300 Subject: [PATCH] Add travis config --- .travis.yml | 13 +++++++++++++ package.json | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8257451 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: node_js +node_js: + - "12" + +cache: + yarn: true + directories: + - node_modules + +script: + - yarn lint + - yarn tsc + - yarn build:quiet diff --git a/package.json b/package.json index a6bb7b5..16da6ae 100644 --- a/package.json +++ b/package.json @@ -20,13 +20,16 @@ }, "homepage": "https://github.com/elyby/emails-renderer#README", "scripts": { + "clean": "rm -rf dist/", "start": "webpack-dev-server --mode=development --application=devtool --progress --colors", "start:server": "webpack --mode=development --application=server --progress --colors && node dist/app.js", "lint": "eslint \"{scripts,src,webpack-utils}/**/*.{js,jsx,ts,tsx}\"", "i18n:collect": "./scripts/i18n-collect/index.js", "i18n:pull": "node scripts/i18n-crowdin/index.js pull", "i18n:push": "node scripts/i18n-crowdin/index.js push", - "build": "rm -rf dist/ && webpack --mode=production --application=server --progress --colors" + "build": "yarn run clean && yarn run build:webpack --progress", + "build:quiet": "yarn run clean && yarn run build:webpack --quiet", + "build:webpack": "webpack --mode=production --application=server --colors --bail" }, "dependencies": { "fastify": "^2.4.1",