terminal-smart-cli 0.97.20 → 0.97.21
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/lib/meta.js +9 -0
- package/package.json +1 -1
package/lib/meta.js
CHANGED
|
@@ -56,6 +56,15 @@ function artifactForMetaItem(item, st, dir = '') {
|
|
|
56
56
|
if (/80-100 monstros|lista.*monstros/.test(d)) return 'data/monsters.json';
|
|
57
57
|
if (/economia|zeny|vending/.test(d)) return 'docs/ECONOMY.md';
|
|
58
58
|
if (/prioriza|\bmvp\b.*alpha|roadmap/.test(d)) return 'docs/ROADMAP.md';
|
|
59
|
+
const splitWeb = dir && fs.existsSync(path.join(dir, 'index.html')) && fs.existsSync(path.join(dir, 'src', 'game.js'));
|
|
60
|
+
if (splitWeb) {
|
|
61
|
+
if (/test|npm test|contrato|navegador/.test(d)) {
|
|
62
|
+
if (fs.existsSync(path.join(dir, 'test', 'integration.test.js'))) return 'test/integration.test.js';
|
|
63
|
+
if (fs.existsSync(path.join(dir, 'test', 'core.test.js'))) return 'test/core.test.js';
|
|
64
|
+
}
|
|
65
|
+
if (/visual|cen[aá]rio|ilumina|hud|estilo|profundidade/.test(d) && fs.existsSync(path.join(dir, 'styles.css'))) return 'styles.css';
|
|
66
|
+
return 'src/game.js';
|
|
67
|
+
}
|
|
59
68
|
// Em projeto web de arquivo único, itens funcionais/visuais alteram o app real.
|
|
60
69
|
// Critérios globais não correspondem por posição aos itens do checklist.
|
|
61
70
|
if (dir && fs.existsSync(path.join(dir, 'index.html')) && !/readme|instru[çc][õo]es|documenta[çc][ãa]o/.test(d)) return 'index.html';
|