@plotdb/srcbuild 0.0.36 → 0.0.37
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/adapter.js +16 -4
- package/dist/aux.js +1 -1
- package/dist/ext/bundle.js +1 -1
- package/dist/ext/lsc.js +1 -1
- package/dist/ext/pug.js +1 -1
- package/dist/ext/stylus.js +1 -1
- package/dist/watch.js +1 -1
- package/package.json +1 -1
package/dist/adapter.js
CHANGED
|
@@ -142,14 +142,20 @@ adapter.prototype = import$(Object.create(Object.prototype), {
|
|
|
142
142
|
var mtimes, recurse, this$ = this;
|
|
143
143
|
mtimes = {};
|
|
144
144
|
recurse = function(file){
|
|
145
|
-
var that;
|
|
145
|
+
var that, stat, e;
|
|
146
146
|
if (that = mtimes[file]) {
|
|
147
147
|
return that;
|
|
148
148
|
}
|
|
149
149
|
if (!fs.existsSync(file)) {
|
|
150
150
|
return 0;
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
try {
|
|
153
|
+
stat = fs.statSync(file);
|
|
154
|
+
} catch (e$) {
|
|
155
|
+
e = e$;
|
|
156
|
+
return 0;
|
|
157
|
+
}
|
|
158
|
+
return mtimes[file] = Math.max.apply(Math, [+stat.mtime].concat(Array.from(this$.depends.by[file] || []).map(function(f){
|
|
153
159
|
return recurse(f);
|
|
154
160
|
})));
|
|
155
161
|
};
|
|
@@ -164,7 +170,7 @@ adapter.prototype = import$(Object.create(Object.prototype), {
|
|
|
164
170
|
var initBuilds, recurse, t1, this$ = this;
|
|
165
171
|
initBuilds = [];
|
|
166
172
|
recurse = function(root){
|
|
167
|
-
var len1, len2, files, i$, len$, file, e, results$ = [];
|
|
173
|
+
var len1, len2, files, i$, len$, file, stat, e, results$ = [];
|
|
168
174
|
if (!fs.existsSync(root)) {
|
|
169
175
|
return;
|
|
170
176
|
}
|
|
@@ -179,7 +185,13 @@ adapter.prototype = import$(Object.create(Object.prototype), {
|
|
|
179
185
|
});
|
|
180
186
|
for (i$ = 0, len$ = files.length; i$ < len$; ++i$) {
|
|
181
187
|
file = files[i$];
|
|
182
|
-
|
|
188
|
+
try {
|
|
189
|
+
stat = fs.statSync(file);
|
|
190
|
+
} catch (e$) {
|
|
191
|
+
e = e$;
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
if (stat.isDirectory()) {
|
|
183
195
|
recurse(file);
|
|
184
196
|
}
|
|
185
197
|
if (!this$.isSupported(file)) {
|
package/dist/aux.js
CHANGED
package/dist/ext/bundle.js
CHANGED
|
@@ -5,7 +5,7 @@ path = require('path');
|
|
|
5
5
|
fsExtra = require('fs-extra');
|
|
6
6
|
uglifyJs = require('uglify-js');
|
|
7
7
|
uglifycss = require('uglifycss');
|
|
8
|
-
colors = require('colors');
|
|
8
|
+
colors = require('@plotdb/colors');
|
|
9
9
|
base = require('./base');
|
|
10
10
|
aux = require('../aux');
|
|
11
11
|
adapter = require('../adapter');
|
package/dist/ext/lsc.js
CHANGED
|
@@ -6,7 +6,7 @@ stream = require('stream');
|
|
|
6
6
|
fsExtra = require('fs-extra');
|
|
7
7
|
livescript = require('livescript');
|
|
8
8
|
uglifyJs = require('uglify-js');
|
|
9
|
-
colors = require('colors');
|
|
9
|
+
colors = require('@plotdb/colors');
|
|
10
10
|
base = require('./base');
|
|
11
11
|
aux = require('../aux');
|
|
12
12
|
adapter = require('../adapter');
|
package/dist/ext/pug.js
CHANGED
|
@@ -10,7 +10,7 @@ uglifycss = require('uglifycss');
|
|
|
10
10
|
stylus = require('stylus');
|
|
11
11
|
jsYaml = require('js-yaml');
|
|
12
12
|
marked = require('marked');
|
|
13
|
-
colors = require('colors');
|
|
13
|
+
colors = require('@plotdb/colors');
|
|
14
14
|
base = require('./base');
|
|
15
15
|
aux = require('../aux');
|
|
16
16
|
pugbuild = function(opt){
|
package/dist/ext/stylus.js
CHANGED
|
@@ -5,7 +5,7 @@ path = require('path');
|
|
|
5
5
|
fsExtra = require('fs-extra');
|
|
6
6
|
stylus = require('stylus');
|
|
7
7
|
uglifycss = require('uglifycss');
|
|
8
|
-
colors = require('colors');
|
|
8
|
+
colors = require('@plotdb/colors');
|
|
9
9
|
base = require('./base');
|
|
10
10
|
aux = require('../aux');
|
|
11
11
|
adapter = require('../adapter');
|
package/dist/watch.js
CHANGED
|
@@ -4,7 +4,7 @@ fs = require('fs');
|
|
|
4
4
|
path = require('path');
|
|
5
5
|
fsExtra = require('fs-extra');
|
|
6
6
|
chokidar = require('chokidar');
|
|
7
|
-
colors = require('colors');
|
|
7
|
+
colors = require('@plotdb/colors');
|
|
8
8
|
debounce = require('@loadingio/debounce.js');
|
|
9
9
|
aux = require('./aux');
|
|
10
10
|
watch = function(opt){
|