Node.js based forum software built for the modern web
Fix merge conflicts
Peter Jaszkowiaka8add6477caf
diff --cc src/meta/js.jsindex 15c6945f37,08596ad621..08b959fb3c--- a/src/meta/js.js+++ b/src/meta/js.js@@@ -25,7 -24,7 +24,7 @@@ module.exports = function (Meta)'public/vendor/jquery/timeago/jquery.timeago.js','public/vendor/jquery/js/jquery.form.min.js','public/vendor/visibility/visibility.min.js',- './node_modules/bootstrap/dist/js/bootstrap.js',- 'public/vendor/bootstrap/js/bootstrap.js',++ 'node_modules/bootstrap/dist/js/bootstrap.js','public/vendor/jquery/bootstrap-tagsinput/bootstrap-tagsinput.min.js','public/vendor/jquery/textcomplete/jquery.textcomplete.js','public/vendor/requirejs/require.js',@@@ -84,12 -83,12 +83,12 @@@// modules listed below are built (/src/modules) so they can be defined anonymouslymodules: {- 'Chart.js': './node_modules/chart.js/dist/Chart.min.js',- 'mousetrap.js': './node_modules/mousetrap/mousetrap.min.js',- 'cropper.js': './node_modules/cropperjs/dist/cropper.min.js',+ 'Chart.js': 'node_modules/chart.js/dist/Chart.min.js',+ 'mousetrap.js': 'node_modules/mousetrap/mousetrap.min.js',- 'jqueryui.js': 'public/vendor/jquery/js/jquery-ui.js',- 'buzz.js': 'public/vendor/buzz/buzz.js',+ 'cropper.js': 'node_modules/cropperjs/dist/cropper.min.js',+ 'jqueryui.js': 'public/vendor/jquery/js/jquery-ui.js',- 'zxcvbn.js': './node_modules/zxcvbn/dist/zxcvbn.js',- ace: './node_modules/ace-builds/src-min',+ 'zxcvbn.js': 'node_modules/zxcvbn/dist/zxcvbn.js',++ ace: 'node_modules/ace-builds/src-min',},},};@@@ -194,32 -174,22 +193,32 @@@if (err) {return next(err);}+ if (!stats.isDirectory()) {+ moduleFiles.push(module);+ return next();+ }- utils.walk(srcPath, function (err, files) {- var mods = files.filter(function (filePath) {- return path.extname(filePath) === '.js';- }).map(function (filePath) {- return {- filePath: filePath,- destPath: path.join(__dirname, '../../build/public/src', path.relative(path.dirname(dir), filePath)),- };- });++ file.walk(srcPath, function (err, files) {+ if (err) {+ return next(err);+ }++ var mods = files.filter(function (filePath) {+ return path.extname(filePath) === '.js';+ }).map(function (filePath) {+ return {+ srcPath: path.normalize(filePath),+ destPath: path.join(destPath, path.relative(srcPath, filePath)),+ };+ });- modules = modules.concat(mods);+ moduleFiles = moduleFiles.concat(mods);- next();+ next();+ });});}, function (err) {- callback(err, modules);+ callback(err, moduleFiles);});}