Skip to content

Commit

Permalink
remove support for node < v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Feb 8, 2017
1 parent eb3927b commit a7dd63c
Show file tree
Hide file tree
Showing 25 changed files with 31 additions and 689 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Expand Up @@ -4,5 +4,3 @@ node_js:
- 6
- 5
- 4
- iojs
- 0.12
2 changes: 1 addition & 1 deletion bin.js
Expand Up @@ -3,7 +3,7 @@
var detect = require('feature-detect-es6')

if (detect.all('class', 'arrowFunction', 'let', 'const')) {
module.exports = require('./src/bin/cli')
module.exports = require('./bin/cli')
} else {
require('core-js/es6/object')
module.exports = require('./es5/bin/cli')
Expand Down
6 changes: 3 additions & 3 deletions src/bin/cli.js → bin/cli.js
@@ -1,6 +1,6 @@
'use strict'
const tool = require('command-line-tool')
const version = require('../../package').version
const version = require('../package').version

const cli = parseCommandLine()
let options = cli.options._all
Expand All @@ -16,11 +16,11 @@ if (options.help) {

/* jsdoc2md --clear */
} else if (options.clear) {
const jsdoc2md = require('../../')
const jsdoc2md = require('../')
jsdoc2md._interface = 'cli'
jsdoc2md.clear().catch(handleError)
} else {
const jsdoc2md = require('../../')
const jsdoc2md = require('../')
jsdoc2md._interface = 'cli'

/* jsdoc2md --config */
Expand Down
76 changes: 0 additions & 76 deletions es5/bin/cli.js

This file was deleted.

184 changes: 0 additions & 184 deletions es5/lib/cli-data.js

This file was deleted.

13 changes: 0 additions & 13 deletions es5/lib/dmd-options.js

This file was deleted.

13 changes: 0 additions & 13 deletions es5/lib/jsdoc-options.js

This file was deleted.

0 comments on commit a7dd63c

Please sign in to comment.