Skip to content

Commit 69ac352

Browse files
author
Jarrod Overson
committed
Merge branch 'devcrust-master'
* devcrust-master: added esprima npm package
2 parents 864ffd1 + 51a289d commit 69ac352

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: node_js
22
node_js:
3-
- "0.10"
4-
- "0.12"
3+
- "4"
4+
- "5"
5+
- "6"
56
before_script:
67
- npm install -g grunt-cli
78
- mkdir ~/bin

lib/reporters/complexity/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
'use strict';
22

3-
var escomplex = require('escomplex-js'),
3+
var escomplex = require('escomplex'),
44
_ = require('lodash');
55

66
exports.process = function(source, options, reportInfo) {
77
var report = escomplex.analyse(source, options);
88
// Make the short filename easily accessible
99
report.module = reportInfo.fileShort;
1010

11-
// Munge the new `escomplex-js` format to match the older format of
11+
// Munge the new `escomplex` format to match the older format of
1212
// `complexity-report`
1313
report.aggregate.complexity = {
1414
cyclomatic : report.aggregate.cyclomatic,

package.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "plato",
33
"description": "JavaScript source analysis and visualizer",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"homepage": "https://github.com/es-analysis/plato",
6+
"license": "MIT",
67
"author": {
78
"name": "Jarrod Overson",
89
"email": "[email protected]",
@@ -24,18 +25,18 @@
2425
],
2526
"main": "lib/plato",
2627
"engines": {
27-
"node": ">= 0.10.0"
28+
"node": ">= 4.4.5"
2829
},
2930
"scripts": {
3031
"test": "grunt test"
3132
},
3233
"devDependencies": {
33-
"grunt": "~0.4.1",
34+
"grunt": "~1.0.1",
3435
"grunt-casper": "~0.4.0",
35-
"grunt-contrib-jshint": "~0.10",
36-
"grunt-contrib-nodeunit": "^0.4.1",
37-
"grunt-contrib-uglify": "~0.2.0",
38-
"grunt-contrib-watch": "~0.6.1"
36+
"grunt-contrib-jshint": "~1.0.0",
37+
"grunt-contrib-nodeunit": "~1.0.0",
38+
"grunt-contrib-uglify": "~1.0.1",
39+
"grunt-contrib-watch": "~1.0.0"
3940
},
4041
"keywords": [
4142
"halstead",
@@ -47,13 +48,14 @@
4748
"analyze"
4849
],
4950
"dependencies": {
50-
"escomplex-js": "~1.2.0",
51-
"fs-extra": "^0.3.2",
52-
"glob": "~4.4.1",
53-
"jshint": "~2.6.3",
54-
"lodash": "^3.3.1",
55-
"posix-getopt": "~1.1.0",
56-
"complexity-report": "~0.10.3",
57-
"eslint": "^1.5.1"
51+
"escomplex": "2.0.0-alpha",
52+
"fs-extra": "~0.30.0",
53+
"glob": "~7.0.5",
54+
"jshint": "~2.9.2",
55+
"lodash": "~4.13.1",
56+
"posix-getopt": "~1.2.0",
57+
"complexity-report": "2.0.0-alpha",
58+
"eslint": "~3.0.1",
59+
"esprima": "~2.7.2"
5860
}
5961
}

0 commit comments

Comments
 (0)