summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbananaappletw2017-02-15 18:14:58 +0800
committerbananaappletw2017-02-15 19:11:53 +0800
commit4198d0d56060117e0806389f26eed4e65c4d37a6 (patch)
treeae379e6a4c59330080e9d4ee7394aa60508ef9f6
parente19712321fc9358429d5f2a67fb1e5556d08bbba (diff)
Add travis ci
-rw-r--r--.travis.yml13
-rw-r--r--Makefile3
-rw-r--r--README.md10
-rw-r--r--package.json2
4 files changed, 26 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..ed8ab42f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+language: node_js
+node_js:
+ - 6
+ - 7
+ - stable
+env:
+ - CXX=g++-4.8
+addons:
+ apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ packages:
+ - g++-4.8
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..b9afabe9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,3 @@
+lint:
+ @./node_modules/.bin/eslint .
+.PHONY: lint
diff --git a/README.md b/README.md
index 7991117b..05b13f85 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
HackMD
===
-[![Join the chat at https://gitter.im/hackmdio/hackmd](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[![Join the chat at https://gitter.im/hackmdio/hackmd][gitter-image]][gitter-url]
+[![build status][travis-image]][travis-url]
+
HackMD lets you create realtime collaborative markdown notes on all platforms.
Inspired by Hackpad, with more focus on speed and flexibility.
@@ -48,7 +50,7 @@ Browsers Requirement
Prerequisite
---
-- Node.js 4.x or up (test up to 6.7.0)
+- Node.js 6.x or up (test up to 6.7.0)
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
- npm (and its dependencies, especially [uWebSockets](https://github.com/uWebSockets/uWebSockets#nodejs-developers), [node-gyp](https://github.com/nodejs/node-gyp#installation))
@@ -222,3 +224,7 @@ Additionally, now can show other clients' selections.
See more at [http://operational-transformation.github.io/](http://operational-transformation.github.io/)
**License under MIT.**
+[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
+[gitter-url]: https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
+[travis-image]: https://travis-ci.org/hackmdio/hackmd.svg?branch=master
+[travis-url]: https://travis-ci.org/hackmdio/hackmd
diff --git a/package.json b/package.json
index d5e8e55c..ad629d1a 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
"main": "app.js",
"license": "MIT",
"scripts": {
+ "test": "make lint",
"dev": "webpack --config webpack.config.js --progress --colors --watch",
"build": "webpack --config webpack.production.js --progress --colors",
"postinstall": "bin/heroku",
@@ -150,6 +151,7 @@
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.26.1",
"ejs-loader": "^0.3.0",
+ "eslint": "^3.15.0",
"exports-loader": "^0.6.3",
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^1.0.1",