Skip to content

Commit 91949be

Browse files
authored
Merge pull request #359 from bananaappletw/master
Add travis ci
2 parents e197123 + 40dfffd commit 91949be

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.min.js

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: node_js
2+
node_js:
3+
- 6
4+
- 7
5+
- stable
6+
env:
7+
- CXX=g++-4.8
8+
addons:
9+
apt:
10+
sources:
11+
- ubuntu-toolchain-r-test
12+
packages:
13+
- g++-4.8

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
HackMD
22
===
33

4-
[![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)
4+
[![Join the chat at https://gitter.im/hackmdio/hackmd][gitter-image]][gitter-url]
5+
[![build status][travis-image]][travis-url]
6+
57

68
HackMD lets you create realtime collaborative markdown notes on all platforms.
79
Inspired by Hackpad, with more focus on speed and flexibility.
@@ -48,7 +50,7 @@ Browsers Requirement
4850
Prerequisite
4951
---
5052

51-
- Node.js 4.x or up (test up to 6.7.0)
53+
- Node.js 6.x or up (test up to 7.5.0)
5254
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
5355
- npm (and its dependencies, especially [uWebSockets](https://github.com/uWebSockets/uWebSockets#nodejs-developers), [node-gyp](https://github.com/nodejs/node-gyp#installation))
5456

@@ -222,3 +224,7 @@ Additionally, now can show other clients' selections.
222224
See more at [http://operational-transformation.github.io/](http://operational-transformation.github.io/)
223225

224226
**License under MIT.**
227+
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
228+
[gitter-url]: https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
229+
[travis-image]: https://travis-ci.org/hackmdio/hackmd.svg?branch=master
230+
[travis-url]: https://travis-ci.org/hackmdio/hackmd

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"main": "app.js",
66
"license": "MIT",
77
"scripts": {
8+
"test": "npm run-script lint",
9+
"lint": "eslint .",
810
"dev": "webpack --config webpack.config.js --progress --colors --watch",
911
"build": "webpack --config webpack.production.js --progress --colors",
1012
"postinstall": "bin/heroku",
@@ -120,7 +122,7 @@
120122
"xss": "^0.3.3"
121123
},
122124
"engines": {
123-
"node": ">=4.x"
125+
"node": ">=6.x"
124126
},
125127
"bugs": "https://github.com/hackmdio/hackmd/issues",
126128
"keywords": [
@@ -150,6 +152,7 @@
150152
"copy-webpack-plugin": "^4.0.1",
151153
"css-loader": "^0.26.1",
152154
"ejs-loader": "^0.3.0",
155+
"eslint": "^3.15.0",
153156
"exports-loader": "^0.6.3",
154157
"expose-loader": "^0.7.1",
155158
"extract-text-webpack-plugin": "^1.0.1",

0 commit comments

Comments
 (0)