Browse Source

Configs & code cleanup

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
c3bd40ab04
  1. 3
      .eslintignore
  2. 1
      .gitignore
  3. 0
      .nojekyll
  4. 2
      .npmignore
  5. 2
      Makefile
  6. 5
      benchmark/implementations/commonmark-reference/index.js
  7. 4
      benchmark/implementations/current-commonmark/index.js
  8. 4
      benchmark/implementations/current/index.js
  9. 4
      benchmark/implementations/marked-0.3.2/index.js
  10. 1
      bower.json
  11. 7
      demo/.eslintrc
  12. 3
      demo/assets/index.js
  13. 3
      test/.eslintrc
  14. 1
      test/commonmark.js
  15. 1
      test/markdown-it.js
  16. 1
      test/misc.js
  17. 1
      test/ruler.js
  18. 1
      test/utils.js

3
.eslintignore

@ -1,6 +1,5 @@
benchmark/implementations/
coverage/
demo/sample.js
demo-web/
dist/
node_modules/
node_modules

1
.gitignore

@ -1,3 +1,2 @@
node_modules/
coverage/

0
.nojekyll

2
.npmignore

@ -1,8 +1,8 @@
benchmark/
coverage/
demo/
docs/
support/
test/
.*
Makefile

2
Makefile

@ -34,7 +34,7 @@ gh-pages: browserify demo
rm -rf ./demo-web
lint:
eslint --reset ./
eslint --reset .
test: lint
NODE_ENV=test mocha -R spec

5
benchmark/implementations/commonmark-reference/index.js

@ -1,4 +1,4 @@
'use strict'
'use strict';
var commonmark = require('commonmark');
var parser = new commonmark.DocParser();
@ -6,5 +6,4 @@ var renderer = new commonmark.HtmlRenderer();
exports.run = function(data) {
return renderer.render(parser.parse(data));
}
};

4
benchmark/implementations/current-commonmark/index.js

@ -1,7 +1,7 @@
'use strict'
'use strict';
var md = require('../../../')('commonmark');
exports.run = function(data) {
return md.render(data);
}
};

4
benchmark/implementations/current/index.js

@ -1,4 +1,4 @@
'use strict'
'use strict';
var md = require('../../../')({
html: true,
@ -8,4 +8,4 @@ var md = require('../../../')({
exports.run = function(data) {
return md.render(data);
}
};

4
benchmark/implementations/marked-0.3.2/index.js

@ -1,7 +1,7 @@
'use strict'
'use strict';
var marked = require('marked');
exports.run = function(data) {
return marked(data);
}
};

1
bower.json

@ -16,6 +16,7 @@
"bower_components",
"coverage",
"demo",
"docs",
"lib",
"node_modules",
"support",

7
demo/.eslintrc

@ -1,7 +0,0 @@
env:
node: false
browser: true
globals:
$: false
_: false

3
demo/assets/index.js

@ -1,6 +1,9 @@
(function () {
'use strict';
/*eslint-env browser*/
/*global $, _*/
var mdHtml, mdSrc, permalink, scrollMap;
var defaults = {

3
test/.eslintrc

@ -0,0 +1,3 @@
env:
node: true
mocha: true

1
test/commonmark.js

@ -1,4 +1,3 @@
/*global describe*/
'use strict';

1
test/markdown-it.js

@ -1,4 +1,3 @@
/*global describe*/
'use strict';

1
test/misc.js

@ -1,4 +1,3 @@
/*global describe, it*/
'use strict';

1
test/ruler.js

@ -1,4 +1,3 @@
/*global describe, it*/
'use strict';

1
test/utils.js

@ -1,4 +1,3 @@
/*global describe, it*/
'use strict';

Loading…
Cancel
Save