@plotdb/srcbuild 0.0.58 → 0.0.60
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 +14 -10
- package/package.json +4 -4
package/dist/ext/pug.js
CHANGED
|
@@ -131,16 +131,20 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
|
|
|
131
131
|
src: list,
|
|
132
132
|
specsrc: _opt.filename
|
|
133
133
|
};
|
|
134
|
-
this$.bundler
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
134
|
+
if (this$.bundler) {
|
|
135
|
+
this$.bundler.addSpec(spec);
|
|
136
|
+
des = this$.bundler.desPath(spec);
|
|
137
|
+
relDesMin = path.relative(this$.desdir, des.desMin);
|
|
138
|
+
relDes = path.relative(this$.desdir, des.des);
|
|
139
|
+
if (o.type === 'css') {
|
|
140
|
+
return ret += "<link rel=\"stylesheet\" type=\"text/css\" href=\"/" + relDesMin + "\"/>";
|
|
141
|
+
} else if (o.type === 'js') {
|
|
142
|
+
return ret += "<script type=\"text/javascript\" src=\"/" + relDesMin + "\"></script>";
|
|
143
|
+
} else if (o.type === 'block') {
|
|
144
|
+
return ret += "<link rel=\"block\" href=\"/" + relDesMin + "\">";
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
return ret += "<!-- no bundler available for bundling " + name + " in type " + o.type + " -->";
|
|
144
148
|
}
|
|
145
149
|
});
|
|
146
150
|
return ret;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "zbryikt",
|
|
3
3
|
"name": "@plotdb/srcbuild",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.60",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "./dist/main.js",
|
|
7
7
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@loadingio/debounce.js": "^1.0.1",
|
|
30
|
-
"@plotdb/block": "^
|
|
30
|
+
"@plotdb/block": "^5.0.1",
|
|
31
31
|
"@plotdb/colors": "^0.0.1",
|
|
32
32
|
"anymatch": "^3.1.2",
|
|
33
33
|
"browserify": "^17.0.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@loadingio/bootstrap.ext": "^0.0.9",
|
|
52
|
-
"@plotdb/csscope": "^
|
|
53
|
-
"@plotdb/rescope": "^
|
|
52
|
+
"@plotdb/csscope": "^5.0.0",
|
|
53
|
+
"@plotdb/rescope": "^5.0.0",
|
|
54
54
|
"@plotdb/semver": "^0.0.3",
|
|
55
55
|
"@loadingio/ldquery": "^3.0.4",
|
|
56
56
|
"bootstrap": "^4.6.1",
|