squad-station 0.8.1 → 0.8.4
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/bin/run.js +7 -15
- package/package.json +1 -1
package/bin/run.js
CHANGED
|
@@ -43,7 +43,7 @@ function install() {
|
|
|
43
43
|
|
|
44
44
|
function installBinary() {
|
|
45
45
|
// Binary version — may differ from npm package version
|
|
46
|
-
var VERSION = '0.8.
|
|
46
|
+
var VERSION = '0.8.4';
|
|
47
47
|
var REPO = 'thientranhung/squad-station';
|
|
48
48
|
|
|
49
49
|
var isWindows = process.platform === 'win32';
|
|
@@ -224,7 +224,7 @@ function scaffoldProject(force) {
|
|
|
224
224
|
console.log(' \x1b[32m✓\x1b[0m .squad/sdd/' + file);
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
-
// Copy rules/ (git workflow rules)
|
|
227
|
+
// Copy rules/ (git workflow rules) — always overwrite with latest
|
|
228
228
|
var rulesSrc = path.join(srcSquad, 'rules');
|
|
229
229
|
if (fs.existsSync(rulesSrc)) {
|
|
230
230
|
var rulesDest = path.join(destSquad, 'rules');
|
|
@@ -233,12 +233,8 @@ function scaffoldProject(force) {
|
|
|
233
233
|
var rulesFiles = fs.readdirSync(rulesSrc).filter(function(f) { return f.endsWith('.md'); });
|
|
234
234
|
rulesFiles.forEach(function(file) {
|
|
235
235
|
var dest = path.join(rulesDest, file);
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
} else {
|
|
239
|
-
fs.copyFileSync(path.join(rulesSrc, file), dest);
|
|
240
|
-
console.log(' \x1b[32m✓\x1b[0m .squad/rules/' + file);
|
|
241
|
-
}
|
|
236
|
+
fs.copyFileSync(path.join(rulesSrc, file), dest);
|
|
237
|
+
console.log(' \x1b[32m✓\x1b[0m .squad/rules/' + file);
|
|
242
238
|
});
|
|
243
239
|
}
|
|
244
240
|
|
|
@@ -261,7 +257,7 @@ function scaffoldProject(force) {
|
|
|
261
257
|
});
|
|
262
258
|
}
|
|
263
259
|
|
|
264
|
-
// Copy examples/
|
|
260
|
+
// Copy examples/ — always overwrite with latest reference templates
|
|
265
261
|
var exSrc = path.join(srcSquad, 'examples');
|
|
266
262
|
var exDest = path.join(destSquad, 'examples');
|
|
267
263
|
fs.mkdirSync(exDest, { recursive: true });
|
|
@@ -269,12 +265,8 @@ function scaffoldProject(force) {
|
|
|
269
265
|
var exFiles = fs.readdirSync(exSrc).filter(function(f) { return f.endsWith('.yml'); });
|
|
270
266
|
exFiles.forEach(function(file) {
|
|
271
267
|
var dest = path.join(exDest, file);
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
} else {
|
|
275
|
-
fs.copyFileSync(path.join(exSrc, file), dest);
|
|
276
|
-
console.log(' \x1b[32m✓\x1b[0m .squad/examples/' + file);
|
|
277
|
-
}
|
|
268
|
+
fs.copyFileSync(path.join(exSrc, file), dest);
|
|
269
|
+
console.log(' \x1b[32m✓\x1b[0m .squad/examples/' + file);
|
|
278
270
|
});
|
|
279
271
|
}
|
|
280
272
|
|