generate at build time

This commit is contained in:
Cory LaViska
2021-09-07 11:53:32 -04:00
parent 3677f6cf0f
commit 053a5e9bd7

View File

@@ -22,6 +22,7 @@ del.sync('./dist');
try {
if (!dev) execSync('tsc', { stdio: 'inherit' }); // for type declarations
execSync('node scripts/make-metadata.js', { stdio: 'inherit' });
execSync('node scripts/make-search.js', { stdio: 'inherit' });
execSync('node scripts/make-vscode-data.js', { stdio: 'inherit' });
execSync('node scripts/make-css.js', { stdio: 'inherit' });
execSync('node scripts/make-icons.js', { stdio: 'inherit' });
@@ -124,6 +125,7 @@ try {
// Reload without rebuilding when the docs change
bs.watch(['docs/**/*']).on('change', filename => {
console.log(`Docs file changed - ${filename}`);
execSync('node scripts/make-search.js', { stdio: 'inherit' });
bs.reload();
});