compiler: fix coding style violations
This commit is contained in:
parent
b480efde8a
commit
d7bdbd31b1
|
@ -47,7 +47,7 @@ module.exports = function compile(options) {
|
||||||
// require directories
|
// require directories
|
||||||
var bootDirs = options.bootDirs || []; // precedence
|
var bootDirs = options.bootDirs || []; // precedence
|
||||||
bootDirs = bootDirs.concat(path.join(appRootDir, 'boot'));
|
bootDirs = bootDirs.concat(path.join(appRootDir, 'boot'));
|
||||||
|
|
||||||
var bootScripts = options.bootScripts || [];
|
var bootScripts = options.bootScripts || [];
|
||||||
bootDirs.forEach(function(dir) {
|
bootDirs.forEach(function(dir) {
|
||||||
bootScripts = bootScripts.concat(findScripts(dir));
|
bootScripts = bootScripts.concat(findScripts(dir));
|
||||||
|
@ -308,7 +308,7 @@ function loadModelDefinition(rootDir, jsonFile, allFiles) {
|
||||||
var definition = require(jsonFile);
|
var definition = require(jsonFile);
|
||||||
var basename = path.basename(jsonFile, path.extname(jsonFile));
|
var basename = path.basename(jsonFile, path.extname(jsonFile));
|
||||||
|
|
||||||
// find a matching file with `.js` or any other supported extension like `.coffee`
|
// find a matching file with a supported extension like `.js` or `.coffee`
|
||||||
var base, ext, validFileType;
|
var base, ext, validFileType;
|
||||||
var sourceFile = allFiles
|
var sourceFile = allFiles
|
||||||
.filter(function(f) {
|
.filter(function(f) {
|
||||||
|
|
Loading…
Reference in New Issue