mirror of
https://github.com/MCMi460/3DS-RPC.git
synced 2025-06-18 21:45:37 -04:00
19 lines
472 B
JavaScript
19 lines
472 B
JavaScript
'use strict';
|
|
const upath = require('upath');
|
|
const sh = require('shelljs');
|
|
const renderPug = require('./render-pug');
|
|
|
|
const srcPath = upath.resolve(upath.dirname(__filename), '../src');
|
|
|
|
sh.find(srcPath).forEach(_processFile);
|
|
|
|
function _processFile(filePath) {
|
|
if (
|
|
filePath.match(/\.pug$/)
|
|
&& !filePath.match(/include/)
|
|
&& !filePath.match(/mixin/)
|
|
&& !filePath.match(/\/pug\/layouts\//)
|
|
) {
|
|
renderPug(filePath);
|
|
}
|
|
} |