Add travis config

This commit is contained in:
ErickSkrauch 2019-06-05 23:08:00 +03:00
parent 3f2146f45f
commit ef81cf7270
2 changed files with 17 additions and 1 deletions

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: node_js
node_js:
- "12"
cache:
yarn: true
directories:
- node_modules
script:
- yarn lint
- yarn tsc
- yarn build:quiet

View File

@ -20,13 +20,16 @@
}, },
"homepage": "https://github.com/elyby/emails-renderer#README", "homepage": "https://github.com/elyby/emails-renderer#README",
"scripts": { "scripts": {
"clean": "rm -rf dist/",
"start": "webpack-dev-server --mode=development --application=devtool --progress --colors", "start": "webpack-dev-server --mode=development --application=devtool --progress --colors",
"start:server": "webpack --mode=development --application=server --progress --colors && node dist/app.js", "start:server": "webpack --mode=development --application=server --progress --colors && node dist/app.js",
"lint": "eslint \"{scripts,src,webpack-utils}/**/*.{js,jsx,ts,tsx}\"", "lint": "eslint \"{scripts,src,webpack-utils}/**/*.{js,jsx,ts,tsx}\"",
"i18n:collect": "./scripts/i18n-collect/index.js", "i18n:collect": "./scripts/i18n-collect/index.js",
"i18n:pull": "node scripts/i18n-crowdin/index.js pull", "i18n:pull": "node scripts/i18n-crowdin/index.js pull",
"i18n:push": "node scripts/i18n-crowdin/index.js push", "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": { "dependencies": {
"fastify": "^2.4.1", "fastify": "^2.4.1",