mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-06-05 22:09:23 +02:00
Transition to monorepo on a new Dev branch
This commit is contained in:
24
App/Source/node_modules/pug-runtime/build.js
generated
vendored
Normal file
24
App/Source/node_modules/pug-runtime/build.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var dependencies = require('./lib/dependencies.js');
|
||||
var internals = require('./lib/internals.js');
|
||||
var sources = require('./lib/sources.js');
|
||||
|
||||
module.exports = build;
|
||||
|
||||
function build(functions) {
|
||||
var fns = [];
|
||||
functions = functions.filter(function (fn) {
|
||||
return !internals[fn];
|
||||
});
|
||||
for (var i = 0; i < functions.length; i++) {
|
||||
if (fns.indexOf(functions[i]) === -1) {
|
||||
fns.push(functions[i]);
|
||||
functions.push.apply(functions, dependencies[functions[i]]);
|
||||
}
|
||||
}
|
||||
return fns.sort().map(function (name) {
|
||||
return sources[name];
|
||||
}).join('\n');
|
||||
}
|
Reference in New Issue
Block a user