From d151b9a687db4ae744c3c29476cb8e41c4496941 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 11 Feb 2018 12:32:16 +0000 Subject: [PATCH] Added travis build --- .travis.yml | 3 +++ README.md | 2 ++ package.json | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..efb09833 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "8" diff --git a/README.md b/README.md index cdf69c46..318ed5af 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # StackEdit +[![Build Status](https://img.shields.io/travis/benweet/stackedit.svg?style=flat)](https://travis-ci.org/benweet/stackedit) [![NPM version](https://img.shields.io/npm/v/stackedit.svg?style=flat)](https://www.npmjs.org/package/stackedit) + StackEdit is a full-featured, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites. https://stackedit.io/. diff --git a/package.json b/package.json index a9f4af04..cd21b6c7 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "build": "node build/build.js && npm run build-style", "build-style": "webpack --config build/webpack.style.conf.js", "lint": "eslint --ext .js,.vue src server", - "preversion": "npm run lint", + "test": "npm run lint", + "preversion": "npm run test", "postversion": "git push origin master --tags && npm publish", "patch": "npm version patch -m \"Tag v%s\"", "minor": "npm version minor -m \"Tag v%s\"",