1 | var FS = require("fs");
|
2 | var Path = require("path");
|
3 |
|
4 | var Chrono = require("./chrono");
|
5 |
|
6 |
|
7 | /**
|
8 | * @param src {Source} - Source object mapped to the HTML file.
|
9 | * @param pathJS {string} - Destination path for Javascript.
|
10 | * @param pathCSS {stinrg} - Destination path for Cascading Style Sheets.
|
11 | * @param options {object} - Global options.
|
12 | * * __verbatim__ {boolean}: If `true`, add more logs.
|
13 | */
|
14 | module.exports = function(src, pathJS, pathCSS, options) {
|
15 | // The name without the `.html` extension can be used to find associated `.css` or `.ini` files.
|
16 | var nameWithoutExt = src.name().substr(0, src.name().length - 5);
|
17 | // If `nameWithoutExt` is in a subfolder, `backToRoot` must containt
|
18 | // as many `../` as there are subfolders in `nameWithoutExt`.
|
19 | var backToRoot = getBackToRoot(nameWithoutExt);
|
20 | var output = src.tag("output") || {};
|
21 |
|
22 | };
|