Updated sloc module

This commit is contained in:
Richard Davey 2018-07-11 12:34:12 +01:00
parent cced09bad6
commit 1c2ed137c7
3 changed files with 1729 additions and 1729 deletions

3448
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -42,7 +42,7 @@
"eslint": "^4.19.1",
"eslint-plugin-es5": "^1.3.1",
"fs-extra": "^6.0.0",
"node-sloc": "^0.1.10",
"node-sloc": "^0.1.11",
"uglifyjs-webpack-plugin": "^1.2.5",
"vivid-cli": "^1.1.2",
"webpack": "^4.6.0",

View file

@ -1,5 +1,5 @@
let fs = require('fs-extra');
// let sloc = require('node-sloc');
let sloc = require('node-sloc');
let source = './build/phaser.js';
let sourceMap = './build/phaser.js.map';
@ -56,9 +56,9 @@ if (fs.existsSync(dest))
extensions: [ '.js' ]
};
// sloc(options).then((res) => {
// console.log('Source files: ' + res.sloc.files + '\nLines of code: ' + res.sloc.sloc);
// });
sloc(options).then((res) => {
console.log('Source files: ' + res.sloc.files + '\nLines of code: ' + res.sloc.sloc);
});
});
}