mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Updated sloc module
This commit is contained in:
parent
cced09bad6
commit
1c2ed137c7
3 changed files with 1729 additions and 1729 deletions
3448
package-lock.json
generated
3448
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue