Skip to content

Commit e05962d

Browse files
committed
Merge pull request sparksuite#156 from NextStepWebs/development
Introduce Travis CI builds
2 parents 9aa32df + 69e65ac commit e05962d

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
node_js:
3+
- '0.12'
4+
before_script:
5+
- npm install -g gulp
6+
script: gulp
7+
deploy:
8+
provider: npm
9+
10+
api_key:
11+
secure: nADZupyOhJAhTQgr5uOIydbDEjCTAj+3nGHW7ZBJUrVJcb0uR4pg8ngmwrUpvaCeNXgKPG9Uag75/mPcBre9ly2cigBIG9LHlxImlF8qi1jRJykcNRmBb9N2MJJj+zdAMwLaF5Ns+f2v3zt97qxovbEzunhXGcZeCaxc6y40nDM8OTyo0PESNBjQYqaNblt2gO2KHysrwFL8i4kCCKLa+HOBLu2iqgk/fYVqTmfhEeOiiwQ4lIXJeyPyzgb3OPhKCMV1FI5H0T48fRD0MPczt8ds3Daj1OjCbIZurQ7s1dcKwz1g6TKATN59HcMsSarW4lImrEeYmfQxz2F5NjKDRhnith5V0W2IssrkpDG9teTFQ20eQdl5cpnlGjgBvsjb8GhPLR44GvefyJL4+kJGI3O1KVq3/7wbmu/IXrvhtKHEQSdGL2PTqW8QxKasAoUCnk3LGZKN12g8bg0xDg2tvoCUk5Z3asHLRdCJpDbBq1h8QfZ4HV5VLYjr84xduOUZbEUtfMVAixPpJ4h1E3OXJ1wil97BlHjxOZ8JkkxJg5lgSUZ/O/QWwJokEAYXR9c+ouMoVokChAyleV77cRZ5qLn9zbnUxZtnKX8w0IUKeu95/z8QgiaRcERKVCpZvceo8Qw0Y+JoiEtno7Zg/nsrZGxsS6K/V3yg1QQmT3bjDHQ=
12+
on:
13+
tags: true
14+
repo: NextStepWebs/simplemde-markdown-editor
15+
branch: production

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ First of all, thanks for your interest in helping make SimpleMDE even better. Co
33

44
### Guidelines for contributing
55
- The *most important* guideline for contributing is to compare against the `development` branch when creating a pull request. This allows time to test and modify code changes before merging them into the stable master branch with the next release.
6+
- Travis CI is configured to build and verify all PRs. If your PR causes the build to fail, please add an additional commit that resolves any problems.
67
- If you really want to earn some brownie points, create a JSFiddle that demonstrates your code changes. Seriously, this helps immensely and allows one or multiple people to easily provide feedback on the great work you've done.
78
- When creating the JSFiddle, keep in mind that you can use http://rawgit.com for your files.
89
- Do your best to fully test your changes. Anticipate edge-case behavior.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ simplemde.value("This text will appear in the editor");
6969

7070
- **autoDownloadFontAwesome**: If set to `true`, force downloads Font Awesome (used for icons). If set to false, prevents downloading. Defaults to `undefined`, which will intelligently check whether Font Awesome has already been included, then download accordingly.
7171
- **autofocus**: If set to `true`, autofocuses the editor. Defaults to `false`.
72-
- **autosave**: *Saves the text that's being written. It will forget the text when the form is submitted.*
72+
- **autosave**: *Saves the text that's being written and will load it back in the future. It will forget the text when the form it's contained in is submitted.*
7373
- **enabled**: If set to `true`, autosave the text. Defaults to `false`.
7474
- **delay**: Delay between saves, in milliseconds. Defaults to `10000` (10s).
75-
- **unique_id**: You must set a unique identifier so that SimpleMDE can autosave. Something that separates this from other textareas.
75+
- **unique_id**: You must set a unique string identifier so that SimpleMDE can autosave. Something that separates this from other instances of SimpleMDE elsewhere on your website.
7676
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
7777
- **hideIcons**: An array of icon names to hide. Can be used to hide specific icons without completely customizing the toolbar.
7878
- **indentWithTabs**: If set to `false`, indent using spaces instead of tabs. Defaults to `true`.
@@ -137,7 +137,7 @@ var simplemde = new SimpleMDE({
137137
},
138138
spellChecker: false,
139139
status: false,
140-
status: ['autosave', 'lines', 'words', 'cursor'], // Optional usage
140+
status: ["autosave", "lines", "words", "cursor"], // Optional usage
141141
tabSize: 4,
142142
toolbar: false,
143143
toolbarTips: false,

gulpfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ gulp.task("lint", ["prettify-js"], function() {
3737
gulp.src("./src/js/**/*.js")
3838
.pipe(debug())
3939
.pipe(eslint())
40-
.pipe(eslint.format());
40+
.pipe(eslint.format())
41+
.pipe(eslint.failAfterError());
4142
});
4243

4344
function taskBrowserify(opts) {
@@ -87,4 +88,4 @@ gulp.task("styles", ["prettify-css"], function() {
8788
.pipe(gulp.dest("./dist/"));
8889
});
8990

90-
gulp.task("default", ["scripts", "styles"]);
91+
gulp.task("default", ["scripts", "styles"]);

src/js/simplemde.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require("spell-checker");
1212
var marked = require("marked");
1313

1414

15+
// Some variables
1516
var isMac = /Mac/.test(navigator.platform);
1617

1718
var shortcuts = {

0 commit comments

Comments
 (0)