|
|
|
@ -6,7 +6,6 @@ const { technologies, categories } = JSON.parse(
|
|
|
|
|
fs.readFileSync('./src/technologies.json')
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
Object.keys(technologies).forEach((name) => {
|
|
|
|
|
const technology = technologies[name]
|
|
|
|
|
|
|
|
|
@ -21,9 +20,7 @@ try {
|
|
|
|
|
: technology[type]
|
|
|
|
|
|
|
|
|
|
Object.keys(keyed).forEach((key) => {
|
|
|
|
|
const patterns = Array.isArray(keyed[key])
|
|
|
|
|
? keyed[key]
|
|
|
|
|
: [keyed[key]]
|
|
|
|
|
const patterns = Array.isArray(keyed[key]) ? keyed[key] : [keyed[key]]
|
|
|
|
|
|
|
|
|
|
patterns.forEach((pattern, index) => {
|
|
|
|
|
const id = `${name}: ${type}[${key === '_' ? `${index}` : key}]`
|
|
|
|
@ -173,7 +170,3 @@ try {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} catch (error) {
|
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
console.error(error.message)
|
|
|
|
|
}
|
|
|
|
|