@plotdb/srcbuild 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ext/pug.js +6 -3
- package/dist/pug-cli +2 -1
- package/dist/pug-cli.js +2 -1
- package/dist/view/pug.js +1 -1
- package/package.json +1 -1
package/dist/ext/pug.js
CHANGED
|
@@ -174,7 +174,8 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
|
|
|
174
174
|
ret = pug.compileClientWithDependenciesTracked(code, import$({
|
|
175
175
|
basedir: path.resolve(this.srcdir),
|
|
176
176
|
filename: file,
|
|
177
|
-
doctype: 'html'
|
|
177
|
+
doctype: 'html',
|
|
178
|
+
compileDebug: false
|
|
178
179
|
}, this.extapi));
|
|
179
180
|
root = path.resolve('.') + '/';
|
|
180
181
|
return (ret.dependencies || []).map(function(it){
|
|
@@ -236,7 +237,8 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
|
|
|
236
237
|
ret = pug.compileClient(code, import$({
|
|
237
238
|
filename: src,
|
|
238
239
|
basedir: path.resolve(this$.srcdir),
|
|
239
|
-
doctype: 'html'
|
|
240
|
+
doctype: 'html',
|
|
241
|
+
compileDebug: false
|
|
240
242
|
}, this$.extapi));
|
|
241
243
|
ret = " (function() { " + ret + "; module.exports = template; })() ";
|
|
242
244
|
fs.writeFileSync(desv, ret);
|
|
@@ -249,7 +251,8 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
|
|
|
249
251
|
fs.writeFileSync(desh, pug.render(code, import$({
|
|
250
252
|
filename: src,
|
|
251
253
|
basedir: path.resolve(this$.srcdir),
|
|
252
|
-
doctype: 'html'
|
|
254
|
+
doctype: 'html',
|
|
255
|
+
compileDebug: false
|
|
253
256
|
}, this$.extapi)));
|
|
254
257
|
t2 = Date.now();
|
|
255
258
|
results$.push(this$.log.info(src + " --> " + desh + " ( " + (t2 - t1) + "ms )"));
|
package/dist/pug-cli
CHANGED
|
@@ -32,7 +32,8 @@ extapi = builder.getExtapi();
|
|
|
32
32
|
ret = pug.render(fs.readFileSync(src).toString(), import$({
|
|
33
33
|
filename: src,
|
|
34
34
|
basedir: opt.basedir,
|
|
35
|
-
doctype: 'html'
|
|
35
|
+
doctype: 'html',
|
|
36
|
+
compileDebug: false
|
|
36
37
|
}, extapi));
|
|
37
38
|
if (des) {
|
|
38
39
|
fsExtra.ensureDirSync(path.dirname(des));
|
package/dist/pug-cli.js
CHANGED
|
@@ -31,7 +31,8 @@ extapi = builder.getExtapi();
|
|
|
31
31
|
ret = pug.render(fs.readFileSync(src).toString(), import$({
|
|
32
32
|
filename: src,
|
|
33
33
|
basedir: opt.basedir,
|
|
34
|
-
doctype: 'html'
|
|
34
|
+
doctype: 'html',
|
|
35
|
+
compileDebug: false
|
|
35
36
|
}, extapi));
|
|
36
37
|
if (des) {
|
|
37
38
|
fsExtra.ensureDirSync(path.dirname(des));
|
package/dist/view/pug.js
CHANGED
|
@@ -80,7 +80,7 @@ pugViewEngine = function(options){
|
|
|
80
80
|
if (!(lc.isCached = obj.mtime != null && lc.useCache)) {
|
|
81
81
|
obj.mtime = lc.mtime;
|
|
82
82
|
}
|
|
83
|
-
ret = pug.compileClient(obj.buf, import$((ref$ = import$({}, opt), ref$.filename = src, ref$.basedir = opt.basedir, ref$.doctype = 'html', ref$), extapi));
|
|
83
|
+
ret = pug.compileClient(obj.buf, import$((ref$ = import$({}, opt), ref$.filename = src, ref$.basedir = opt.basedir, ref$.doctype = 'html', ref$.compileDebug = false, ref$), extapi));
|
|
84
84
|
ret = " (function() { " + ret + "; module.exports = template; })() ";
|
|
85
85
|
return fsExtra.ensureDir(path.dirname(desv)).then(function(){
|
|
86
86
|
return fsp.writeFile(desv, ret);
|