-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: enable tools view regeneration on a build time #2264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b975a70
fa3e13c
9a2e84f
95c1ece
c71b27b
740c3c1
ee9e143
8ce6f81
f0fbfb7
dd839f3
36dfa35
da35a34
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,15 @@ const manualTools = require('../config/tools-manual.json') | |
| const fs = require('fs'); | ||
| const { resolve } = require('path'); | ||
|
|
||
| const combineAutomatedAndManualTools = async (automatedTools) => { | ||
| try { | ||
| await combineTools(automatedTools, manualTools); | ||
| } catch (err) { | ||
| console.log("Error while combining tools:", err); | ||
| throw err; | ||
| } | ||
| }; | ||
|
|
||
| const buildTools = async () => { | ||
| try { | ||
| let githubExtractData = await getData(); | ||
|
|
@@ -14,11 +23,29 @@ const buildTools = async () => { | |
| resolve(__dirname, '../config', 'tools-automated.json'), | ||
| JSON.stringify(automatedTools, null, ' ') | ||
| ); | ||
| await combineTools(automatedTools, manualTools); | ||
| await combineAutomatedAndManualTools(automatedTools); | ||
| } catch (err) { | ||
| console.log(err); | ||
| throw err | ||
| } | ||
| }; | ||
|
|
||
| buildTools(); | ||
| const buildToolsManual = async () => { | ||
| try { | ||
| const automatedTools = require('../config/tools-automated.json'); | ||
| await combineAutomatedAndManualTools(automatedTools); | ||
| } catch (err) { | ||
| console.log(err); | ||
| throw err; | ||
| } | ||
| }; | ||
|
|
||
| // Default action when triggered from package.json or run standalone. | ||
| if (require.main === module) { | ||
| buildTools(); | ||
| } | ||
|
|
||
| module.exports = { | ||
| buildTools, | ||
| buildToolsManual | ||
| }; | ||
|
Comment on lines
+48
to
+51
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Potential issue with unused export The
Consider either:
🔗 Analysis chainLGTM! Verify usage in dependent files. The exports are correctly updated to include both functions. Let's verify the usage of these exports in dependent files: Let me gather more information to verify if there are any other files that might be using these exports. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for imports and usage of buildTools and buildToolsManual
rg -l "require.*build-tools" | xargs rg "buildTools(Manual)?"
Length of output: 146 Script: #!/bin/bash
# Search for any potential usage of buildTools function
rg "buildTools[^M]" -A 2
# Also check for dynamic requires or imports
rg "require.*['\"].*build-tools" -A 2
Length of output: 626 |
||
Uh oh!
There was an error while loading. Please reload this page.